Documentation
¶
Index ¶
- Variables
- func CreateAnchorEntry(aRecord *anchor.AnchorRecord, chainID interfaces.IHash, ...) (*entryBlock.Entry, error)
- func CreateAndSendAnchor(ar *anchor.AnchorRecord) (string, error)
- func CreateFirstEthereumAnchorEntry() *entryBlock.Entry
- func JustFactomize(entry *entryBlock.Entry) (string, string, error)
- func JustFactomizeChain(entry *entryBlock.Entry) (string, string, error)
- func LoadConfig(c *config.AnchorConfig)
- func SaveAnchorsIntoFactom(dbo *database.AnchorDatabaseOverlay) error
- func SynchronizeFactomData(dbo *database.AnchorDatabaseOverlay) (int, error)
Constants ¶
This section is empty.
Variables ¶
var AnchorSigPublicKeys []interfaces.Verifier
var ECAddress *factom.ECAddress
var EthereumAnchorChainID interfaces.IHash
6e4540d08d5ac6a1a394e982fb6a2ab8b516ee751c37420055141b94fe070bfe
var FirstEthereumAnchorChainEntryHash interfaces.IHash
var IgnoreWrongEntries = true
var ServerPrivKey *primitives.PrivateKey
var WindowSize uint32
Functions ¶
func CreateAnchorEntry ¶
func CreateAnchorEntry(aRecord *anchor.AnchorRecord, chainID interfaces.IHash, serverPrivKey *primitives.PrivateKey) (*entryBlock.Entry, error)
CreateAnchorEntry constructs and returns a new entry with the anchor record as the Content and the server's signature of the anchor record as the only External ID
func CreateAndSendAnchor ¶
func CreateAndSendAnchor(ar *anchor.AnchorRecord) (string, error)
CreateAndSendAnchor submits the anchor record entry to the Factom network and returns the txID
func CreateFirstEthereumAnchorEntry ¶
func CreateFirstEthereumAnchorEntry() *entryBlock.Entry
CreateFirstEthereumAnchorEntry creates and returns the first entry in the Ethereum Anchor Chain but does not submit it to the Factom network
func JustFactomize ¶
func JustFactomize(entry *entryBlock.Entry) (string, string, error)
JustFactomize creates and submits a new entry using the given EntryBlock Entry and returns the txID of the commit and reveal
func JustFactomizeChain ¶
func JustFactomizeChain(entry *entryBlock.Entry) (string, string, error)
JustFactomizeChain creates and submits a new chain using the given EntryBlock Entry and returns the txID of the commit and reveal
func LoadConfig ¶
func LoadConfig(c *config.AnchorConfig)
func SaveAnchorsIntoFactom ¶
func SaveAnchorsIntoFactom(dbo *database.AnchorDatabaseOverlay) error
SaveAnchorsIntoFactom submits Factom entries (anchor records) for all newly confirmed contract txs found during the SynchronizationLoop
func SynchronizeFactomData ¶
func SynchronizeFactomData(dbo *database.AnchorDatabaseOverlay) (int, error)
SynchronizeFactomData checks for recently created directory blocks and returns how many new ones were found
Types ¶
This section is empty.