Versions in this module Expand all Collapse all v0 v0.4.0 Dec 19, 2020 Changes in this version + const AddressLength + const BodyLength + const ChecksumLength + const ECPub + const ECSec + const FactoidPub + const FactoidSec + const IDKeyBodyLength + const IDKeyLength + const IDKeyPrefixLength + const IDPub + const IDSec + const InvalidAddress + const InvalidIdentityKey + const OpenNode + const PrefixLength + var APICounter = newCounter() + var ErrAIDUnknown = errors.New("unknown ABlock Entry type") + var ErrChainPending = errors.New("Chain not yet included in a Directory Block") + var ErrECIDUndefined = errors.New("ECID type undefined") + var ErrInvalidAddress = errors.New("invalid address") + var ErrInvalidECSec = errors.New("invalid Entry Credit secret address") + var ErrInvalidFactoidSec = errors.New("invalid Factoid secret address") + var ErrMnemonicLength = errors.New("mnemonic must be 12 words") + var ErrSecKeyLength = errors.New("secret key portion must be 32 bytes") + var ErrUnknownECBEntry = errors.New("Unknown Entry Credit Block Entry type") + var RpcConfig = &RPCConfig + func AddressStringType(s string) addressStringType + func BackupWallet() (string, error) + func ChainExists(chainid string) bool + func ChainIDFromFields(fields [][]byte) string + func ChainIDFromStrings(fields []string) string + func ComposeTransaction(name string) ([]byte, error) + func DeleteTransaction(name string) error + func EnableCookies() + func EncodeJSON(data interface{}) ([]byte, error) + func EncodeJSONString(data interface{}) (string, error) + func EntryCommitMessage(e *Entry, ec *ECAddress) (*bytes.Buffer, error) + func EntryCost(e *Entry) (int8, error) + func FactoidSubmit(tx string) (message, txid string, err error) + func FactoidToFactoshi(amt string) uint64 + func FactomdServer() string + func FactoshiToFactoid(i uint64) string + func FetchAddresses() ([]*FactoidAddress, []*ECAddress, error) + func GetActiveIdentityKeys(chainID string) ([]string, int64, error) + func GetActiveIdentityKeysAtHeight(chainID string, height int64) ([]string, error) + func GetBalanceTotals() (fs, fa, es, ea int64, err error) + func GetDnsBalance(addr string) (int64, int64, error) + func GetECBalance(addr string) (int64, error) + func GetECRate() (uint64, error) + func GetFactoidBalance(addr string) (int64, error) + func GetFactomdEncryption() (bool, string) + func GetFactomdRpcConfig() (string, string) + func GetFactomdTimeout() time.Duration + func GetIdentityChainID(name []string) string + func GetTPS() (instant, total float64, err error) + func GetWalletEncryption() (bool, string) + func GetWalletHeight() (uint32, error) + func GetWalletRpcConfig() (string, string) + func GetWalletTimeout() time.Duration + func IdentityKeyStringType(s string) identityKeyStringType + func ImportAddresses(addrs ...string) ([]*FactoidAddress, []*ECAddress, error) + func IsValidAddress(s string) bool + func IsValidAttribute(e *Entry) bool + func IsValidEndorsement(e *Entry) bool + func IsValidIdentityKey(s string) bool + func ParseMnemonic(mnemonic string) (string, error) + func RemoveAddress(address string) error + func RemoveIdentityKey(pub string) error + func ReplayDBlockFromHeight(startheight int64, endheight int64) (*replayResponse, error) + func ResolveDnsName(addr string) (string, string, error) + func SendRawMsg(message string) (string, error) + func SetFactomdEncryption(tls bool, certFile string) + func SetFactomdRpcConfig(user string, password string) + func SetFactomdServer(s string) + func SetFactomdTimeout(timeout time.Duration) + func SetOpenNode() + func SetWalletEncryption(tls bool, certFile string) + func SetWalletRpcConfig(user string, password string) + func SetWalletServer(s string) + func SetWalletTimeout(timeout time.Duration) + func UnlockWallet(passphrase string, seconds int64) (int64, error) + func WalletComposeChainCommitReveal(chain *Chain, ecPub string, force bool) (*JSON2Request, *JSON2Request, error) + func WalletComposeEntryCommitReveal(entry *Entry, ecPub string, force bool) (*JSON2Request, *JSON2Request, error) + func WalletServer() string + type ABEntry interface + String func() string + Type func() AdminID + type ABlock struct + ABEntries []ABEntry + BackReferenceHash string + DBHeight int64 + LookupHash string + PrevBackreferenceHash string + func GetABlock(keymr string) (ablock *ABlock, err error) + func GetABlockByHeight(height int64) (ablock *ABlock, err error) + func (a *ABlock) String() string + func (a *ABlock) UnmarshalJSON(js []byte) error + type AdminAddAuditServer struct + DBHeight int64 + IdentityChainID string + func (a *AdminAddAuditServer) String() string + func (a *AdminAddAuditServer) Type() AdminID + type AdminAddAuthorityAddress struct + FactoidAddress string + IdentityChainID string + func (a *AdminAddAuthorityAddress) String() string + func (a *AdminAddAuthorityAddress) Type() AdminID + type AdminAddAuthorityEfficiency struct + Efficiency int + IdentityChainID string + func (a *AdminAddAuthorityEfficiency) String() string + func (a *AdminAddAuthorityEfficiency) Type() AdminID + type AdminAddFederatedServer struct + DBHeight int64 + IdentityChainID string + func (a *AdminAddFederatedServer) String() string + func (a *AdminAddFederatedServer) Type() AdminID + type AdminAddFederatedServerBTCKey struct + ECDSAPublicKey string + IdentityChainID string + KeyPriority int + KeyType int + func (a *AdminAddFederatedServerBTCKey) String() string + func (a *AdminAddFederatedServerBTCKey) Type() AdminID + type AdminAddFederatedServerKey struct + DBHeight int + IdentityChainID string + KeyPriority int + PublicKey string + func (a *AdminAddFederatedServerKey) String() string + func (a *AdminAddFederatedServerKey) Type() AdminID + type AdminAddHash struct + IdentityChainID string + MatryoshkaHash string + func (a *AdminAddHash) String() string + func (a *AdminAddHash) Type() AdminID + type AdminCoinbaseDescriptor struct + Outputs []struct{ ... } + func (a *AdminCoinbaseDescriptor) String() string + func (a *AdminCoinbaseDescriptor) Type() AdminID + type AdminCoinbaseDescriptorCancel struct + DescriptorHeight int + DescriptorIndex int + func (a *AdminCoinbaseDescriptorCancel) String() string + func (a *AdminCoinbaseDescriptorCancel) Type() AdminID + type AdminDBSignature struct + IdentityChainID string + PreviousSignature struct{ ... } + func (a *AdminDBSignature) String() string + func (a *AdminDBSignature) Type() AdminID + type AdminID byte + const AIDAddAuditServer + const AIDAddAuthorityAddress + const AIDAddAuthorityEfficiency + const AIDAddFederatedServer + const AIDAddFederatedServerBTCKey + const AIDAddFederatedServerKey + const AIDAddHash + const AIDCoinbaseDescriptor + const AIDCoinbaseDescriptorCancel + const AIDDBSignature + const AIDIncreaseServerCount + const AIDMinuteNumber + const AIDRemoveFederatedServer + const AIDRevealHash + const AIDServerFault + func (id AdminID) String() string + type AdminIncreaseServerCount struct + Amount int + func (a *AdminIncreaseServerCount) String() string + func (a *AdminIncreaseServerCount) Type() AdminID + type AdminMinuteNumber struct + MinuteNumber int + func (a *AdminMinuteNumber) String() string + func (a *AdminMinuteNumber) Type() AdminID + type AdminRemoveFederatedServer struct + DBHeight int64 + IdentityChainID string + func (a *AdminRemoveFederatedServer) String() string + func (a *AdminRemoveFederatedServer) Type() AdminID + type AdminRevealHash struct + IdentityChainID string + MatryoshkaHash string + func (a *AdminRevealHash) String() string + func (a *AdminRevealHash) Type() AdminID + type AdminServerFault struct + AuditServerID string + DBHeight int + Height int + ServerID string + SignatureList json.RawMessage + Timestamp string + VMIndex int + func (a *AdminServerFault) String() string + func (a *AdminServerFault) Type() AdminID + type AnchorBitcoin struct + BlockHash string + TransactionHash string + type AnchorEthereum struct + BlockHash string + ContractAddress string + DBHeightMax int64 + DBHeightMin int64 + MerkleBranch []MerkleNode + RecordHeight int64 + TxID string + TxIndex int64 + WindowMR string + type AnchorSigningKey struct + BlockChain string + KeyLevel byte + KeyType byte + SigningKey string + func (k *AnchorSigningKey) String() string + type Anchors struct + Bitcoin *AnchorBitcoin + Ethereum *AnchorEthereum + Height uint32 + KeyMR string + func GetAnchors(hash string) (*Anchors, error) + func GetAnchorsByHeight(height int64) (*Anchors, error) + func (a *Anchors) String() string + func (a *Anchors) UnmarshalJSON(data []byte) error + type Authority struct + AnchorKeys []*AnchorSigningKey + AuthorityChainID string + ManagementChainID string + MatryoshkaHash string + SigningKey string + Status string + func GetAuthorities() ([]*Authority, error) + func (a *Authority) String() string + type BlockByHeightRawResponse struct + ABlock *JStruct + DBlock *JStruct + ECBlock *JStruct + FBlock *JStruct + RawData string + func GetBlockByHeightRaw(blockType string, height int64) (*BlockByHeightRawResponse, error) + func (f *BlockByHeightRawResponse) String() string type Chain + func NewChainFromBytes(content []byte, extids ...[]byte) *Chain + func NewChainFromStrings(content string, extids ...string) *Chain + func NewIdentityChain(name []string, keys []string) (*Chain, error) + type CurrentMinuteInfo struct + CurrentBlockStartTime int64 + CurrentMinuteStartTime int64 + CurrentTime int64 + DirectoryBlockHeight int64 + DirectoryBlockInSeconds int64 + FaultTimeout int64 + LeaderHeight int64 + Minute int64 + RoundTimeout int64 + StallDetected bool + func GetCurrentMinute() (*CurrentMinuteInfo, error) + func (c *CurrentMinuteInfo) String() string type DBlock + DBEntries []struct{ ... } + HeaderHash string + KeyMR string + SequenceNumber int64 + func GetDBlockByHeight(height int64) (dblock *DBlock, err error) + type Diagnostics struct + AuthSet struct{ ... } + BalanceHash string + CurrentMinute int + CurrentMinuteDuration int64 + ElectionInfo struct{ ... } + ID string + LastBlockFromDBState bool + LeaderHeight int + Name string + PrevMinuteDuration int64 + PublicKey string + Role string + SyncInfo struct{ ... } + TempBalanceHash string + func GetDiagnostics() (*Diagnostics, error) + func (d *Diagnostics) String() string + type ECAddress struct + Pub *[ed.PublicKeySize]byte + Sec *[ed.PrivateKeySize]byte + func FetchECAddress(ecpub string) (*ECAddress, error) + func GenerateECAddress() (*ECAddress, error) + func GetECAddress(s string) (*ECAddress, error) + func MakeBIP44ECAddress(mnemonic string, account, chain, address uint32) (*ECAddress, error) + func MakeECAddress(sec []byte) (*ECAddress, error) + func NewECAddress() *ECAddress + func (a *ECAddress) MarshalBinary() ([]byte, error) + func (a *ECAddress) PubBytes() []byte + func (a *ECAddress) PubFixed() *[ed.PublicKeySize]byte + func (a *ECAddress) PubString() string + func (a *ECAddress) SecBytes() []byte + func (a *ECAddress) SecFixed() *[ed.PrivateKeySize]byte + func (a *ECAddress) SecString() string + func (a *ECAddress) Sign(msg []byte) *[ed.SignatureSize]byte + func (a *ECAddress) String() string + func (a *ECAddress) UnmarshalBinary(data []byte) error + func (a *ECAddress) UnmarshalBinaryData(data []byte) ([]byte, error) + type ECBEntry interface + String func() string + Type func() ECID + type ECBalanceIncrease struct + ECPubKey string + Index uint64 + NumEC uint64 + TXID string + func (e *ECBalanceIncrease) String() string + func (e *ECBalanceIncrease) Type() ECID + type ECBlock struct + Entries []ECBEntry + FullHash string + Header struct{ ... } + HeaderHash string + func GetECBlock(keymr string) (ecblock *ECBlock, err error) + func GetECBlockByHeight(height int64) (ecblock *ECBlock, err error) + func (e *ECBlock) String() string + func (e *ECBlock) UnmarshalJSON(js []byte) error + type ECChainCommit struct + ChainIDHash string + Credits int + ECPubKey string + EntryHash string + MilliTime int64 + Sig string + Version int + Weld string + func (c *ECChainCommit) String() string + func (c *ECChainCommit) Type() ECID + func (c *ECChainCommit) UnmarshalJSON(js []byte) error + type ECEntryCommit struct + Credits int + ECPubKey string + EntryHash string + MilliTime int64 + Sig string + Version int + func (e *ECEntryCommit) String() string + func (e *ECEntryCommit) Type() ECID + func (e *ECEntryCommit) UnmarshalJSON(js []byte) error + type ECID byte + const ECIDBalanceIncrease + const ECIDChainCommit + const ECIDEntryCommit + const ECIDMinuteNumber + const ECIDServerIndexNumber + func (id ECID) String() string + type ECMinuteNumber struct + Number int + func (m *ECMinuteNumber) String() string + func (m *ECMinuteNumber) Type() ECID + type ECServerIndexNumber struct + ServerIndexNumber int + func (i *ECServerIndexNumber) String() string + func (i *ECServerIndexNumber) Type() ECID type Entry + func GetAllChainEntriesAtHeight(chainid string, height int64) ([]*Entry, error) + func NewEntryFromBytes(chainid []byte, content []byte, extids ...[]byte) *Entry + func NewEntryFromStrings(chainid string, content string, extids ...string) *Entry + func NewIdentityAttributeEndorsementEntry(destinationChainID string, attributeEntryHash string, signerKey *IdentityKey, ...) *Entry + func NewIdentityAttributeEntry(receiverChainID string, destinationChainID string, attributesJSON string, ...) *Entry + func NewIdentityKeyReplacementEntry(chainID string, oldKey string, newKey string, signerKey *IdentityKey) (*Entry, error) + type EntryStatus struct + CommitData TransactionData + CommitTxID string + ConflictingRevealEntryHashes []string + EntryData TransactionData + EntryHash string + ReserveTransactions []ReserveInfo + func EntryCommitACK(txID, fullTransaction string) (*EntryStatus, error) + func EntryRevealACK(entryhash, fullTransaction, chainiID string) (*EntryStatus, error) + func (e *EntryStatus) String() string + type FBTransaction struct + BlockHeight int64 + ECOutputs []TransactionAddress + Inputs []SignedTransactionAddress + Outputs []TransactionAddress + Timestamp time.Time + TxID string + func (t *FBTransaction) MarshalJSON() ([]byte, error) + func (t *FBTransaction) UnmarshalJSON(data []byte) error + func (t FBTransaction) String() string + type FBlock struct + BodyMR string + ChainID string + DBHeight int64 + ExchRate int64 + KeyMR string + LedgerKeyMR string + PrevKeyMR string + PrevLedgerKeyMR string + Transactions []*FBTransaction + func GetFBlock(keymr string) (fblock *FBlock, err error) + func GetFBlockByHeight(height int64) (fblock *FBlock, err error) + func (f *FBlock) String() string + type FactoidAddress struct + RCD RCD + Sec *[ed.PrivateKeySize]byte + func FetchFactoidAddress(fctpub string) (*FactoidAddress, error) + func GetFactoidAddress(s string) (*FactoidAddress, error) + func ImportKoinify(mnemonic string) (*FactoidAddress, error) + func MakeBIP44FactoidAddress(mnemonic string, account, chain, address uint32) (*FactoidAddress, error) + func MakeFactoidAddress(sec []byte) (*FactoidAddress, error) + func MakeFactoidAddressFromKoinify(mnemonic string) (*FactoidAddress, error) + func NewFactoidAddress() *FactoidAddress + func (a *FactoidAddress) MarshalBinary() ([]byte, error) + func (a *FactoidAddress) PubBytes() []byte + func (a *FactoidAddress) RCDHash() []byte + func (a *FactoidAddress) RCDType() uint8 + func (a *FactoidAddress) SecBytes() []byte + func (a *FactoidAddress) SecFixed() *[ed.PrivateKeySize]byte + func (a *FactoidAddress) SecString() string + func (a *FactoidAddress) String() string + func (a *FactoidAddress) UnmarshalBinary(data []byte) error + func (a *FactoidAddress) UnmarshalBinaryData(data []byte) ([]byte, error) + type FactoidTxStatus struct + TxID string + func FactoidACK(txID, fullTransaction string) (*FactoidTxStatus, error) + func (f *FactoidTxStatus) String() string + type HeightsResponse struct + DirectoryBlockHeight int64 + EntryBlockHeight int64 + EntryHeight int64 + LeaderHeight int64 + func GetHeights() (*HeightsResponse, error) + func (d *HeightsResponse) String() string + type Identity struct + ChainID string + Keys []*IdentityKey + Name []string + type IdentityAttribute struct + Key interface{} + Value interface{} + type IdentityKey struct + Pub *[ed.PublicKeySize]byte + Sec *[ed.PrivateKeySize]byte + func FetchIdentityKey(pub string) (*IdentityKey, error) + func FetchIdentityKeys() ([]*IdentityKey, error) + func GenerateIdentityKey() (*IdentityKey, error) + func GetIdentityKey(s string) (*IdentityKey, error) + func ImportIdentityKeys(pubs ...string) ([]*IdentityKey, error) + func MakeBIP44IdentityKey(mnemonic string, account, chain, address uint32) (*IdentityKey, error) + func MakeIdentityKey(sec []byte) (*IdentityKey, error) + func NewIdentityKey() *IdentityKey + func (k *IdentityKey) MarshalBinary() ([]byte, error) + func (k *IdentityKey) PubBytes() []byte + func (k *IdentityKey) PubFixed() *[ed.PublicKeySize]byte + func (k *IdentityKey) PubString() string + func (k *IdentityKey) SecBytes() []byte + func (k *IdentityKey) SecFixed() *[ed.PrivateKeySize]byte + func (k *IdentityKey) SecString() string + func (k *IdentityKey) Sign(msg []byte) *[ed.SignatureSize]byte + func (k *IdentityKey) String() string + func (k *IdentityKey) UnmarshalBinary(data []byte) error + func (k *IdentityKey) UnmarshalBinaryData(data []byte) ([]byte, error) + type JSON2Request struct + ID interface{} + JSONRPC string + Method string + Params json.RawMessage + func ComposeChainReveal(c *Chain) (*JSON2Request, error) + func NewJSON2Request(method string, id, params interface{}) *JSON2Request + func ParseJSON2Request(request string) (*JSON2Request, error) + func (j *JSON2Request) JSONString() (string, error) + func (j *JSON2Request) String() string + type JSON2Response struct + Error *JSONError + ID interface{} + JSONRPC string + Result json.RawMessage + func NewJSON2Response() *JSON2Response + func SendFactomdRequest(req *JSON2Request) (*JSON2Response, error) + func (j *JSON2Response) JSONResult() []byte + func (j *JSON2Response) JSONString() (string, error) + func (j *JSON2Response) String() string + type JSONError struct + Code int + Data interface{} + Message string + func NewJSONError(code int, message string, data interface{}) *JSONError + func (e *JSONError) Error() string + type JStruct struct + func (e *JStruct) MarshalJSON() ([]byte, error) + func (e *JStruct) UnmarshalJSON(b []byte) error + type MerkleNode struct + Left string + Right string + Top string + type MultiBalanceResponse struct + Balances []struct{ ... } + CurrentHeight int + LastSavedHeight int + func GetMultipleECBalances(ecs ...string) (*MultiBalanceResponse, error) + func GetMultipleFCTBalances(fas ...string) (*MultiBalanceResponse, error) + type PendingEntry struct + ChainID string + EntryHash string + Status string + func GetPendingEntries() ([]PendingEntry, error) + type PendingTransaction struct + DBHeight uint32 + ECOutputs []TransactionAddress + Fees uint64 + Inputs []TransactionAddress + Outputs []TransactionAddress + Status string + TxID string + func GetPendingTransactions() ([]PendingTransaction, error) + type Properties struct + FactomdAPIVersion string + FactomdAPIVersionErr string + FactomdVersion string + FactomdVersionErr string + WalletAPIVersion string + WalletAPIVersionErr string + WalletVersion string + WalletVersionErr string + func GetProperties() (*Properties, error) + func (p *Properties) String() string + type RCD interface + Hash func() []byte + Type func() byte + type RCD1 struct + Pub *[ed.PublicKeySize]byte + func NewRCD1() *RCD1 + func (r *RCD1) Hash() []byte + func (r *RCD1) PubBytes() []byte + func (r *RCD1) Type() uint8 + type RPCConfig struct + FactomdRPCPassword string + FactomdRPCUser string + FactomdServer string + FactomdTLSCertFile string + FactomdTLSEnable bool + FactomdTimeout time.Duration + WalletCORSDomains string + WalletRPCPassword string + WalletRPCUser string + WalletServer string + WalletTLSCertFile string + WalletTLSEnable bool + WalletTLSKeyFile string + WalletTimeout time.Duration + type RawData struct + Data string + func (r *RawData) GetDataBytes() ([]byte, error) + type Receipt struct + BitcoinBlockHash string + BitcoinTransactionHash string + DirectoryBlockKeyMR string + Entry struct{ ... } + EntryBlockKeyMR string + MerkleBranch []struct{ ... } + func GetReceipt(hash string) (*Receipt, error) + func (r *Receipt) String() string + type ReserveInfo struct + Timeout int64 + TxID string + type Signature struct + PubKey []byte + Signature []byte + func SignData(signer string, data []byte) (*Signature, error) + type SignedTransactionAddress struct + RCD string + Signatures []string + type TransAddress struct + Address string + Amount uint64 + type Transaction struct + BlockHeight uint32 + ECOutputs []*TransAddress + FeesPaid uint64 + FeesRequired uint64 + Inputs []*TransAddress + IsSigned bool + Name string + Outputs []*TransAddress + Timestamp time.Time + TotalECOutputs uint64 + TotalInputs uint64 + TotalOutputs uint64 + TxID string + func AddTransactionECOutput(name, address string, amount uint64) (*Transaction, error) + func AddTransactionFee(name, address string) (*Transaction, error) + func AddTransactionInput(name, address string, amount uint64) (*Transaction, error) + func AddTransactionOutput(name, address string, amount uint64) (*Transaction, error) + func BuyEC(from, to string, amount uint64, force bool) (*Transaction, error) + func BuyExactEC(from, to string, amount uint64, force bool) (*Transaction, error) + func GetTmpTransaction(name string) (*Transaction, error) + func ListTransactionsAddress(addr string) ([]*Transaction, error) + func ListTransactionsAll() ([]*Transaction, error) + func ListTransactionsID(id string) ([]*Transaction, error) + func ListTransactionsRange(start, end int) ([]*Transaction, error) + func ListTransactionsTmp() ([]*Transaction, error) + func NewTransaction(name string) (*Transaction, error) + func SendFactoid(from, to string, amount uint64, force bool) (*Transaction, error) + func SendTransaction(name string) (*Transaction, error) + func SignTransaction(name string, force bool) (*Transaction, error) + func SubTransactionFee(name, address string) (*Transaction, error) + func (tx *Transaction) MarshalJSON() ([]byte, error) + func (tx *Transaction) String() (s string) + func (tx *Transaction) UnmarshalJSON(data []byte) error + type TransactionAddress struct + Address string + Amount uint64 + RCDHash string + type TransactionData struct + BlockDate int64 + BlockDateString string + Malleated struct{ ... } + Status string + TransactionDate int64 + TransactionDateString string + type TransactionResponse struct + ECTranasction interface{} + Entry interface{} + FactoidTransaction interface{} + IncludedInDirectoryBlock string + IncludedInDirectoryBlockHeight int64 + IncludedInTransactionBlock string + func GetTransaction(txID string) (*TransactionResponse, error) v0.3.5 Feb 5, 2016 Changes in this version + 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 Server() string + func SetWallet(s string) v0.3.4 Oct 29, 2015 Changes in this version + const ZeroHash type DBlock + func (d *DBlock) String() string type EBlock + func (e *EBlock) String() string type Entry + func GetAllChainEntries(chainid string) ([]*Entry, error) + func GetAllEBlockEntries(ebhash string) ([]*Entry, error) + func GetFirstEntry(chainid string) (*Entry, error) + func (e *Entry) MarshalJSON() ([]byte, error) + func (e *Entry) String() string + func (e *Entry) UnmarshalJSON(data []byte) error v0.3.3 Oct 3, 2015 Changes in this version + func CommitChain(c *Chain, name string) error + func CommitEntry(e *Entry, name string) 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 SetServer(s string) + type Chain struct + ChainID string + FirstEntry *Entry + func NewChain(e *Entry) *Chain + type ChainHead struct + ChainHead string + func GetChainHead(chainid string) (*ChainHead, error) + type DBlock struct + DBHash string + EntryBlockList []struct{ ... } + Header struct{ ... } + func GetDBlock(keymr string) (*DBlock, error) + type DBlockHead struct + KeyMR string + func GetDBlockHead() (*DBlockHead, error) + type Data struct + Data string + type EBEntry struct + EntryHash string + Timestamp int64 + type EBlock struct + EntryList []EBEntry + Header struct{ ... } + func GetEBlock(keymr string) (*EBlock, error) + type Entry struct + ChainID string + Content string + ExtIDs []string + func GetEntry(hash string) (*Entry, error) + func NewEntry() *Entry + func (e *Entry) Hash() []byte + func (e *Entry) MarshalBinary() ([]byte, error) + func (e *Entry) MarshalExtIDsBinary() ([]byte, error)