factom

package
v0.0.0-...-3050db6 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnchorSigPublicKeys []interfaces.Verifier
View Source
var BitcoinAnchorChainID interfaces.IHash

df3ade9eec4b08d5379cc64270c30ea7315d8a8a1a69efe2b98a60ecdd69e604

View Source
var ECAddress *factom.ECAddress
View Source
var ECBalanceThreshold int64
View Source
var EthereumAnchorChainID interfaces.IHash

6e4540d08d5ac6a1a394e982fb6a2ab8b516ee751c37420055141b94fe070bfe

View Source
var FactoidBalanceThreshold int64
View Source
var FirstBitcoinAnchorChainEntryHash interfaces.IHash
View Source
var FirstEthereumAnchorChainEntryHash interfaces.IHash
View Source
var IgnoreWrongEntries bool = true
View Source
var ServerECKey *primitives.PrivateKey
View Source
var ServerPrivKey *primitives.PrivateKey

Functions

func CheckFactomBalance

func CheckFactomBalance() (int64, int64, error)

func CreateAnchorEntry

func CreateAnchorEntry(aRecord *anchor.AnchorRecord, chainID interfaces.IHash, serverPrivKey *primitives.PrivateKey) (*entryBlock.Entry, error)

func CreateAndSendAnchor

func CreateAndSendAnchor(ar *anchor.AnchorRecord) (string, error)

Takes care of sending the entry to the Factom network, returns txID

func CreateFirstBitcoinAnchorEntry

func CreateFirstBitcoinAnchorEntry() *entryBlock.Entry

func CreateFirstEthereumAnchorEntry

func CreateFirstEthereumAnchorEntry() *entryBlock.Entry

func JustFactomize

func JustFactomize(entry *entryBlock.Entry) (string, string, error)

func JustFactomizeChain

func JustFactomizeChain(entry *entryBlock.Entry) (string, string, error)

func LoadConfig

func LoadConfig(c *config.AnchorConfig)

func SaveAnchorsIntoFactom

func SaveAnchorsIntoFactom(dbo *database.AnchorDatabaseOverlay) error

func SynchronizeFactomData

func SynchronizeFactomData(dbo *database.AnchorDatabaseOverlay) (int, error)

Returns number of blocks synchronized

func TopupECAddress

func TopupECAddress() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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