factom

package
v0.0.0-...-477c745 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnchorSigPublicKeys []interfaces.Verifier
View Source
var ECAddress *factom.ECAddress
View Source
var EthereumAnchorChainID interfaces.IHash

6e4540d08d5ac6a1a394e982fb6a2ab8b516ee751c37420055141b94fe070bfe

View Source
var FirstEthereumAnchorChainEntryHash interfaces.IHash
View Source
var IgnoreWrongEntries = true
View Source
var ServerPrivKey *primitives.PrivateKey
View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL