Package factom provides fundamental types for the Factom blockchain, and uses the factomd JSON-RPC 2.0 API to populate data.
This package was originally created as part of the Factom Asset Token Daemon
to replace package github.com/FactomProject/factom
.
- Oriented around the Factom data types, not the factomd API
- UnmarshalBinary and MarshalBinary implemented for all Factom data structure types
- Load a DBlock by Height or KeyMR
- Load an EBlock by KeyMR and ChainID, or load the latest EBlock for a ChainID
- Load an Entry by Hash
- Create a new Entry for an existing ChainID or create the first Entry of a new chain
- Work with FA/FsAddresses and EC/EcAddresses
- Load an Identity and its IDKeys
- Work with ID1-4Keys
This repo is heavily influenced by the Factom Asset Token Daemon
repo. As such the
CONTRIBUTING.md
and
CODE_POLICY.md
files from that repo are required reading for contributing.