Documentation ¶
Index ¶
- Constants
- func CommitChain(c *Chain, name string) error
- func CommitEntry(e *Entry, name string) error
- func ComposeChainCommit(pub *[32]byte, pri *[64]byte, c *Chain) ([]byte, error)
- func ComposeEntryCommit(pub *[32]byte, pri *[64]byte, e *Entry) ([]byte, error)
- func ComposeEntryReveal(e *Entry) ([]byte, error)
- func ECBalance(key string) (int64, error)
- func FctBalance(key string) (int64, error)
- func GenerateEntryCreditAddress(name string) (string, error)
- func GenerateEntryCreditAddressFromHumanReadablePrivateKey(name string, privateKey string) (string, error)
- func GenerateEntryCreditAddressFromPrivateKey(name string, privateKey string) (string, error)
- func GenerateFactoidAddress(name string) (string, error)
- func GenerateFactoidAddressFromHumanReadablePrivateKey(name string, privateKey string) (string, error)
- func GenerateFactoidAddressFromMnemonic(name string, mnemonic string) (string, error)
- func GenerateFactoidAddressFromPrivateKey(name string, privateKey string) (string, error)
- func GetDBlockHeight() (int, error)
- func GetRaw(keymr string) ([]byte, error)
- func RevealChain(c *Chain) error
- func RevealEntry(e *Entry) error
- func Server() string
- func SetServer(s string)
- func SetWallet(s string)
- type Chain
- type ChainHead
- type DBlock
- type DBlockHead
- type Data
- type EBEntry
- type EBlock
- type Entry
Constants ¶
View Source
const (
ZeroHash = "0000000000000000000000000000000000000000000000000000000000000000"
)
Variables ¶
This section is empty.
Functions ¶
func CommitChain ¶
CommitChain sends the signed ChainID, the Entry Hash, and the Entry Credit public key to the factom network. Once the payment is verified and the network is commited to publishing the Chain it may be published by revealing the First Entry in the Chain.
func CommitEntry ¶
CommitEntry sends the signed Entry Hash and the Entry Credit public key to the factom network. Once the payment is verified and the network is commited to publishing the Entry it may be published with a call to RevealEntry.
func ComposeChainCommit ¶ added in v0.3.5
func ComposeEntryCommit ¶ added in v0.3.5
func ComposeEntryReveal ¶ added in v0.3.5
func FctBalance ¶
func GenerateFactoidAddress ¶
func GetDBlockHeight ¶
func RevealChain ¶
func RevealEntry ¶
Types ¶
type DBlock ¶
type DBlockHead ¶
type DBlockHead struct {
KeyMR string
}
func GetDBlockHead ¶
func GetDBlockHead() (*DBlockHead, error)
type EBlock ¶
type Entry ¶
func GetAllChainEntries ¶ added in v0.3.4
func GetAllEBlockEntries ¶ added in v0.3.4
func GetFirstEntry ¶ added in v0.3.4
func (*Entry) MarshalBinary ¶
func (*Entry) MarshalExtIDsBinary ¶
func (*Entry) MarshalJSON ¶ added in v0.3.4
func (*Entry) UnmarshalJSON ¶ added in v0.3.4
Source Files ¶
Click to show internal directories.
Click to hide internal directories.