Documentation ¶
Index ¶
- Constants
- Variables
- func AcmeUrl() *url.URL
- func BelongsToDn(u *url.URL) bool
- func BvnNameFromSubnetId(subnetId string) string
- func BvnUrl(subnet string) *url.URL
- func ComputeEntryHash(data [][]byte) []byte
- func ComputeLiteDataAccountId(firstEntry *DataEntry) []byte
- func ComputeLiteEntryHash(data []byte) []byte
- func ComputeLiteEntryHashFromEntry(accountId []byte, entry *DataEntry) ([]byte, error)
- func DnUrl() *url.URL
- func IndexChain(name string, major bool) string
- func IsDnUrl(u *url.URL) bool
- func IsReserved(u *url.URL) bool
- func IsValidAdiUrl(u *url.URL) error
- func LiteDataAddress(chainId []byte) (*url.URL, error)
- func LiteTokenAddress(pubKey []byte, tokenUrlStr string) (*url.URL, error)
- func NewValidator() (*validator.Validate, error)
- func ParseBvnUrl(u *url.URL) (string, bool)
- func ParseLiteDataAddress(u *url.URL) ([]byte, error)
- func ParseLiteTokenAddress(u *url.URL) ([]byte, *url.URL, error)
- func PriceOracle() *url.URL
- type ADI
- func (v *ADI) Equal(u *ADI) bool
- func (*ADI) GetType() AccountType
- func (v *ADI) IsValid() error
- func (v *ADI) MarshalBinary() ([]byte, error)
- func (v *ADI) MarshalJSON() ([]byte, error)
- func (*ADI) Type() AccountType
- func (v *ADI) UnmarshalBinary(data []byte) error
- func (v *ADI) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ADI) UnmarshalJSON(data []byte) error
- type Account
- type AccountHeader
- func (v *AccountHeader) Equal(u *AccountHeader) bool
- func (h *AccountHeader) Header() *AccountHeader
- func (v *AccountHeader) IsValid() error
- func (v *AccountHeader) MarshalBinary() ([]byte, error)
- func (h *AccountHeader) ParseUrl() (*url.URL, error)deprecated
- func (v *AccountHeader) UnmarshalBinary(data []byte) error
- func (v *AccountHeader) UnmarshalBinaryFrom(rd io.Reader) error
- type AccountType
- func (v AccountType) BinarySize() int
- func (v AccountType) ID() uint64
- func (t AccountType) IsTransaction() bool
- func (v AccountType) MarshalBinary() ([]byte, error)
- func (v AccountType) MarshalJSON() ([]byte, error)
- func (v *AccountType) Set(id uint64) bool
- func (v AccountType) String() string
- func (v *AccountType) UnmarshalBinary(data []byte) error
- func (v *AccountType) UnmarshalJSON(data []byte) error
- type AcmeFaucet
- func (v *AcmeFaucet) Equal(u *AcmeFaucet) bool
- func (*AcmeFaucet) GetType() TransactionType
- func (v *AcmeFaucet) IsValid() error
- func (v *AcmeFaucet) MarshalBinary() ([]byte, error)
- func (v *AcmeFaucet) MarshalJSON() ([]byte, error)
- func (*AcmeFaucet) Type() TransactionType
- func (v *AcmeFaucet) UnmarshalBinary(data []byte) error
- func (v *AcmeFaucet) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AcmeFaucet) UnmarshalJSON(data []byte) error
- type AcmeOracle
- type AddCredits
- func (v *AddCredits) Equal(u *AddCredits) bool
- func (*AddCredits) GetType() TransactionType
- func (v *AddCredits) IsValid() error
- func (v *AddCredits) MarshalBinary() ([]byte, error)
- func (v *AddCredits) MarshalJSON() ([]byte, error)
- func (*AddCredits) Type() TransactionType
- func (v *AddCredits) UnmarshalBinary(data []byte) error
- func (v *AddCredits) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AddCredits) UnmarshalJSON(data []byte) error
- type Anchor
- func (v *Anchor) Equal(u *Anchor) bool
- func (*Anchor) GetType() AccountType
- func (v *Anchor) IsValid() error
- func (v *Anchor) MarshalBinary() ([]byte, error)
- func (v *Anchor) MarshalJSON() ([]byte, error)
- func (*Anchor) Type() AccountType
- func (v *Anchor) UnmarshalBinary(data []byte) error
- func (v *Anchor) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *Anchor) UnmarshalJSON(data []byte) error
- type AnchorMetadata
- func (v *AnchorMetadata) Equal(u *AnchorMetadata) bool
- func (v *AnchorMetadata) IsValid() error
- func (v *AnchorMetadata) MarshalBinary() ([]byte, error)
- func (v *AnchorMetadata) MarshalJSON() ([]byte, error)
- func (v *AnchorMetadata) UnmarshalBinary(data []byte) error
- func (v *AnchorMetadata) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AnchorMetadata) UnmarshalJSON(data []byte) error
- type AnchoredRecord
- func (v *AnchoredRecord) Equal(u *AnchoredRecord) bool
- func (v *AnchoredRecord) IsValid() error
- func (v *AnchoredRecord) MarshalBinary() ([]byte, error)
- func (v *AnchoredRecord) MarshalJSON() ([]byte, error)
- func (v *AnchoredRecord) UnmarshalBinary(data []byte) error
- func (v *AnchoredRecord) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AnchoredRecord) UnmarshalJSON(data []byte) error
- type BurnTokens
- func (v *BurnTokens) Equal(u *BurnTokens) bool
- func (*BurnTokens) GetType() TransactionType
- func (v *BurnTokens) IsValid() error
- func (v *BurnTokens) MarshalBinary() ([]byte, error)
- func (v *BurnTokens) MarshalJSON() ([]byte, error)
- func (*BurnTokens) Type() TransactionType
- func (v *BurnTokens) UnmarshalBinary(data []byte) error
- func (v *BurnTokens) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *BurnTokens) UnmarshalJSON(data []byte) error
- type ChainMetadata
- type ChainParams
- func (v *ChainParams) Equal(u *ChainParams) bool
- func (v *ChainParams) IsValid() error
- func (v *ChainParams) MarshalBinary() ([]byte, error)
- func (v *ChainParams) MarshalJSON() ([]byte, error)
- func (v *ChainParams) UnmarshalBinary(data []byte) error
- func (v *ChainParams) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ChainParams) UnmarshalJSON(data []byte) error
- type ChainType
- func (v ChainType) BinarySize() int
- func (v ChainType) ID() uint64
- func (v ChainType) MarshalBinary() ([]byte, error)
- func (v ChainType) MarshalJSON() ([]byte, error)
- func (v *ChainType) Set(id uint64) bool
- func (v ChainType) String() string
- func (v *ChainType) UnmarshalBinary(data []byte) error
- func (v *ChainType) UnmarshalJSON(data []byte) error
- type CreateDataAccount
- func (v *CreateDataAccount) Equal(u *CreateDataAccount) bool
- func (*CreateDataAccount) GetType() TransactionType
- func (v *CreateDataAccount) IsValid() error
- func (v *CreateDataAccount) MarshalBinary() ([]byte, error)
- func (v *CreateDataAccount) MarshalJSON() ([]byte, error)
- func (*CreateDataAccount) Type() TransactionType
- func (v *CreateDataAccount) UnmarshalBinary(data []byte) error
- func (v *CreateDataAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *CreateDataAccount) UnmarshalJSON(data []byte) error
- type CreateIdentity
- func (v *CreateIdentity) Equal(u *CreateIdentity) bool
- func (*CreateIdentity) GetType() TransactionType
- func (v *CreateIdentity) IsValid() error
- func (v *CreateIdentity) MarshalBinary() ([]byte, error)
- func (v *CreateIdentity) MarshalJSON() ([]byte, error)
- func (*CreateIdentity) Type() TransactionType
- func (v *CreateIdentity) UnmarshalBinary(data []byte) error
- func (v *CreateIdentity) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *CreateIdentity) UnmarshalJSON(data []byte) error
- type CreateKeyBook
- func (v *CreateKeyBook) Equal(u *CreateKeyBook) bool
- func (*CreateKeyBook) GetType() TransactionType
- func (v *CreateKeyBook) IsValid() error
- func (v *CreateKeyBook) MarshalBinary() ([]byte, error)
- func (v *CreateKeyBook) MarshalJSON() ([]byte, error)
- func (*CreateKeyBook) Type() TransactionType
- func (v *CreateKeyBook) UnmarshalBinary(data []byte) error
- func (v *CreateKeyBook) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *CreateKeyBook) UnmarshalJSON(data []byte) error
- type CreateKeyPage
- func (v *CreateKeyPage) Equal(u *CreateKeyPage) bool
- func (*CreateKeyPage) GetType() TransactionType
- func (v *CreateKeyPage) IsValid() error
- func (v *CreateKeyPage) MarshalBinary() ([]byte, error)
- func (v *CreateKeyPage) MarshalJSON() ([]byte, error)
- func (*CreateKeyPage) Type() TransactionType
- func (v *CreateKeyPage) UnmarshalBinary(data []byte) error
- func (v *CreateKeyPage) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *CreateKeyPage) UnmarshalJSON(data []byte) error
- type CreateToken
- func (v *CreateToken) Equal(u *CreateToken) bool
- func (*CreateToken) GetType() TransactionType
- func (v *CreateToken) IsValid() error
- func (v *CreateToken) MarshalBinary() ([]byte, error)
- func (v *CreateToken) MarshalJSON() ([]byte, error)
- func (*CreateToken) Type() TransactionType
- func (v *CreateToken) UnmarshalBinary(data []byte) error
- func (v *CreateToken) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *CreateToken) UnmarshalJSON(data []byte) error
- type CreateTokenAccount
- func (v *CreateTokenAccount) Equal(u *CreateTokenAccount) bool
- func (*CreateTokenAccount) GetType() TransactionType
- func (v *CreateTokenAccount) IsValid() error
- func (v *CreateTokenAccount) MarshalBinary() ([]byte, error)
- func (v *CreateTokenAccount) MarshalJSON() ([]byte, error)
- func (*CreateTokenAccount) Type() TransactionType
- func (v *CreateTokenAccount) UnmarshalBinary(data []byte) error
- func (v *CreateTokenAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *CreateTokenAccount) UnmarshalJSON(data []byte) error
- type CreditHolder
- type DataAccount
- func (v *DataAccount) Equal(u *DataAccount) bool
- func (*DataAccount) GetType() AccountType
- func (v *DataAccount) IsValid() error
- func (v *DataAccount) MarshalBinary() ([]byte, error)
- func (v *DataAccount) MarshalJSON() ([]byte, error)
- func (*DataAccount) Type() AccountType
- func (v *DataAccount) UnmarshalBinary(data []byte) error
- func (v *DataAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *DataAccount) UnmarshalJSON(data []byte) error
- type DataEntry
- func (e *DataEntry) CheckSize() (int, error)
- func (e *DataEntry) Cost() (int, error)
- func (v *DataEntry) Equal(u *DataEntry) bool
- func (e *DataEntry) Hash() []byte
- func (v *DataEntry) IsValid() error
- func (v *DataEntry) MarshalBinary() ([]byte, error)
- func (v *DataEntry) MarshalJSON() ([]byte, error)
- func (v *DataEntry) UnmarshalBinary(data []byte) error
- func (v *DataEntry) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *DataEntry) UnmarshalJSON(data []byte) error
- type DirectoryIndexMetadata
- func (v *DirectoryIndexMetadata) Equal(u *DirectoryIndexMetadata) bool
- func (v *DirectoryIndexMetadata) IsValid() error
- func (v *DirectoryIndexMetadata) MarshalBinary() ([]byte, error)
- func (v *DirectoryIndexMetadata) UnmarshalBinary(data []byte) error
- func (v *DirectoryIndexMetadata) UnmarshalBinaryFrom(rd io.Reader) error
- type DirectoryQueryResult
- func (v *DirectoryQueryResult) Equal(u *DirectoryQueryResult) bool
- func (v *DirectoryQueryResult) IsValid() error
- func (v *DirectoryQueryResult) MarshalBinary() ([]byte, error)
- func (v *DirectoryQueryResult) UnmarshalBinary(data []byte) error
- func (v *DirectoryQueryResult) UnmarshalBinaryFrom(rd io.Reader) error
- type ED25519Signature
- func (v *ED25519Signature) Equal(u *ED25519Signature) bool
- func (e *ED25519Signature) GetPublicKey() []byte
- func (e *ED25519Signature) GetSignature() []byte
- func (v *ED25519Signature) IsValid() error
- func (v *ED25519Signature) MarshalBinary() ([]byte, error)
- func (v *ED25519Signature) MarshalJSON() ([]byte, error)
- func (e *ED25519Signature) Sign(nonce uint64, privateKey []byte, hash []byte) error
- func (*ED25519Signature) Type() SignatureType
- func (v *ED25519Signature) UnmarshalBinary(data []byte) error
- func (v *ED25519Signature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ED25519Signature) UnmarshalJSON(data []byte) error
- func (e *ED25519Signature) Verify(hash []byte) bool
- type EmptyResult
- func (v *EmptyResult) Equal(u *EmptyResult) bool
- func (*EmptyResult) GetType() TransactionType
- func (v *EmptyResult) IsValid() error
- func (v *EmptyResult) MarshalBinary() ([]byte, error)
- func (v *EmptyResult) MarshalJSON() ([]byte, error)
- func (*EmptyResult) Type() TransactionType
- func (v *EmptyResult) UnmarshalBinary(data []byte) error
- func (v *EmptyResult) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *EmptyResult) UnmarshalJSON(data []byte) error
- type Envelope
- func (e *Envelope) EnvHash() []byte
- func (v *Envelope) Equal(u *Envelope) bool
- func (e *Envelope) GetTxHash() []byte
- func (v *Envelope) IsValid() error
- func (v *Envelope) MarshalBinary() ([]byte, error)
- func (v *Envelope) MarshalJSON() ([]byte, error)
- func (v *Envelope) UnmarshalBinary(data []byte) error
- func (v *Envelope) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *Envelope) UnmarshalJSON(data []byte) error
- func (e *Envelope) Verify() bool
- func (e *Envelope) VerifyTxHash() bool
- type Error
- type ErrorCode
- func (v ErrorCode) BinarySize() int
- func (v ErrorCode) ID() uint64
- func (v ErrorCode) MarshalBinary() ([]byte, error)
- func (v ErrorCode) MarshalJSON() ([]byte, error)
- func (v *ErrorCode) Set(id uint64) bool
- func (v ErrorCode) String() string
- func (v *ErrorCode) UnmarshalBinary(data []byte) error
- func (v *ErrorCode) UnmarshalJSON(data []byte) error
- type Fee
- type HashAlgorithm
- func (ha HashAlgorithm) Apply(b []byte) ([]byte, error)
- func (ha HashAlgorithm) BinarySize() int
- func (ha HashAlgorithm) MarshalBinary() ([]byte, error)
- func (ha HashAlgorithm) MarshalJSON() ([]byte, error)
- func (ha HashAlgorithm) MustApply(b []byte) []byte
- func (ha HashAlgorithm) String() string
- func (ha *HashAlgorithm) UnmarshalBinary(b []byte) error
- func (ha *HashAlgorithm) UnmarshalJSON(b []byte) error
- type IndexEntry
- type InternalGenesis
- func (v *InternalGenesis) Equal(u *InternalGenesis) bool
- func (*InternalGenesis) GetType() TransactionType
- func (v *InternalGenesis) IsValid() error
- func (v *InternalGenesis) MarshalBinary() ([]byte, error)
- func (v *InternalGenesis) MarshalJSON() ([]byte, error)
- func (*InternalGenesis) Type() TransactionType
- func (v *InternalGenesis) UnmarshalBinary(data []byte) error
- func (v *InternalGenesis) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *InternalGenesis) UnmarshalJSON(data []byte) error
- type InternalLedger
- func (v *InternalLedger) Equal(u *InternalLedger) bool
- func (*InternalLedger) GetType() AccountType
- func (v *InternalLedger) IsValid() error
- func (v *InternalLedger) MarshalBinary() ([]byte, error)
- func (v *InternalLedger) MarshalJSON() ([]byte, error)
- func (*InternalLedger) Type() AccountType
- func (v *InternalLedger) UnmarshalBinary(data []byte) error
- func (v *InternalLedger) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *InternalLedger) UnmarshalJSON(data []byte) error
- type InternalSendTransactions
- func (*InternalSendTransactions) GetType() TransactionType
- func (v *InternalSendTransactions) IsValid() error
- func (v *InternalSendTransactions) MarshalBinary() ([]byte, error)
- func (v *InternalSendTransactions) MarshalJSON() ([]byte, error)
- func (*InternalSendTransactions) Type() TransactionType
- func (v *InternalSendTransactions) UnmarshalBinary(data []byte) error
- func (v *InternalSendTransactions) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *InternalSendTransactions) UnmarshalJSON(data []byte) error
- type InternalTransactionsSent
- func (v *InternalTransactionsSent) Equal(u *InternalTransactionsSent) bool
- func (*InternalTransactionsSent) GetType() TransactionType
- func (v *InternalTransactionsSent) IsValid() error
- func (v *InternalTransactionsSent) MarshalBinary() ([]byte, error)
- func (v *InternalTransactionsSent) MarshalJSON() ([]byte, error)
- func (*InternalTransactionsSent) Type() TransactionType
- func (v *InternalTransactionsSent) UnmarshalBinary(data []byte) error
- func (v *InternalTransactionsSent) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *InternalTransactionsSent) UnmarshalJSON(data []byte) error
- type InternalTransactionsSigned
- func (v *InternalTransactionsSigned) Equal(u *InternalTransactionsSigned) bool
- func (*InternalTransactionsSigned) GetType() TransactionType
- func (v *InternalTransactionsSigned) IsValid() error
- func (v *InternalTransactionsSigned) MarshalBinary() ([]byte, error)
- func (v *InternalTransactionsSigned) MarshalJSON() ([]byte, error)
- func (*InternalTransactionsSigned) Type() TransactionType
- func (v *InternalTransactionsSigned) UnmarshalBinary(data []byte) error
- func (v *InternalTransactionsSigned) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *InternalTransactionsSigned) UnmarshalJSON(data []byte) error
- type IssueTokens
- func (v *IssueTokens) Equal(u *IssueTokens) bool
- func (*IssueTokens) GetType() TransactionType
- func (v *IssueTokens) IsValid() error
- func (v *IssueTokens) MarshalBinary() ([]byte, error)
- func (v *IssueTokens) MarshalJSON() ([]byte, error)
- func (*IssueTokens) Type() TransactionType
- func (v *IssueTokens) UnmarshalBinary(data []byte) error
- func (v *IssueTokens) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *IssueTokens) UnmarshalJSON(data []byte) error
- type KeyBook
- func (v *KeyBook) Equal(u *KeyBook) bool
- func (*KeyBook) GetType() AccountType
- func (v *KeyBook) IsValid() error
- func (v *KeyBook) MarshalBinary() ([]byte, error)
- func (v *KeyBook) MarshalJSON() ([]byte, error)
- func (*KeyBook) Type() AccountType
- func (v *KeyBook) UnmarshalBinary(data []byte) error
- func (v *KeyBook) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *KeyBook) UnmarshalJSON(data []byte) error
- type KeyPage
- func (ms *KeyPage) CreditCredits(amount uint64)
- func (ms *KeyPage) DebitCredits(amount uint64) bool
- func (v *KeyPage) Equal(u *KeyPage) bool
- func (ms *KeyPage) FindKey(pubKey []byte) *KeySpec
- func (ms *KeyPage) GetMofN() (m, n uint64)
- func (*KeyPage) GetType() AccountType
- func (v *KeyPage) IsValid() error
- func (v *KeyPage) MarshalBinary() ([]byte, error)
- func (v *KeyPage) MarshalJSON() ([]byte, error)
- func (page *KeyPage) SetNonce(key []byte, nonce uint64) error
- func (ms *KeyPage) SetThreshold(m uint64) error
- func (*KeyPage) Type() AccountType
- func (v *KeyPage) UnmarshalBinary(data []byte) error
- func (v *KeyPage) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *KeyPage) UnmarshalJSON(data []byte) error
- type KeyPageOperation
- func (v KeyPageOperation) BinarySize() int
- func (v KeyPageOperation) ID() uint64
- func (v KeyPageOperation) MarshalBinary() ([]byte, error)
- func (v KeyPageOperation) MarshalJSON() ([]byte, error)
- func (v *KeyPageOperation) Set(id uint64) bool
- func (v KeyPageOperation) String() string
- func (v *KeyPageOperation) UnmarshalBinary(data []byte) error
- func (v *KeyPageOperation) UnmarshalJSON(data []byte) error
- type KeySpec
- func (v *KeySpec) Equal(u *KeySpec) bool
- func (v *KeySpec) IsValid() error
- func (v *KeySpec) MarshalBinary() ([]byte, error)
- func (v *KeySpec) MarshalJSON() ([]byte, error)
- func (v *KeySpec) UnmarshalBinary(data []byte) error
- func (v *KeySpec) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *KeySpec) UnmarshalJSON(data []byte) error
- type KeySpecParams
- func (v *KeySpecParams) Equal(u *KeySpecParams) bool
- func (v *KeySpecParams) IsValid() error
- func (v *KeySpecParams) MarshalBinary() ([]byte, error)
- func (v *KeySpecParams) MarshalJSON() ([]byte, error)
- func (v *KeySpecParams) UnmarshalBinary(data []byte) error
- func (v *KeySpecParams) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *KeySpecParams) UnmarshalJSON(data []byte) error
- type LegacyED25519Signature
- func (v *LegacyED25519Signature) Equal(u *LegacyED25519Signature) bool
- func (e *LegacyED25519Signature) GetPublicKey() []byte
- func (e *LegacyED25519Signature) GetSignature() []byte
- func (v *LegacyED25519Signature) IsValid() error
- func (v *LegacyED25519Signature) MarshalBinary() ([]byte, error)
- func (v *LegacyED25519Signature) MarshalJSON() ([]byte, error)
- func (e *LegacyED25519Signature) Sign(nonce uint64, privateKey []byte, hash []byte) error
- func (*LegacyED25519Signature) Type() SignatureType
- func (v *LegacyED25519Signature) UnmarshalBinary(data []byte) error
- func (v *LegacyED25519Signature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *LegacyED25519Signature) UnmarshalJSON(data []byte) error
- func (e *LegacyED25519Signature) Verify(hash []byte) bool
- type LiteDataAccount
- func (c *LiteDataAccount) AccountId() ([]byte, error)
- func (v *LiteDataAccount) Equal(u *LiteDataAccount) bool
- func (*LiteDataAccount) GetType() AccountType
- func (v *LiteDataAccount) IsValid() error
- func (v *LiteDataAccount) MarshalBinary() ([]byte, error)
- func (v *LiteDataAccount) MarshalJSON() ([]byte, error)
- func (*LiteDataAccount) Type() AccountType
- func (v *LiteDataAccount) UnmarshalBinary(data []byte) error
- func (v *LiteDataAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *LiteDataAccount) UnmarshalJSON(data []byte) error
- type LiteDataEntry
- type LiteIdentity
- func (v *LiteIdentity) Equal(u *LiteIdentity) bool
- func (*LiteIdentity) GetType() AccountType
- func (v *LiteIdentity) IsValid() error
- func (v *LiteIdentity) MarshalBinary() ([]byte, error)
- func (v *LiteIdentity) MarshalJSON() ([]byte, error)
- func (*LiteIdentity) Type() AccountType
- func (v *LiteIdentity) UnmarshalBinary(data []byte) error
- func (v *LiteIdentity) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *LiteIdentity) UnmarshalJSON(data []byte) error
- type LiteTokenAccount
- func (acct *LiteTokenAccount) CanDebitTokens(amount *big.Int) bool
- func (acct *LiteTokenAccount) CreditCredits(amount uint64)
- func (acct *LiteTokenAccount) CreditTokens(amount *big.Int) bool
- func (acct *LiteTokenAccount) DebitCredits(amount uint64) bool
- func (acct *LiteTokenAccount) DebitTokens(amount *big.Int) bool
- func (v *LiteTokenAccount) Equal(u *LiteTokenAccount) bool
- func (*LiteTokenAccount) GetType() AccountType
- func (v *LiteTokenAccount) IsValid() error
- func (v *LiteTokenAccount) MarshalBinary() ([]byte, error)
- func (v *LiteTokenAccount) MarshalJSON() ([]byte, error)
- func (acct *LiteTokenAccount) ParseTokenUrl() (*url.URL, error)deprecated
- func (acct *LiteTokenAccount) SetNonce(key []byte, nonce uint64) error
- func (acct *LiteTokenAccount) TokenBalance() *big.Int
- func (*LiteTokenAccount) Type() AccountType
- func (v *LiteTokenAccount) UnmarshalBinary(data []byte) error
- func (v *LiteTokenAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *LiteTokenAccount) UnmarshalJSON(data []byte) error
- type MetricsRequest
- func (v *MetricsRequest) Equal(u *MetricsRequest) bool
- func (v *MetricsRequest) IsValid() error
- func (v *MetricsRequest) MarshalBinary() ([]byte, error)
- func (v *MetricsRequest) MarshalJSON() ([]byte, error)
- func (v *MetricsRequest) UnmarshalBinary(data []byte) error
- func (v *MetricsRequest) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *MetricsRequest) UnmarshalJSON(data []byte) error
- type MetricsResponse
- type Object
- func (o *Object) As(entry encoding.BinaryUnmarshaler) error
- func (v *Object) Equal(u *Object) bool
- func (v *Object) IsValid() error
- func (v *Object) MarshalBinary() ([]byte, error)
- func (v *Object) MarshalJSON() ([]byte, error)
- func (v *Object) UnmarshalBinary(data []byte) error
- func (v *Object) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *Object) UnmarshalJSON(data []byte) error
- type ObjectMetadata
- type ObjectType
- func (v ObjectType) BinarySize() int
- func (v ObjectType) ID() uint64
- func (v ObjectType) MarshalBinary() ([]byte, error)
- func (v ObjectType) MarshalJSON() ([]byte, error)
- func (v *ObjectType) Set(id uint64) bool
- func (v ObjectType) String() string
- func (v *ObjectType) UnmarshalBinary(data []byte) error
- func (v *ObjectType) UnmarshalJSON(data []byte) error
- type PendingTransactionState
- func (v *PendingTransactionState) Equal(u *PendingTransactionState) bool
- func (*PendingTransactionState) GetType() AccountType
- func (v *PendingTransactionState) IsValid() error
- func (v *PendingTransactionState) MarshalBinary() ([]byte, error)
- func (v *PendingTransactionState) MarshalJSON() ([]byte, error)
- func (tx *PendingTransactionState) Restore() *Envelope
- func (*PendingTransactionState) Type() AccountType
- func (v *PendingTransactionState) UnmarshalBinary(data []byte) error
- func (v *PendingTransactionState) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *PendingTransactionState) UnmarshalJSON(data []byte) error
- type Receipt
- func (r *Receipt) Convert() *managed.Receipt
- func (v *Receipt) Equal(u *Receipt) bool
- func (v *Receipt) IsValid() error
- func (v *Receipt) MarshalBinary() ([]byte, error)
- func (v *Receipt) MarshalJSON() ([]byte, error)
- func (v *Receipt) UnmarshalBinary(data []byte) error
- func (v *Receipt) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *Receipt) UnmarshalJSON(data []byte) error
- type ReceiptEntry
- func (v *ReceiptEntry) Equal(u *ReceiptEntry) bool
- func (v *ReceiptEntry) IsValid() error
- func (v *ReceiptEntry) MarshalBinary() ([]byte, error)
- func (v *ReceiptEntry) MarshalJSON() ([]byte, error)
- func (v *ReceiptEntry) UnmarshalBinary(data []byte) error
- func (v *ReceiptEntry) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ReceiptEntry) UnmarshalJSON(data []byte) error
- type RemoveManager
- func (v *RemoveManager) Equal(u *RemoveManager) bool
- func (*RemoveManager) GetType() TransactionType
- func (v *RemoveManager) IsValid() error
- func (v *RemoveManager) MarshalBinary() ([]byte, error)
- func (v *RemoveManager) MarshalJSON() ([]byte, error)
- func (*RemoveManager) Type() TransactionType
- func (v *RemoveManager) UnmarshalBinary(data []byte) error
- func (v *RemoveManager) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *RemoveManager) UnmarshalJSON(data []byte) error
- type RequestDataEntry
- func (v *RequestDataEntry) Equal(u *RequestDataEntry) bool
- func (v *RequestDataEntry) IsValid() error
- func (v *RequestDataEntry) MarshalBinary() ([]byte, error)
- func (v *RequestDataEntry) MarshalJSON() ([]byte, error)
- func (v *RequestDataEntry) UnmarshalBinary(data []byte) error
- func (v *RequestDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *RequestDataEntry) UnmarshalJSON(data []byte) error
- type RequestDataEntrySet
- func (v *RequestDataEntrySet) Equal(u *RequestDataEntrySet) bool
- func (v *RequestDataEntrySet) IsValid() error
- func (v *RequestDataEntrySet) MarshalBinary() ([]byte, error)
- func (v *RequestDataEntrySet) UnmarshalBinary(data []byte) error
- func (v *RequestDataEntrySet) UnmarshalBinaryFrom(rd io.Reader) error
- type ResponseDataEntry
- func (v *ResponseDataEntry) Equal(u *ResponseDataEntry) bool
- func (v *ResponseDataEntry) IsValid() error
- func (v *ResponseDataEntry) MarshalBinary() ([]byte, error)
- func (v *ResponseDataEntry) MarshalJSON() ([]byte, error)
- func (v *ResponseDataEntry) UnmarshalBinary(data []byte) error
- func (v *ResponseDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ResponseDataEntry) UnmarshalJSON(data []byte) error
- type ResponseDataEntrySet
- func (v *ResponseDataEntrySet) Equal(u *ResponseDataEntrySet) bool
- func (v *ResponseDataEntrySet) IsValid() error
- func (v *ResponseDataEntrySet) MarshalBinary() ([]byte, error)
- func (v *ResponseDataEntrySet) UnmarshalBinary(data []byte) error
- func (v *ResponseDataEntrySet) UnmarshalBinaryFrom(rd io.Reader) error
- type SegWitDataEntry
- func (v *SegWitDataEntry) Equal(u *SegWitDataEntry) bool
- func (tx *SegWitDataEntry) GetCause() [32]byte
- func (*SegWitDataEntry) GetType() TransactionType
- func (v *SegWitDataEntry) IsValid() error
- func (v *SegWitDataEntry) MarshalBinary() ([]byte, error)
- func (v *SegWitDataEntry) MarshalJSON() ([]byte, error)
- func (*SegWitDataEntry) Type() TransactionType
- func (v *SegWitDataEntry) UnmarshalBinary(data []byte) error
- func (v *SegWitDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SegWitDataEntry) UnmarshalJSON(data []byte) error
- type SendTokens
- func (tx *SendTokens) AddRecipient(to *url.URL, amount *big.Int)
- func (v *SendTokens) Equal(u *SendTokens) bool
- func (*SendTokens) GetType() TransactionType
- func (v *SendTokens) IsValid() error
- func (v *SendTokens) MarshalBinary() ([]byte, error)
- func (v *SendTokens) MarshalJSON() ([]byte, error)
- func (*SendTokens) Type() TransactionType
- func (v *SendTokens) UnmarshalBinary(data []byte) error
- func (v *SendTokens) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SendTokens) UnmarshalJSON(data []byte) error
- type SendTransaction
- func (v *SendTransaction) IsValid() error
- func (v *SendTransaction) MarshalBinary() ([]byte, error)
- func (v *SendTransaction) MarshalJSON() ([]byte, error)
- func (v *SendTransaction) UnmarshalBinary(data []byte) error
- func (v *SendTransaction) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SendTransaction) UnmarshalJSON(data []byte) error
- type SignPending
- func (v *SignPending) Equal(u *SignPending) bool
- func (*SignPending) GetType() TransactionType
- func (v *SignPending) IsValid() error
- func (v *SignPending) MarshalBinary() ([]byte, error)
- func (v *SignPending) MarshalJSON() ([]byte, error)
- func (*SignPending) Type() TransactionType
- func (v *SignPending) UnmarshalBinary(data []byte) error
- func (v *SignPending) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SignPending) UnmarshalJSON(data []byte) error
- type Signature
- func NewSignature(typ SignatureType) (Signature, error)
- func SignWithFaucet(nonce uint64, message []byte) (Signature, error)
- func UnmarshalSignature(data []byte) (Signature, error)
- func UnmarshalSignatureFrom(rd io.ReadSeeker) (Signature, error)
- func UnmarshalSignatureJSON(data []byte) (Signature, error)
- type SignatureType
- func (v SignatureType) BinarySize() int
- func (v SignatureType) ID() uint64
- func (v SignatureType) MarshalBinary() ([]byte, error)
- func (v SignatureType) MarshalJSON() ([]byte, error)
- func (v *SignatureType) Set(id uint64) bool
- func (v SignatureType) String() string
- func (v *SignatureType) UnmarshalBinary(data []byte) error
- func (v *SignatureType) UnmarshalJSON(data []byte) error
- type SyntheticAnchor
- func (v *SyntheticAnchor) Equal(u *SyntheticAnchor) bool
- func (*SyntheticAnchor) GetType() TransactionType
- func (v *SyntheticAnchor) IsValid() error
- func (v *SyntheticAnchor) MarshalBinary() ([]byte, error)
- func (v *SyntheticAnchor) MarshalJSON() ([]byte, error)
- func (*SyntheticAnchor) Type() TransactionType
- func (v *SyntheticAnchor) UnmarshalBinary(data []byte) error
- func (v *SyntheticAnchor) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticAnchor) UnmarshalJSON(data []byte) error
- type SyntheticBurnTokens
- func (v *SyntheticBurnTokens) Equal(u *SyntheticBurnTokens) bool
- func (tx *SyntheticBurnTokens) GetCause() [32]byte
- func (*SyntheticBurnTokens) GetType() TransactionType
- func (v *SyntheticBurnTokens) IsValid() error
- func (v *SyntheticBurnTokens) MarshalBinary() ([]byte, error)
- func (v *SyntheticBurnTokens) MarshalJSON() ([]byte, error)
- func (*SyntheticBurnTokens) Type() TransactionType
- func (v *SyntheticBurnTokens) UnmarshalBinary(data []byte) error
- func (v *SyntheticBurnTokens) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticBurnTokens) UnmarshalJSON(data []byte) error
- type SyntheticCreateChain
- func (tx *SyntheticCreateChain) Create(chains ...Account) error
- func (v *SyntheticCreateChain) Equal(u *SyntheticCreateChain) bool
- func (tx *SyntheticCreateChain) GetCause() [32]byte
- func (*SyntheticCreateChain) GetType() TransactionType
- func (v *SyntheticCreateChain) IsValid() error
- func (v *SyntheticCreateChain) MarshalBinary() ([]byte, error)
- func (v *SyntheticCreateChain) MarshalJSON() ([]byte, error)
- func (*SyntheticCreateChain) Type() TransactionType
- func (v *SyntheticCreateChain) UnmarshalBinary(data []byte) error
- func (v *SyntheticCreateChain) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticCreateChain) UnmarshalJSON(data []byte) error
- func (tx *SyntheticCreateChain) Update(chains ...Account) error
- type SyntheticDepositCredits
- func (v *SyntheticDepositCredits) Equal(u *SyntheticDepositCredits) bool
- func (tx *SyntheticDepositCredits) GetCause() [32]byte
- func (*SyntheticDepositCredits) GetType() TransactionType
- func (v *SyntheticDepositCredits) IsValid() error
- func (v *SyntheticDepositCredits) MarshalBinary() ([]byte, error)
- func (v *SyntheticDepositCredits) MarshalJSON() ([]byte, error)
- func (*SyntheticDepositCredits) Type() TransactionType
- func (v *SyntheticDepositCredits) UnmarshalBinary(data []byte) error
- func (v *SyntheticDepositCredits) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticDepositCredits) UnmarshalJSON(data []byte) error
- type SyntheticDepositTokens
- func (v *SyntheticDepositTokens) Equal(u *SyntheticDepositTokens) bool
- func (tx *SyntheticDepositTokens) GetCause() [32]byte
- func (*SyntheticDepositTokens) GetType() TransactionType
- func (v *SyntheticDepositTokens) IsValid() error
- func (v *SyntheticDepositTokens) MarshalBinary() ([]byte, error)
- func (v *SyntheticDepositTokens) MarshalJSON() ([]byte, error)
- func (*SyntheticDepositTokens) Type() TransactionType
- func (v *SyntheticDepositTokens) UnmarshalBinary(data []byte) error
- func (v *SyntheticDepositTokens) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticDepositTokens) UnmarshalJSON(data []byte) error
- type SyntheticLedger
- func (v *SyntheticLedger) Equal(u *SyntheticLedger) bool
- func (v *SyntheticLedger) IsValid() error
- func (v *SyntheticLedger) MarshalBinary() ([]byte, error)
- func (v *SyntheticLedger) MarshalJSON() ([]byte, error)
- func (v *SyntheticLedger) UnmarshalBinary(data []byte) error
- func (v *SyntheticLedger) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticLedger) UnmarshalJSON(data []byte) error
- type SyntheticMirror
- func (v *SyntheticMirror) Equal(u *SyntheticMirror) bool
- func (*SyntheticMirror) GetType() TransactionType
- func (v *SyntheticMirror) IsValid() error
- func (v *SyntheticMirror) MarshalBinary() ([]byte, error)
- func (v *SyntheticMirror) MarshalJSON() ([]byte, error)
- func (*SyntheticMirror) Type() TransactionType
- func (v *SyntheticMirror) UnmarshalBinary(data []byte) error
- func (v *SyntheticMirror) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticMirror) UnmarshalJSON(data []byte) error
- type SyntheticTransaction
- type SyntheticWriteData
- func (v *SyntheticWriteData) Equal(u *SyntheticWriteData) bool
- func (tx *SyntheticWriteData) GetCause() [32]byte
- func (*SyntheticWriteData) GetType() TransactionType
- func (v *SyntheticWriteData) IsValid() error
- func (v *SyntheticWriteData) MarshalBinary() ([]byte, error)
- func (v *SyntheticWriteData) MarshalJSON() ([]byte, error)
- func (*SyntheticWriteData) Type() TransactionType
- func (v *SyntheticWriteData) UnmarshalBinary(data []byte) error
- func (v *SyntheticWriteData) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticWriteData) UnmarshalJSON(data []byte) error
- type TokenAccount
- func (acct *TokenAccount) CanDebitTokens(amount *big.Int) bool
- func (acct *TokenAccount) CreditTokens(amount *big.Int) bool
- func (acct *TokenAccount) DebitTokens(amount *big.Int) bool
- func (v *TokenAccount) Equal(u *TokenAccount) bool
- func (*TokenAccount) GetType() AccountType
- func (v *TokenAccount) IsValid() error
- func (v *TokenAccount) MarshalBinary() ([]byte, error)
- func (v *TokenAccount) MarshalJSON() ([]byte, error)
- func (acct *TokenAccount) ParseTokenUrl() (*url.URL, error)deprecated
- func (acct *TokenAccount) TokenBalance() *big.Int
- func (*TokenAccount) Type() AccountType
- func (v *TokenAccount) UnmarshalBinary(data []byte) error
- func (v *TokenAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TokenAccount) UnmarshalJSON(data []byte) error
- type TokenHolder
- type TokenIssuer
- func (v *TokenIssuer) Equal(u *TokenIssuer) bool
- func (*TokenIssuer) GetType() AccountType
- func (v *TokenIssuer) IsValid() error
- func (v *TokenIssuer) MarshalBinary() ([]byte, error)
- func (v *TokenIssuer) MarshalJSON() ([]byte, error)
- func (*TokenIssuer) Type() AccountType
- func (v *TokenIssuer) UnmarshalBinary(data []byte) error
- func (v *TokenIssuer) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TokenIssuer) UnmarshalJSON(data []byte) error
- type TokenRecipient
- func (v *TokenRecipient) Equal(u *TokenRecipient) bool
- func (v *TokenRecipient) IsValid() error
- func (v *TokenRecipient) MarshalBinary() ([]byte, error)
- func (v *TokenRecipient) MarshalJSON() ([]byte, error)
- func (v *TokenRecipient) UnmarshalBinary(data []byte) error
- func (v *TokenRecipient) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TokenRecipient) UnmarshalJSON(data []byte) error
- type Transaction
- func (v *Transaction) Equal(u *Transaction) bool
- func (v *Transaction) IsValid() error
- func (v *Transaction) MarshalBinary() ([]byte, error)
- func (v *Transaction) MarshalJSON() ([]byte, error)
- func (t *Transaction) Type() TransactionType
- func (v *Transaction) UnmarshalBinary(data []byte) error
- func (v *Transaction) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *Transaction) UnmarshalJSON(data []byte) error
- type TransactionBody
- func NewTransaction(typ TransactionType) (TransactionBody, error)
- func NewTransactionBody(typ TransactionType) (TransactionBody, error)
- func UnmarshalTransaction(data []byte) (TransactionBody, error)
- func UnmarshalTransactionBody(data []byte) (TransactionBody, error)
- func UnmarshalTransactionBodyFrom(rd io.ReadSeeker) (TransactionBody, error)
- func UnmarshalTransactionBodyJSON(data []byte) (TransactionBody, error)
- func UnmarshalTransactionJSON(data []byte) (TransactionBody, error)
- type TransactionHeader
- type TransactionMax
- func (v TransactionMax) BinarySize() int
- func (v TransactionMax) ID() uint64
- func (v TransactionMax) MarshalBinary() ([]byte, error)
- func (v TransactionMax) MarshalJSON() ([]byte, error)
- func (v *TransactionMax) Set(id uint64) bool
- func (v TransactionMax) String() string
- func (v *TransactionMax) UnmarshalBinary(data []byte) error
- func (v *TransactionMax) UnmarshalJSON(data []byte) error
- type TransactionPayloaddeprecated
- type TransactionResult
- func NewTransactionResult(typ TransactionType) (TransactionResult, error)
- func UnmarshalTransactionResult(data []byte) (TransactionResult, error)
- func UnmarshalTransactionResultFrom(rd io.ReadSeeker) (TransactionResult, error)
- func UnmarshalTransactionResultJSON(data []byte) (TransactionResult, error)
- type TransactionSignature
- func (v *TransactionSignature) Equal(u *TransactionSignature) bool
- func (v *TransactionSignature) IsValid() error
- func (v *TransactionSignature) MarshalBinary() ([]byte, error)
- func (v *TransactionSignature) MarshalJSON() ([]byte, error)
- func (v *TransactionSignature) UnmarshalBinary(data []byte) error
- func (v *TransactionSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TransactionSignature) UnmarshalJSON(data []byte) error
- type TransactionState
- func (v *TransactionState) Equal(u *TransactionState) bool
- func (*TransactionState) GetType() AccountType
- func (v *TransactionState) IsValid() error
- func (v *TransactionState) MarshalBinary() ([]byte, error)
- func (v *TransactionState) MarshalJSON() ([]byte, error)
- func (tx *TransactionState) Restore() *Envelope
- func (is *TransactionState) TransactionHash() *[32]byte
- func (tx *TransactionState) TxType() TransactionType
- func (*TransactionState) Type() AccountType
- func (v *TransactionState) UnmarshalBinary(data []byte) error
- func (v *TransactionState) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TransactionState) UnmarshalJSON(data []byte) error
- type TransactionStatus
- func (v *TransactionStatus) Equal(u *TransactionStatus) bool
- func (v *TransactionStatus) IsValid() error
- func (v *TransactionStatus) MarshalBinary() ([]byte, error)
- func (v *TransactionStatus) MarshalJSON() ([]byte, error)
- func (v *TransactionStatus) UnmarshalBinary(data []byte) error
- func (v *TransactionStatus) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TransactionStatus) UnmarshalJSON(data []byte) error
- type TransactionType
- func (v TransactionType) BinarySize() int
- func (v TransactionType) ID() uint64
- func (t TransactionType) IsInternal() bool
- func (t TransactionType) IsSynthetic() bool
- func (t TransactionType) IsUser() bool
- func (v TransactionType) MarshalBinary() ([]byte, error)
- func (v TransactionType) MarshalJSON() ([]byte, error)
- func (v *TransactionType) Set(id uint64) bool
- func (v TransactionType) String() string
- func (v *TransactionType) UnmarshalBinary(data []byte) error
- func (v *TransactionType) UnmarshalJSON(data []byte) error
- type TxState
- func (v *TxState) Equal(u *TxState) bool
- func (v *TxState) IsValid() error
- func (v *TxState) MarshalBinary() ([]byte, error)
- func (v *TxState) MarshalJSON() ([]byte, error)
- func (v *TxState) UnmarshalBinary(data []byte) error
- func (v *TxState) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TxState) UnmarshalJSON(data []byte) error
- type UpdateKeyPage
- func (v *UpdateKeyPage) Equal(u *UpdateKeyPage) bool
- func (*UpdateKeyPage) GetType() TransactionType
- func (v *UpdateKeyPage) IsValid() error
- func (v *UpdateKeyPage) MarshalBinary() ([]byte, error)
- func (v *UpdateKeyPage) MarshalJSON() ([]byte, error)
- func (*UpdateKeyPage) Type() TransactionType
- func (v *UpdateKeyPage) UnmarshalBinary(data []byte) error
- func (v *UpdateKeyPage) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UpdateKeyPage) UnmarshalJSON(data []byte) error
- type UpdateManager
- func (v *UpdateManager) Equal(u *UpdateManager) bool
- func (*UpdateManager) GetType() TransactionType
- func (v *UpdateManager) IsValid() error
- func (v *UpdateManager) MarshalBinary() ([]byte, error)
- func (v *UpdateManager) MarshalJSON() ([]byte, error)
- func (*UpdateManager) Type() TransactionType
- func (v *UpdateManager) UnmarshalBinary(data []byte) error
- func (v *UpdateManager) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UpdateManager) UnmarshalJSON(data []byte) error
- type WrappedTxPayload
- type WriteData
- func (v *WriteData) Equal(u *WriteData) bool
- func (*WriteData) GetType() TransactionType
- func (v *WriteData) IsValid() error
- func (v *WriteData) MarshalBinary() ([]byte, error)
- func (v *WriteData) MarshalJSON() ([]byte, error)
- func (*WriteData) Type() TransactionType
- func (v *WriteData) UnmarshalBinary(data []byte) error
- func (v *WriteData) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *WriteData) UnmarshalJSON(data []byte) error
- type WriteDataResult
- func (v *WriteDataResult) Equal(u *WriteDataResult) bool
- func (*WriteDataResult) GetType() TransactionType
- func (v *WriteDataResult) IsValid() error
- func (v *WriteDataResult) MarshalBinary() ([]byte, error)
- func (v *WriteDataResult) MarshalJSON() ([]byte, error)
- func (*WriteDataResult) Type() TransactionType
- func (v *WriteDataResult) UnmarshalBinary(data []byte) error
- func (v *WriteDataResult) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *WriteDataResult) UnmarshalJSON(data []byte) error
- type WriteDataTo
- func (v *WriteDataTo) Equal(u *WriteDataTo) bool
- func (*WriteDataTo) GetType() TransactionType
- func (v *WriteDataTo) IsValid() error
- func (v *WriteDataTo) MarshalBinary() ([]byte, error)
- func (v *WriteDataTo) MarshalJSON() ([]byte, error)
- func (*WriteDataTo) Type() TransactionType
- func (v *WriteDataTo) UnmarshalBinary(data []byte) error
- func (v *WriteDataTo) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *WriteDataTo) UnmarshalJSON(data []byte) error
Constants ¶
const ( // ACME is the name of the ACME token. ACME = "ACME" // Directory is the subnet ID of the DN. Directory = "Directory" // ValidatorBook is the path to a node's validator key book. ValidatorBook = "validators" // Ledger is the path to a node's internal ledger. Ledger = "ledger" // AnchorPool is the path to a node's anchor chain account. AnchorPool = "anchors" // Votes is the path to the scratch data account for subnet voting records Votes = "votes" // Evidence is the path to the scratch data account for subnet voting records Evidence = "evidence" // Oracle is the path to a node's anchor chain account. Oracle = "oracle" // MainChain is the main transaction chain of a record. MainChain = "main" // PendingChain is the pending signature chain of a record. PendingChain = "pending" // DataChain is the data chain of a record. DataChain = "data" // MajorRootChain is the major anchor root chain of a subnet. MajorRootChain = "major-root" // MinorRootChain is the minor anchor root chain of a subnet. MinorRootChain = "minor-root" // MajorRootIndexChain is the index chain of the major anchor root chain of a subnet. MajorRootIndexChain = "major-root-index" // MinorRootIndexChain is the index chain of the minor anchor root chain of a subnet. MinorRootIndexChain = "minor-root-index" // SyntheticChain is the synthetic transaction chain of a subnet. SyntheticChain = "synthetic" )
Well known strings
const AcmeFaucetAmount = 2000
const AcmeOraclePrecision = 10000
AcmeOraclePrecision is the precision of the oracle in 100 * USD of one ACME token.
const AcmePrecision = 1e8
AcmePrecision is the precision of ACME token amounts.
const CreditPrecision = 1e2
CreditPrecision is the precision of credit balances.
const CreditsPerFiatUnit = 1e2 * CreditPrecision
CreditsPerFiatUnit is the conversion rate from credit balances to fiat currency. We expect to use USD indefinitely as the fiat currency.
100 credits converts to 1 dollar, but we charge down to 0.01 credits. So the actual conversion rate of the credit balance field to dollars is 10,000 to 1.
const LiteEntryHeaderSize = 1 + 32 + 2 // total len
LiteEntryHeaderSize is the exact length of an Entry header.
const LiteEntryMaxTotalSize = WriteDataMax + LiteEntryHeaderSize
LiteEntryMaxTotalSize is the maximum encoded length of an Entry.
const WriteDataMax = 10240
Variables ¶
var ErrNotEnoughData = encoding.ErrNotEnoughData
var ErrOverflow = encoding.ErrOverflow
var Faucet faucet
var FaucetUrl *url.URL
var PriceOracleAuthority = PriceOracle().String()
Functions ¶
func BelongsToDn ¶
BelongsToDn checks if the give account belongs to the DN.
func BvnNameFromSubnetId ¶
BvnNameFromSubnetId formats a BVN subnet name from the configuration to a valid URL hostname.
func ComputeEntryHash ¶
ComputeEntryHash returns the entry hash given external id's and data associated with an entry
func ComputeLiteDataAccountId ¶
ComputeLiteDataAccountId will compute the chain id from the first entry in the chain which defines the names as part of the external id's https://github.com/FactomProject/FactomDocs/blob/master/factomDataStructureDetails.md#chainid
func ComputeLiteEntryHash ¶
ComputeLiteEntryHash returns the Entry hash of data for a lite chain https://github.com/FactomProject/FactomDocs/blob/master/factomDataStructureDetails.md#entry-hash
func ComputeLiteEntryHashFromEntry ¶
ComputeLiteEntryHashFromEntry will compute the entry hash from an entry. If accountId is nil, then entry will be used to construct an account id, and it assumes the entry will be the first entry in the chain
func IndexChain ¶ added in v0.5.1
IndexChain returns the major or minor index chain name for a given chain. Do not use for the root anchor chain.
func IsValidAdiUrl ¶
IsValidAdiUrl returns an error if the URL is not valid for an ADI.
An ADI URL: 1) Must be valid UTF-8. 2) Authority must not include a port number. 3) Must have a (non-empty) hostname. 4) Hostname must not include dots (cannot be a domain). 5) Hostname must not be a number. 6) Hostname must not be 48 hexidecimal digits. 7) Must not have a path, query, or fragment. 8) Must not be a reserved URL, such as ACME, DN, or BVN-*
func LiteDataAddress ¶
LiteDataAddress returns a lite address for the given chain id as `acc://<chain-id-hash-and-checksum>`.
The rules for generating the authority of a lite data chain are the same as the address for a Lite Token Account
func LiteTokenAddress ¶
LiteTokenAddress returns an lite address for the given public key and token URL as `acc://<key-hash-and-checksum>/<token-url>`.
Only the first 20 bytes of the public key hash is used. The checksum is the last four bytes of the hexadecimal partial key hash. For an ACME lite token account URL for a key with a public key hash of
"aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f"
The checksum is calculated as
sha256("aec070645fe53ee3b3763059376134f058cc3372")[28:] == "26e2a324"
The resulting URL is
"acc://aec070645fe53ee3b3763059376134f058cc337226e2a324/ACME"
func NewValidator ¶
func NewValidator() (*validator.Validate, error)
func ParseBvnUrl ¶
ParseBvnUrl extracts the BVN subnet name from a BVN URL, if the URL is a valid BVN ADI URL.
func ParseLiteDataAddress ¶
ParseLiteDataAddress extracts the partial chain id from a lite chain URL. Returns `nil, err if the URL does not appear to be a lite token chain URL. Returns an error if the checksum is invalid.
func ParseLiteTokenAddress ¶
ParseLiteTokenAddress extracts the key hash and token URL from an lite token account URL. Returns `nil, nil, nil` if the URL is not an lite token account URL. Returns an error if the checksum is invalid.
Types ¶
type ADI ¶
type ADI struct { AccountHeader // contains filtered or unexported fields }
func (*ADI) GetType ¶
func (*ADI) GetType() AccountType
func (*ADI) MarshalBinary ¶
func (*ADI) MarshalJSON ¶
func (*ADI) Type ¶
func (*ADI) Type() AccountType
func (*ADI) UnmarshalBinary ¶
func (*ADI) UnmarshalJSON ¶
type Account ¶
type Account interface { encoding.BinaryValue GetType() AccountType Type() AccountType Header() *AccountHeader }
func NewAccount ¶
func NewAccount(typ AccountType) (Account, error)
NewAccount creates a new Account for the specified AccountType.
func UnmarshalAccount ¶
UnmarshalAccount unmarshals a Account.
func UnmarshalAccountFrom ¶
func UnmarshalAccountFrom(rd io.ReadSeeker) (Account, error)
UnmarshalAccountFrom unmarshals a Account.
func UnmarshalAccountJSON ¶
UnmarshalAccountJson unmarshals a Account.
type AccountHeader ¶
type AccountHeader struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` KeyBook *url.URL `json:"keyBook,omitempty" form:"keyBook" query:"keyBook" validate:"required"` ManagerKeyBook *url.URL `json:"managerKeyBook,omitempty" form:"managerKeyBook" query:"managerKeyBook" validate:"required"` // contains filtered or unexported fields }
func (*AccountHeader) Equal ¶
func (v *AccountHeader) Equal(u *AccountHeader) bool
func (*AccountHeader) Header ¶
func (h *AccountHeader) Header() *AccountHeader
func (*AccountHeader) IsValid ¶
func (v *AccountHeader) IsValid() error
func (*AccountHeader) MarshalBinary ¶
func (v *AccountHeader) MarshalBinary() ([]byte, error)
func (*AccountHeader) ParseUrl
deprecated
func (h *AccountHeader) ParseUrl() (*url.URL, error)
ParseUrl returns the parsed chain URL
Deprecated: use Url field
func (*AccountHeader) UnmarshalBinary ¶
func (v *AccountHeader) UnmarshalBinary(data []byte) error
func (*AccountHeader) UnmarshalBinaryFrom ¶
func (v *AccountHeader) UnmarshalBinaryFrom(rd io.Reader) error
type AccountType ¶
type AccountType uint64
AccountType is the type of an account.
const AccountTypeAnchor AccountType = 1
AccountTypeAnchor is one or more Merkle DAG anchors.
const AccountTypeDataAccount AccountType = 11
AccountTypeDataAccount is an ADI Data Account.
const AccountTypeIdentity AccountType = 2
AccountTypeIdentity is an Identity account, aka an ADI.
const AccountTypeInternalLedger AccountType = 14
AccountTypeInternalLedger is a ledger that tracks the state of internal operations.
const AccountTypeKeyBook AccountType = 10
AccountTypeKeyBook is a Key Book account.
const AccountTypeKeyPage AccountType = 9
AccountTypeKeyPage is a Key Page account.
const AccountTypeLiteDataAccount AccountType = 12
AccountTypeLiteDataAccount is a Lite Data Account.
const AccountTypeLiteIdentity AccountType = 15
AccountTypeLiteIdentity is a lite identity account.
const AccountTypeLiteTokenAccount AccountType = 5
AccountTypeLiteTokenAccount is a Lite Token Account.
const AccountTypePendingTransaction AccountType = 8
AccountTypePendingTransaction is a pending transaction.
const AccountTypeTokenAccount AccountType = 4
AccountTypeTokenAccount is an ADI Token Account.
const AccountTypeTokenIssuer AccountType = 3
AccountTypeTokenIssuer is a Token Issuer account.
const AccountTypeTransaction AccountType = 7
AccountTypeTransaction is a completed transaction.
const AccountTypeUnknown AccountType = 0
AccountTypeUnknown represents an unknown account type.
func AccountTypeByName ¶
func AccountTypeByName(name string) (AccountType, bool)
AccountTypeByName returns the named Account Type.
func UnmarshalAccountType ¶
func UnmarshalAccountType(r io.Reader) (AccountType, error)
UnmarshalAccountType unmarshals the AccountType from the start of a Account.
func (AccountType) BinarySize ¶
func (v AccountType) BinarySize() int
BinarySize returns the number of bytes required to binary marshal the Account Type.
func (AccountType) IsTransaction ¶
func (t AccountType) IsTransaction() bool
IsTransaction returns true if the account type is a transaction.
func (AccountType) MarshalBinary ¶
func (v AccountType) MarshalBinary() ([]byte, error)
MarshalBinary marshals the Account Type to bytes as a unsigned varint.
func (AccountType) MarshalJSON ¶
func (v AccountType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Account Type to JSON as a string.
func (*AccountType) Set ¶
func (v *AccountType) Set(id uint64) bool
Set sets the value. Set returns false if the value is invalid.
func (AccountType) String ¶
func (v AccountType) String() string
String returns the name of the Account Type
func (*AccountType) UnmarshalBinary ¶
func (v *AccountType) UnmarshalBinary(data []byte) error
UnmarshalBinary unmarshals the Account Type from bytes as a unsigned varint.
func (*AccountType) UnmarshalJSON ¶
func (v *AccountType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Account Type from JSON as a string.
type AcmeFaucet ¶
type AcmeFaucet struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` // contains filtered or unexported fields }
func (*AcmeFaucet) Equal ¶
func (v *AcmeFaucet) Equal(u *AcmeFaucet) bool
func (*AcmeFaucet) GetType ¶
func (*AcmeFaucet) GetType() TransactionType
func (*AcmeFaucet) IsValid ¶
func (v *AcmeFaucet) IsValid() error
func (*AcmeFaucet) MarshalBinary ¶
func (v *AcmeFaucet) MarshalBinary() ([]byte, error)
func (*AcmeFaucet) MarshalJSON ¶
func (v *AcmeFaucet) MarshalJSON() ([]byte, error)
func (*AcmeFaucet) Type ¶
func (*AcmeFaucet) Type() TransactionType
func (*AcmeFaucet) UnmarshalBinary ¶
func (v *AcmeFaucet) UnmarshalBinary(data []byte) error
func (*AcmeFaucet) UnmarshalBinaryFrom ¶
func (v *AcmeFaucet) UnmarshalBinaryFrom(rd io.Reader) error
func (*AcmeFaucet) UnmarshalJSON ¶
func (v *AcmeFaucet) UnmarshalJSON(data []byte) error
type AcmeOracle ¶
type AcmeOracle struct { Price uint64 `json:"price,omitempty" form:"price" query:"price" validate:"required"` // contains filtered or unexported fields }
func (*AcmeOracle) Equal ¶
func (v *AcmeOracle) Equal(u *AcmeOracle) bool
func (*AcmeOracle) IsValid ¶
func (v *AcmeOracle) IsValid() error
func (*AcmeOracle) MarshalBinary ¶
func (v *AcmeOracle) MarshalBinary() ([]byte, error)
func (*AcmeOracle) UnmarshalBinary ¶
func (v *AcmeOracle) UnmarshalBinary(data []byte) error
func (*AcmeOracle) UnmarshalBinaryFrom ¶
func (v *AcmeOracle) UnmarshalBinaryFrom(rd io.Reader) error
type AddCredits ¶
type AddCredits struct { Recipient *url.URL `json:"recipient,omitempty" form:"recipient" query:"recipient" validate:"required"` Amount uint64 `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*AddCredits) Equal ¶
func (v *AddCredits) Equal(u *AddCredits) bool
func (*AddCredits) GetType ¶
func (*AddCredits) GetType() TransactionType
func (*AddCredits) IsValid ¶
func (v *AddCredits) IsValid() error
func (*AddCredits) MarshalBinary ¶
func (v *AddCredits) MarshalBinary() ([]byte, error)
func (*AddCredits) MarshalJSON ¶
func (v *AddCredits) MarshalJSON() ([]byte, error)
func (*AddCredits) Type ¶
func (*AddCredits) Type() TransactionType
func (*AddCredits) UnmarshalBinary ¶
func (v *AddCredits) UnmarshalBinary(data []byte) error
func (*AddCredits) UnmarshalBinaryFrom ¶
func (v *AddCredits) UnmarshalBinaryFrom(rd io.Reader) error
func (*AddCredits) UnmarshalJSON ¶
func (v *AddCredits) UnmarshalJSON(data []byte) error
type Anchor ¶
type Anchor struct { AccountHeader // contains filtered or unexported fields }
func (*Anchor) GetType ¶
func (*Anchor) GetType() AccountType
func (*Anchor) MarshalBinary ¶
func (*Anchor) MarshalJSON ¶
func (*Anchor) Type ¶
func (*Anchor) Type() AccountType
func (*Anchor) UnmarshalBinary ¶
func (*Anchor) UnmarshalJSON ¶
type AnchorMetadata ¶
type AnchorMetadata struct { ChainMetadata Account *url.URL `json:"account,omitempty" form:"account" query:"account" validate:"required"` Index uint64 `json:"index,omitempty" form:"index" query:"index" validate:"required"` SourceIndex uint64 `json:"sourceIndex,omitempty" form:"sourceIndex" query:"sourceIndex" validate:"required"` SourceBlock uint64 `json:"sourceBlock,omitempty" form:"sourceBlock" query:"sourceBlock" validate:"required"` Entry []byte `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` // contains filtered or unexported fields }
func (*AnchorMetadata) Equal ¶
func (v *AnchorMetadata) Equal(u *AnchorMetadata) bool
func (*AnchorMetadata) IsValid ¶
func (v *AnchorMetadata) IsValid() error
func (*AnchorMetadata) MarshalBinary ¶
func (v *AnchorMetadata) MarshalBinary() ([]byte, error)
func (*AnchorMetadata) MarshalJSON ¶
func (v *AnchorMetadata) MarshalJSON() ([]byte, error)
func (*AnchorMetadata) UnmarshalBinary ¶
func (v *AnchorMetadata) UnmarshalBinary(data []byte) error
func (*AnchorMetadata) UnmarshalBinaryFrom ¶
func (v *AnchorMetadata) UnmarshalBinaryFrom(rd io.Reader) error
func (*AnchorMetadata) UnmarshalJSON ¶
func (v *AnchorMetadata) UnmarshalJSON(data []byte) error
type AnchoredRecord ¶
type AnchoredRecord struct { Record []byte `json:"record,omitempty" form:"record" query:"record" validate:"required"` Anchor [32]byte `json:"anchor,omitempty" form:"anchor" query:"anchor" validate:"required"` // contains filtered or unexported fields }
func (*AnchoredRecord) Equal ¶
func (v *AnchoredRecord) Equal(u *AnchoredRecord) bool
func (*AnchoredRecord) IsValid ¶
func (v *AnchoredRecord) IsValid() error
func (*AnchoredRecord) MarshalBinary ¶
func (v *AnchoredRecord) MarshalBinary() ([]byte, error)
func (*AnchoredRecord) MarshalJSON ¶
func (v *AnchoredRecord) MarshalJSON() ([]byte, error)
func (*AnchoredRecord) UnmarshalBinary ¶
func (v *AnchoredRecord) UnmarshalBinary(data []byte) error
func (*AnchoredRecord) UnmarshalBinaryFrom ¶
func (v *AnchoredRecord) UnmarshalBinaryFrom(rd io.Reader) error
func (*AnchoredRecord) UnmarshalJSON ¶
func (v *AnchoredRecord) UnmarshalJSON(data []byte) error
type BurnTokens ¶
type BurnTokens struct { Amount big.Int `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*BurnTokens) Equal ¶
func (v *BurnTokens) Equal(u *BurnTokens) bool
func (*BurnTokens) GetType ¶
func (*BurnTokens) GetType() TransactionType
func (*BurnTokens) IsValid ¶
func (v *BurnTokens) IsValid() error
func (*BurnTokens) MarshalBinary ¶
func (v *BurnTokens) MarshalBinary() ([]byte, error)
func (*BurnTokens) MarshalJSON ¶
func (v *BurnTokens) MarshalJSON() ([]byte, error)
func (*BurnTokens) Type ¶
func (*BurnTokens) Type() TransactionType
func (*BurnTokens) UnmarshalBinary ¶
func (v *BurnTokens) UnmarshalBinary(data []byte) error
func (*BurnTokens) UnmarshalBinaryFrom ¶
func (v *BurnTokens) UnmarshalBinaryFrom(rd io.Reader) error
func (*BurnTokens) UnmarshalJSON ¶
func (v *BurnTokens) UnmarshalJSON(data []byte) error
type ChainMetadata ¶
type ChainMetadata struct { Name string `json:"name,omitempty" form:"name" query:"name" validate:"required"` Type ChainType `json:"type,omitempty" form:"type" query:"type" validate:"required"` // contains filtered or unexported fields }
func (*ChainMetadata) Equal ¶
func (v *ChainMetadata) Equal(u *ChainMetadata) bool
func (*ChainMetadata) IsValid ¶
func (v *ChainMetadata) IsValid() error
func (*ChainMetadata) MarshalBinary ¶
func (v *ChainMetadata) MarshalBinary() ([]byte, error)
func (*ChainMetadata) UnmarshalBinary ¶
func (v *ChainMetadata) UnmarshalBinary(data []byte) error
func (*ChainMetadata) UnmarshalBinaryFrom ¶
func (v *ChainMetadata) UnmarshalBinaryFrom(rd io.Reader) error
type ChainParams ¶
type ChainParams struct { Data []byte `json:"data,omitempty" form:"data" query:"data" validate:"required"` IsUpdate bool `json:"isUpdate,omitempty" form:"isUpdate" query:"isUpdate" validate:"required"` // contains filtered or unexported fields }
func (*ChainParams) Equal ¶
func (v *ChainParams) Equal(u *ChainParams) bool
func (*ChainParams) IsValid ¶
func (v *ChainParams) IsValid() error
func (*ChainParams) MarshalBinary ¶
func (v *ChainParams) MarshalBinary() ([]byte, error)
func (*ChainParams) MarshalJSON ¶
func (v *ChainParams) MarshalJSON() ([]byte, error)
func (*ChainParams) UnmarshalBinary ¶
func (v *ChainParams) UnmarshalBinary(data []byte) error
func (*ChainParams) UnmarshalBinaryFrom ¶
func (v *ChainParams) UnmarshalBinaryFrom(rd io.Reader) error
func (*ChainParams) UnmarshalJSON ¶
func (v *ChainParams) UnmarshalJSON(data []byte) error
type ChainType ¶
type ChainType uint64
ChainType is the type of a chain belonging to an account.
const ChainTypeAnchor ChainType = 2
ChainTypeAnchor holds chain anchors.
const ChainTypeData ChainType = 3
ChainTypeData holds data entry hashes.
const ChainTypeIndex ChainType = 4
ChainTypeIndex indexes other chains.
const ChainTypeTransaction ChainType = 1
ChainTypeTransaction holds transaction hashes.
const ChainTypeUnknown ChainType = 0
ChainTypeUnknown is used when the chain type is not known.
func ChainTypeByName ¶
ChainTypeByName returns the named Chain Type.
func (ChainType) BinarySize ¶
BinarySize returns the number of bytes required to binary marshal the Chain Type.
func (ChainType) MarshalBinary ¶
MarshalBinary marshals the Chain Type to bytes as a unsigned varint.
func (ChainType) MarshalJSON ¶
MarshalJSON marshals the Chain Type to JSON as a string.
func (*ChainType) UnmarshalBinary ¶
UnmarshalBinary unmarshals the Chain Type from bytes as a unsigned varint.
func (*ChainType) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Chain Type from JSON as a string.
type CreateDataAccount ¶
type CreateDataAccount struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` KeyBookUrl *url.URL `json:"keyBookUrl,omitempty" form:"keyBookUrl" query:"keyBookUrl"` ManagerKeyBookUrl *url.URL `json:"managerKeyBookUrl,omitempty" form:"managerKeyBookUrl" query:"managerKeyBookUrl"` Scratch bool `json:"scratch,omitempty" form:"scratch" query:"scratch"` // contains filtered or unexported fields }
func (*CreateDataAccount) Equal ¶
func (v *CreateDataAccount) Equal(u *CreateDataAccount) bool
func (*CreateDataAccount) GetType ¶
func (*CreateDataAccount) GetType() TransactionType
func (*CreateDataAccount) IsValid ¶
func (v *CreateDataAccount) IsValid() error
func (*CreateDataAccount) MarshalBinary ¶
func (v *CreateDataAccount) MarshalBinary() ([]byte, error)
func (*CreateDataAccount) MarshalJSON ¶
func (v *CreateDataAccount) MarshalJSON() ([]byte, error)
func (*CreateDataAccount) Type ¶
func (*CreateDataAccount) Type() TransactionType
func (*CreateDataAccount) UnmarshalBinary ¶
func (v *CreateDataAccount) UnmarshalBinary(data []byte) error
func (*CreateDataAccount) UnmarshalBinaryFrom ¶
func (v *CreateDataAccount) UnmarshalBinaryFrom(rd io.Reader) error
func (*CreateDataAccount) UnmarshalJSON ¶
func (v *CreateDataAccount) UnmarshalJSON(data []byte) error
type CreateIdentity ¶
type CreateIdentity struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` KeyBookName string `json:"keyBookName,omitempty" form:"keyBookName" query:"keyBookName"` KeyPageName string `json:"keyPageName,omitempty" form:"keyPageName" query:"keyPageName"` Manager *url.URL `json:"manager,omitempty" form:"manager" query:"manager"` // contains filtered or unexported fields }
func (*CreateIdentity) Equal ¶
func (v *CreateIdentity) Equal(u *CreateIdentity) bool
func (*CreateIdentity) GetType ¶
func (*CreateIdentity) GetType() TransactionType
func (*CreateIdentity) IsValid ¶
func (v *CreateIdentity) IsValid() error
func (*CreateIdentity) MarshalBinary ¶
func (v *CreateIdentity) MarshalBinary() ([]byte, error)
func (*CreateIdentity) MarshalJSON ¶
func (v *CreateIdentity) MarshalJSON() ([]byte, error)
func (*CreateIdentity) Type ¶
func (*CreateIdentity) Type() TransactionType
func (*CreateIdentity) UnmarshalBinary ¶
func (v *CreateIdentity) UnmarshalBinary(data []byte) error
func (*CreateIdentity) UnmarshalBinaryFrom ¶
func (v *CreateIdentity) UnmarshalBinaryFrom(rd io.Reader) error
func (*CreateIdentity) UnmarshalJSON ¶
func (v *CreateIdentity) UnmarshalJSON(data []byte) error
type CreateKeyBook ¶
type CreateKeyBook struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` Pages []*url.URL `json:"pages,omitempty" form:"pages" query:"pages" validate:"required"` Manager *url.URL `json:"manager,omitempty" form:"manager" query:"manager"` // contains filtered or unexported fields }
func (*CreateKeyBook) Equal ¶
func (v *CreateKeyBook) Equal(u *CreateKeyBook) bool
func (*CreateKeyBook) GetType ¶
func (*CreateKeyBook) GetType() TransactionType
func (*CreateKeyBook) IsValid ¶
func (v *CreateKeyBook) IsValid() error
func (*CreateKeyBook) MarshalBinary ¶
func (v *CreateKeyBook) MarshalBinary() ([]byte, error)
func (*CreateKeyBook) MarshalJSON ¶
func (v *CreateKeyBook) MarshalJSON() ([]byte, error)
func (*CreateKeyBook) Type ¶
func (*CreateKeyBook) Type() TransactionType
func (*CreateKeyBook) UnmarshalBinary ¶
func (v *CreateKeyBook) UnmarshalBinary(data []byte) error
func (*CreateKeyBook) UnmarshalBinaryFrom ¶
func (v *CreateKeyBook) UnmarshalBinaryFrom(rd io.Reader) error
func (*CreateKeyBook) UnmarshalJSON ¶
func (v *CreateKeyBook) UnmarshalJSON(data []byte) error
type CreateKeyPage ¶
type CreateKeyPage struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` Keys []*KeySpecParams `json:"keys,omitempty" form:"keys" query:"keys" validate:"required"` Manager *url.URL `json:"manager,omitempty" form:"manager" query:"manager"` // contains filtered or unexported fields }
func (*CreateKeyPage) Equal ¶
func (v *CreateKeyPage) Equal(u *CreateKeyPage) bool
func (*CreateKeyPage) GetType ¶
func (*CreateKeyPage) GetType() TransactionType
func (*CreateKeyPage) IsValid ¶
func (v *CreateKeyPage) IsValid() error
func (*CreateKeyPage) MarshalBinary ¶
func (v *CreateKeyPage) MarshalBinary() ([]byte, error)
func (*CreateKeyPage) MarshalJSON ¶
func (v *CreateKeyPage) MarshalJSON() ([]byte, error)
func (*CreateKeyPage) Type ¶
func (*CreateKeyPage) Type() TransactionType
func (*CreateKeyPage) UnmarshalBinary ¶
func (v *CreateKeyPage) UnmarshalBinary(data []byte) error
func (*CreateKeyPage) UnmarshalBinaryFrom ¶
func (v *CreateKeyPage) UnmarshalBinaryFrom(rd io.Reader) error
func (*CreateKeyPage) UnmarshalJSON ¶
func (v *CreateKeyPage) UnmarshalJSON(data []byte) error
type CreateToken ¶
type CreateToken struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` KeyBookUrl *url.URL `json:"keyBookUrl,omitempty" form:"keyBookUrl" query:"keyBookUrl"` Symbol string `json:"symbol,omitempty" form:"symbol" query:"symbol" validate:"required"` Precision uint64 `json:"precision,omitempty" form:"precision" query:"precision" validate:"required"` Properties *url.URL `json:"properties,omitempty" form:"properties" query:"properties"` InitialSupply big.Int `json:"initialSupply,omitempty" form:"initialSupply" query:"initialSupply"` HasSupplyLimit bool `json:"hasSupplyLimit,omitempty" form:"hasSupplyLimit" query:"hasSupplyLimit"` Manager *url.URL `json:"manager,omitempty" form:"manager" query:"manager"` // contains filtered or unexported fields }
func (*CreateToken) Equal ¶
func (v *CreateToken) Equal(u *CreateToken) bool
func (*CreateToken) GetType ¶
func (*CreateToken) GetType() TransactionType
func (*CreateToken) IsValid ¶
func (v *CreateToken) IsValid() error
func (*CreateToken) MarshalBinary ¶
func (v *CreateToken) MarshalBinary() ([]byte, error)
func (*CreateToken) MarshalJSON ¶
func (v *CreateToken) MarshalJSON() ([]byte, error)
func (*CreateToken) Type ¶
func (*CreateToken) Type() TransactionType
func (*CreateToken) UnmarshalBinary ¶
func (v *CreateToken) UnmarshalBinary(data []byte) error
func (*CreateToken) UnmarshalBinaryFrom ¶
func (v *CreateToken) UnmarshalBinaryFrom(rd io.Reader) error
func (*CreateToken) UnmarshalJSON ¶
func (v *CreateToken) UnmarshalJSON(data []byte) error
type CreateTokenAccount ¶
type CreateTokenAccount struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` TokenUrl *url.URL `json:"tokenUrl,omitempty" form:"tokenUrl" query:"tokenUrl" validate:"required"` KeyBookUrl *url.URL `json:"keyBookUrl,omitempty" form:"keyBookUrl" query:"keyBookUrl"` Scratch bool `json:"scratch,omitempty" form:"scratch" query:"scratch"` Manager *url.URL `json:"manager,omitempty" form:"manager" query:"manager"` // contains filtered or unexported fields }
func (*CreateTokenAccount) Equal ¶
func (v *CreateTokenAccount) Equal(u *CreateTokenAccount) bool
func (*CreateTokenAccount) GetType ¶
func (*CreateTokenAccount) GetType() TransactionType
func (*CreateTokenAccount) IsValid ¶
func (v *CreateTokenAccount) IsValid() error
func (*CreateTokenAccount) MarshalBinary ¶
func (v *CreateTokenAccount) MarshalBinary() ([]byte, error)
func (*CreateTokenAccount) MarshalJSON ¶
func (v *CreateTokenAccount) MarshalJSON() ([]byte, error)
func (*CreateTokenAccount) Type ¶
func (*CreateTokenAccount) Type() TransactionType
func (*CreateTokenAccount) UnmarshalBinary ¶
func (v *CreateTokenAccount) UnmarshalBinary(data []byte) error
func (*CreateTokenAccount) UnmarshalBinaryFrom ¶
func (v *CreateTokenAccount) UnmarshalBinaryFrom(rd io.Reader) error
func (*CreateTokenAccount) UnmarshalJSON ¶
func (v *CreateTokenAccount) UnmarshalJSON(data []byte) error
type CreditHolder ¶
type DataAccount ¶
type DataAccount struct { AccountHeader Scratch bool `json:"scratch,omitempty" form:"scratch" query:"scratch"` // contains filtered or unexported fields }
func (*DataAccount) Equal ¶
func (v *DataAccount) Equal(u *DataAccount) bool
func (*DataAccount) GetType ¶
func (*DataAccount) GetType() AccountType
func (*DataAccount) IsValid ¶
func (v *DataAccount) IsValid() error
func (*DataAccount) MarshalBinary ¶
func (v *DataAccount) MarshalBinary() ([]byte, error)
func (*DataAccount) MarshalJSON ¶
func (v *DataAccount) MarshalJSON() ([]byte, error)
func (*DataAccount) Type ¶
func (*DataAccount) Type() AccountType
func (*DataAccount) UnmarshalBinary ¶
func (v *DataAccount) UnmarshalBinary(data []byte) error
func (*DataAccount) UnmarshalBinaryFrom ¶
func (v *DataAccount) UnmarshalBinaryFrom(rd io.Reader) error
func (*DataAccount) UnmarshalJSON ¶
func (v *DataAccount) UnmarshalJSON(data []byte) error
type DataEntry ¶
type DataEntry struct { ExtIds [][]byte `json:"extIds,omitempty" form:"extIds" query:"extIds"` Data []byte `json:"data,omitempty" form:"data" query:"data"` // contains filtered or unexported fields }
func (*DataEntry) CheckSize ¶
CheckSize is the marshaled size minus the implicit type header, returns error if there is too much or no data
func (*DataEntry) MarshalBinary ¶
func (*DataEntry) MarshalJSON ¶
func (*DataEntry) UnmarshalBinary ¶
func (*DataEntry) UnmarshalJSON ¶
type DirectoryIndexMetadata ¶
type DirectoryIndexMetadata struct { Count uint64 `json:"count,omitempty" form:"count" query:"count" validate:"required"` // contains filtered or unexported fields }
func (*DirectoryIndexMetadata) Equal ¶
func (v *DirectoryIndexMetadata) Equal(u *DirectoryIndexMetadata) bool
func (*DirectoryIndexMetadata) IsValid ¶
func (v *DirectoryIndexMetadata) IsValid() error
func (*DirectoryIndexMetadata) MarshalBinary ¶
func (v *DirectoryIndexMetadata) MarshalBinary() ([]byte, error)
func (*DirectoryIndexMetadata) UnmarshalBinary ¶
func (v *DirectoryIndexMetadata) UnmarshalBinary(data []byte) error
func (*DirectoryIndexMetadata) UnmarshalBinaryFrom ¶
func (v *DirectoryIndexMetadata) UnmarshalBinaryFrom(rd io.Reader) error
type DirectoryQueryResult ¶
type DirectoryQueryResult struct { Entries []string `json:"entries,omitempty" form:"entries" query:"entries"` ExpandedEntries []*Object `json:"expandedEntries,omitempty" form:"expandedEntries" query:"expandedEntries"` Total uint64 `json:"total" form:"total" query:"total" validate:"required"` // contains filtered or unexported fields }
func (*DirectoryQueryResult) Equal ¶
func (v *DirectoryQueryResult) Equal(u *DirectoryQueryResult) bool
func (*DirectoryQueryResult) IsValid ¶
func (v *DirectoryQueryResult) IsValid() error
func (*DirectoryQueryResult) MarshalBinary ¶
func (v *DirectoryQueryResult) MarshalBinary() ([]byte, error)
func (*DirectoryQueryResult) UnmarshalBinary ¶
func (v *DirectoryQueryResult) UnmarshalBinary(data []byte) error
func (*DirectoryQueryResult) UnmarshalBinaryFrom ¶
func (v *DirectoryQueryResult) UnmarshalBinaryFrom(rd io.Reader) error
type ED25519Signature ¶
type ED25519Signature struct { PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` Signature []byte `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` // contains filtered or unexported fields }
func (*ED25519Signature) Equal ¶
func (v *ED25519Signature) Equal(u *ED25519Signature) bool
func (*ED25519Signature) GetPublicKey ¶
func (e *ED25519Signature) GetPublicKey() []byte
GetPublicKey returns PublicKey.
func (*ED25519Signature) GetSignature ¶
func (e *ED25519Signature) GetSignature() []byte
GetSignature returns Signature.
func (*ED25519Signature) IsValid ¶
func (v *ED25519Signature) IsValid() error
func (*ED25519Signature) MarshalBinary ¶
func (v *ED25519Signature) MarshalBinary() ([]byte, error)
func (*ED25519Signature) MarshalJSON ¶
func (v *ED25519Signature) MarshalJSON() ([]byte, error)
func (*ED25519Signature) Sign ¶
func (e *ED25519Signature) Sign(nonce uint64, privateKey []byte, hash []byte) error
Sign Returns the signature for the given message. What happens is the message is hashed with sha256, then the hash is signed. The signature of the hash is returned.
func (*ED25519Signature) Type ¶
func (*ED25519Signature) Type() SignatureType
func (*ED25519Signature) UnmarshalBinary ¶
func (v *ED25519Signature) UnmarshalBinary(data []byte) error
func (*ED25519Signature) UnmarshalBinaryFrom ¶
func (v *ED25519Signature) UnmarshalBinaryFrom(rd io.Reader) error
func (*ED25519Signature) UnmarshalJSON ¶
func (v *ED25519Signature) UnmarshalJSON(data []byte) error
func (*ED25519Signature) Verify ¶
func (e *ED25519Signature) Verify(hash []byte) bool
type EmptyResult ¶
type EmptyResult struct {
// contains filtered or unexported fields
}
func (*EmptyResult) Equal ¶
func (v *EmptyResult) Equal(u *EmptyResult) bool
func (*EmptyResult) GetType ¶
func (*EmptyResult) GetType() TransactionType
func (*EmptyResult) IsValid ¶
func (v *EmptyResult) IsValid() error
func (*EmptyResult) MarshalBinary ¶
func (v *EmptyResult) MarshalBinary() ([]byte, error)
func (*EmptyResult) MarshalJSON ¶
func (v *EmptyResult) MarshalJSON() ([]byte, error)
func (*EmptyResult) Type ¶
func (*EmptyResult) Type() TransactionType
func (*EmptyResult) UnmarshalBinary ¶
func (v *EmptyResult) UnmarshalBinary(data []byte) error
func (*EmptyResult) UnmarshalBinaryFrom ¶
func (v *EmptyResult) UnmarshalBinaryFrom(rd io.Reader) error
func (*EmptyResult) UnmarshalJSON ¶
func (v *EmptyResult) UnmarshalJSON(data []byte) error
type Envelope ¶
type Envelope struct { Signatures []Signature `json:"signatures,omitempty" form:"signatures" query:"signatures" validate:"required"` TxHash []byte `json:"txHash,omitempty" form:"txHash" query:"txHash"` Transaction *Transaction `json:"transaction,omitempty" form:"transaction" query:"transaction"` // contains filtered or unexported fields }
func (*Envelope) EnvHash ¶
EnvHash calculates the hash of the envelope as H(H(sig₀) + H(sig₁) + ... + H(txn)).
EnvHash will panic if any of the signatures are not well formed or if Transaction is nil and TxHash is nil or not a valid hash.
func (*Envelope) GetTxHash ¶
GetTxHash returns the hash of the transaction.
GetTxHash will panic if Transaction is nil and TxHash is nil or not a valid hash.
func (*Envelope) MarshalBinary ¶
func (*Envelope) MarshalJSON ¶
func (*Envelope) UnmarshalBinary ¶
func (*Envelope) UnmarshalJSON ¶
func (*Envelope) VerifyTxHash ¶
VerifyTxHash verifies that TxHash matches the hash of the transaction.
type ErrorCode ¶
type ErrorCode int
const ErrorCodeAddTxnError ErrorCode = 23
ErrorCodeAddTxnError is returned when adding txn to state db fails.
const ErrorCodeBadNonce ErrorCode = 2
ErrorCodeBadNonce indicates the transaction nonce was rejected.
const ErrorCodeChainIdError ErrorCode = 10
ErrorCodeChainIdError is returned when query by in id fails.
const ErrorCodeCheckTxError ErrorCode = 12
ErrorCodeCheckTxError is returned when txn validation check fails.
const ErrorCodeDataEntryHashError ErrorCode = 25
ErrorCodeDataEntryHashError is returned when an entry hash query fails on a data chain.
const ErrorCodeDataUrlError ErrorCode = 24
ErrorCodeDataUrlError is returned when a url passed to a data query fails.
const ErrorCodeDeliverTxError ErrorCode = 13
ErrorCodeDeliverTxError is returned when txn deliver method fails.
const ErrorCodeDidPanic ErrorCode = 3
ErrorCodeDidPanic indicates the request failed due to a fatal error.
const ErrorCodeDirectoryURL ErrorCode = 9
ErrorCodeDirectoryURL is returned when invalid directory URL is passed in query.
const ErrorCodeEncodingError ErrorCode = 1
ErrorCodeEncodingError indicates the request could not be decoded.
const ErrorCodeInvalidQueryType ErrorCode = 19
ErrorCodeInvalidQueryType is returned when query type in request is not matched with the available ones.
const ErrorCodeInvalidTxnError ErrorCode = 22
ErrorCodeInvalidTxnError is returned when txn doesn't contains proper data.
const ErrorCodeInvalidTxnType ErrorCode = 20
ErrorCodeInvalidTxnType is returned when txn type passed is not available.
const ErrorCodeInvalidURL ErrorCode = 8
ErrorCodeInvalidURL is returned when invalid URL is passed in query.
const ErrorCodeMarshallingError ErrorCode = 17
ErrorCodeMarshallingError is returned when marshaling object or binary fails.
const ErrorCodeNotFound ErrorCode = 5
ErrorCodeNotFound indicates the request specified a record that does not exist.
const ErrorCodeOK ErrorCode = 0
ErrorCodeOK indicates the request succeeded.
const ErrorCodeRecordTxnError ErrorCode = 15
ErrorCodeRecordTxnError is returned when storing pending state updates fail.
const ErrorCodeRoutingChainId ErrorCode = 11
ErrorCodeRoutingChainId is returned when setting routing chain id fails.
const ErrorCodeSyntheticTxnError ErrorCode = 16
ErrorCodeSyntheticTxnError is returned when submit synthetic txn fails.
const ErrorCodeTxnHistory ErrorCode = 7
ErrorCodeTxnHistory is returned when txn history query fails.
const ErrorCodeTxnQueryError ErrorCode = 26
ErrorCodeTxnQueryError is returned when txn is not found.
const ErrorCodeTxnRange ErrorCode = 6
ErrorCodeTxnRange is returned when txn range query fails.
const ErrorCodeTxnStateError ErrorCode = 14
ErrorCodeTxnStateError is returned when adding txn to state fails.
const ErrorCodeUnMarshallingError ErrorCode = 18
ErrorCodeUnMarshallingError is returned when unmarshaling object or binary fails.
const ErrorCodeUnknownError ErrorCode = 4
ErrorCodeUnknownError indicates the request failed due to an unknown error.
const ErrorCodeValidateTxnError ErrorCode = 21
ErrorCodeValidateTxnError is returned when execution validation of txn fails.
func ErrorCodeByName ¶
ErrorCodeByName returns the named Error Code.
func (ErrorCode) BinarySize ¶
BinarySize returns the number of bytes required to binary marshal the Error Code.
func (ErrorCode) MarshalBinary ¶
MarshalBinary marshals the Error Code to bytes as a unsigned varint.
func (ErrorCode) MarshalJSON ¶
MarshalJSON marshals the Error Code to JSON as a string.
func (*ErrorCode) UnmarshalBinary ¶
UnmarshalBinary unmarshals the Error Code from bytes as a unsigned varint.
func (*ErrorCode) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Error Code from JSON as a string.
type Fee ¶
type Fee int
Fee is the unit cost of a transaction.
const ( // FeeFailedMaximum $0.01 FeeFailedMaximum Fee = 100 // FeeCreateIdentity $5.00 = 50000 credits @ 0.0001 / credit. FeeCreateIdentity Fee = 50000 // FeeCreateTokenAccount $0.25 FeeCreateTokenAccount Fee = 2500 // FeeSendTokens $0.03 FeeSendTokens Fee = 300 // FeeCreateDataAccount $.25 FeeCreateDataAccount Fee = 2500 // FeeWriteData $0.001 / 256 bytes FeeWriteData Fee = 10 // FeeWriteDataTo $0.001 / 256 bytes FeeWriteDataTo Fee = 10 // FeeCreateToken $50.00 FeeCreateToken Fee = 500000 // FeeIssueTokens equiv. to token send @ $0.03 FeeIssueTokens Fee = 300 // FeeAcmeFaucet free FeeAcmeFaucet Fee = 0 // FeeBurnTokens equiv. to token send FeeBurnTokens Fee = 300 // FeeCreateKeyPage $1.00 FeeCreateKeyPage Fee = 10000 // FeeCreateKeyBook $1.00 FeeCreateKeyBook Fee = 10000 // FeeAddCredits conversion of ACME tokens to credits a "free" transaction FeeAddCredits Fee = 0 // FeeUpdateKeyPage $0.03 FeeUpdateKeyPage Fee = 300 // FeeCreateScratchChain $0.25 FeeCreateScratchChain Fee = 2500 //FeeWriteScratchData $0.0001 / 256 bytes FeeWriteScratchData Fee = 1 // FeeSignPending $0.001 FeeSignPending Fee = 10 )
Fee Schedule
func ComputeFee ¶
type HashAlgorithm ¶
type HashAlgorithm uint8
const ( Unhashed HashAlgorithm = iota UnknownHashAlgorithm SHA256 SHA256D )
func HashAlgorithmByName ¶
func HashAlgorithmByName(s string) HashAlgorithm
func (HashAlgorithm) BinarySize ¶
func (ha HashAlgorithm) BinarySize() int
func (HashAlgorithm) MarshalBinary ¶
func (ha HashAlgorithm) MarshalBinary() ([]byte, error)
func (HashAlgorithm) MarshalJSON ¶
func (ha HashAlgorithm) MarshalJSON() ([]byte, error)
func (HashAlgorithm) MustApply ¶
func (ha HashAlgorithm) MustApply(b []byte) []byte
func (HashAlgorithm) String ¶
func (ha HashAlgorithm) String() string
func (*HashAlgorithm) UnmarshalBinary ¶
func (ha *HashAlgorithm) UnmarshalBinary(b []byte) error
func (*HashAlgorithm) UnmarshalJSON ¶
func (ha *HashAlgorithm) UnmarshalJSON(b []byte) error
type IndexEntry ¶ added in v0.5.1
type IndexEntry struct { // Source is the index of the chain from which an anchor was taken. Source uint64 `json:"source,omitempty" form:"source" query:"source" validate:"required"` // Anchor is the index of the chain into which the anchor was added. Omit when indexing the root anchor chain. Anchor uint64 `json:"anchor,omitempty" form:"anchor" query:"anchor" validate:"required"` // BlockIndex is the index of the block. Only include when indexing the root anchor chain. BlockIndex uint64 `json:"blockIndex,omitempty" form:"blockIndex" query:"blockIndex" validate:"required"` // BlockTime is the start time of the block. Only include when indexing the root anchor chain. BlockTime *time.Time `json:"blockTime,omitempty" form:"blockTime" query:"blockTime" validate:"required"` // contains filtered or unexported fields }
IndexEntry represents an entry in an index chain.
func (*IndexEntry) Equal ¶ added in v0.5.1
func (v *IndexEntry) Equal(u *IndexEntry) bool
func (*IndexEntry) IsValid ¶ added in v0.5.1
func (v *IndexEntry) IsValid() error
func (*IndexEntry) MarshalBinary ¶ added in v0.5.1
func (v *IndexEntry) MarshalBinary() ([]byte, error)
func (*IndexEntry) UnmarshalBinary ¶ added in v0.5.1
func (v *IndexEntry) UnmarshalBinary(data []byte) error
func (*IndexEntry) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *IndexEntry) UnmarshalBinaryFrom(rd io.Reader) error
type InternalGenesis ¶
type InternalGenesis struct {
// contains filtered or unexported fields
}
func (*InternalGenesis) Equal ¶
func (v *InternalGenesis) Equal(u *InternalGenesis) bool
func (*InternalGenesis) GetType ¶
func (*InternalGenesis) GetType() TransactionType
func (*InternalGenesis) IsValid ¶
func (v *InternalGenesis) IsValid() error
func (*InternalGenesis) MarshalBinary ¶
func (v *InternalGenesis) MarshalBinary() ([]byte, error)
func (*InternalGenesis) MarshalJSON ¶
func (v *InternalGenesis) MarshalJSON() ([]byte, error)
func (*InternalGenesis) Type ¶
func (*InternalGenesis) Type() TransactionType
func (*InternalGenesis) UnmarshalBinary ¶
func (v *InternalGenesis) UnmarshalBinary(data []byte) error
func (*InternalGenesis) UnmarshalBinaryFrom ¶
func (v *InternalGenesis) UnmarshalBinaryFrom(rd io.Reader) error
func (*InternalGenesis) UnmarshalJSON ¶
func (v *InternalGenesis) UnmarshalJSON(data []byte) error
type InternalLedger ¶
type InternalLedger struct { AccountHeader Index int64 `json:"index,omitempty" form:"index" query:"index" validate:"required"` Timestamp time.Time `json:"timestamp,omitempty" form:"timestamp" query:"timestamp" validate:"required"` Synthetic SyntheticLedger `json:"synthetic,omitempty" form:"synthetic" query:"synthetic" validate:"required"` PendingOracle uint64 `json:"pendingOracle,omitempty" form:"pendingOracle" query:"pendingOracle" validate:"required"` ActiveOracle uint64 `json:"activeOracle,omitempty" form:"activeOracle" query:"activeOracle" validate:"required"` Updates []AnchorMetadata `json:"updates,omitempty" form:"updates" query:"updates" validate:"required"` // contains filtered or unexported fields }
func (*InternalLedger) Equal ¶
func (v *InternalLedger) Equal(u *InternalLedger) bool
func (*InternalLedger) GetType ¶
func (*InternalLedger) GetType() AccountType
func (*InternalLedger) IsValid ¶
func (v *InternalLedger) IsValid() error
func (*InternalLedger) MarshalBinary ¶
func (v *InternalLedger) MarshalBinary() ([]byte, error)
func (*InternalLedger) MarshalJSON ¶
func (v *InternalLedger) MarshalJSON() ([]byte, error)
func (*InternalLedger) Type ¶
func (*InternalLedger) Type() AccountType
func (*InternalLedger) UnmarshalBinary ¶
func (v *InternalLedger) UnmarshalBinary(data []byte) error
func (*InternalLedger) UnmarshalBinaryFrom ¶
func (v *InternalLedger) UnmarshalBinaryFrom(rd io.Reader) error
func (*InternalLedger) UnmarshalJSON ¶
func (v *InternalLedger) UnmarshalJSON(data []byte) error
type InternalSendTransactions ¶
type InternalSendTransactions struct { Transactions []SendTransaction `json:"transactions,omitempty" form:"transactions" query:"transactions" validate:"required"` // contains filtered or unexported fields }
func (*InternalSendTransactions) GetType ¶
func (*InternalSendTransactions) GetType() TransactionType
func (*InternalSendTransactions) IsValid ¶
func (v *InternalSendTransactions) IsValid() error
func (*InternalSendTransactions) MarshalBinary ¶
func (v *InternalSendTransactions) MarshalBinary() ([]byte, error)
func (*InternalSendTransactions) MarshalJSON ¶
func (v *InternalSendTransactions) MarshalJSON() ([]byte, error)
func (*InternalSendTransactions) Type ¶
func (*InternalSendTransactions) Type() TransactionType
func (*InternalSendTransactions) UnmarshalBinary ¶
func (v *InternalSendTransactions) UnmarshalBinary(data []byte) error
func (*InternalSendTransactions) UnmarshalBinaryFrom ¶
func (v *InternalSendTransactions) UnmarshalBinaryFrom(rd io.Reader) error
func (*InternalSendTransactions) UnmarshalJSON ¶
func (v *InternalSendTransactions) UnmarshalJSON(data []byte) error
type InternalTransactionsSent ¶
type InternalTransactionsSent struct { Transactions [][32]byte `json:"transactions,omitempty" form:"transactions" query:"transactions" validate:"required"` // contains filtered or unexported fields }
func (*InternalTransactionsSent) Equal ¶
func (v *InternalTransactionsSent) Equal(u *InternalTransactionsSent) bool
func (*InternalTransactionsSent) GetType ¶
func (*InternalTransactionsSent) GetType() TransactionType
func (*InternalTransactionsSent) IsValid ¶
func (v *InternalTransactionsSent) IsValid() error
func (*InternalTransactionsSent) MarshalBinary ¶
func (v *InternalTransactionsSent) MarshalBinary() ([]byte, error)
func (*InternalTransactionsSent) MarshalJSON ¶
func (v *InternalTransactionsSent) MarshalJSON() ([]byte, error)
func (*InternalTransactionsSent) Type ¶
func (*InternalTransactionsSent) Type() TransactionType
func (*InternalTransactionsSent) UnmarshalBinary ¶
func (v *InternalTransactionsSent) UnmarshalBinary(data []byte) error
func (*InternalTransactionsSent) UnmarshalBinaryFrom ¶
func (v *InternalTransactionsSent) UnmarshalBinaryFrom(rd io.Reader) error
func (*InternalTransactionsSent) UnmarshalJSON ¶
func (v *InternalTransactionsSent) UnmarshalJSON(data []byte) error
type InternalTransactionsSigned ¶
type InternalTransactionsSigned struct { Transactions []TransactionSignature `json:"transactions,omitempty" form:"transactions" query:"transactions" validate:"required"` // contains filtered or unexported fields }
func (*InternalTransactionsSigned) Equal ¶
func (v *InternalTransactionsSigned) Equal(u *InternalTransactionsSigned) bool
func (*InternalTransactionsSigned) GetType ¶
func (*InternalTransactionsSigned) GetType() TransactionType
func (*InternalTransactionsSigned) IsValid ¶
func (v *InternalTransactionsSigned) IsValid() error
func (*InternalTransactionsSigned) MarshalBinary ¶
func (v *InternalTransactionsSigned) MarshalBinary() ([]byte, error)
func (*InternalTransactionsSigned) MarshalJSON ¶
func (v *InternalTransactionsSigned) MarshalJSON() ([]byte, error)
func (*InternalTransactionsSigned) Type ¶
func (*InternalTransactionsSigned) Type() TransactionType
func (*InternalTransactionsSigned) UnmarshalBinary ¶
func (v *InternalTransactionsSigned) UnmarshalBinary(data []byte) error
func (*InternalTransactionsSigned) UnmarshalBinaryFrom ¶
func (v *InternalTransactionsSigned) UnmarshalBinaryFrom(rd io.Reader) error
func (*InternalTransactionsSigned) UnmarshalJSON ¶
func (v *InternalTransactionsSigned) UnmarshalJSON(data []byte) error
type IssueTokens ¶
type IssueTokens struct { Recipient *url.URL `json:"recipient,omitempty" form:"recipient" query:"recipient" validate:"required"` Amount big.Int `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*IssueTokens) Equal ¶
func (v *IssueTokens) Equal(u *IssueTokens) bool
func (*IssueTokens) GetType ¶
func (*IssueTokens) GetType() TransactionType
func (*IssueTokens) IsValid ¶
func (v *IssueTokens) IsValid() error
func (*IssueTokens) MarshalBinary ¶
func (v *IssueTokens) MarshalBinary() ([]byte, error)
func (*IssueTokens) MarshalJSON ¶
func (v *IssueTokens) MarshalJSON() ([]byte, error)
func (*IssueTokens) Type ¶
func (*IssueTokens) Type() TransactionType
func (*IssueTokens) UnmarshalBinary ¶
func (v *IssueTokens) UnmarshalBinary(data []byte) error
func (*IssueTokens) UnmarshalBinaryFrom ¶
func (v *IssueTokens) UnmarshalBinaryFrom(rd io.Reader) error
func (*IssueTokens) UnmarshalJSON ¶
func (v *IssueTokens) UnmarshalJSON(data []byte) error
type KeyBook ¶
type KeyBook struct { AccountHeader Pages []*url.URL `json:"pages,omitempty" form:"pages" query:"pages" validate:"required"` // contains filtered or unexported fields }
func (*KeyBook) GetType ¶
func (*KeyBook) GetType() AccountType
func (*KeyBook) MarshalBinary ¶
func (*KeyBook) MarshalJSON ¶
func (*KeyBook) Type ¶
func (*KeyBook) Type() AccountType
func (*KeyBook) UnmarshalBinary ¶
func (*KeyBook) UnmarshalJSON ¶
type KeyPage ¶
type KeyPage struct { AccountHeader CreditBalance big.Int `json:"creditBalance,omitempty" form:"creditBalance" query:"creditBalance" validate:"required"` Threshold uint64 `json:"threshold,omitempty" form:"threshold" query:"threshold" validate:"required"` Keys []*KeySpec `json:"keys,omitempty" form:"keys" query:"keys" validate:"required"` // contains filtered or unexported fields }
func (*KeyPage) CreditCredits ¶
func (*KeyPage) DebitCredits ¶
func (*KeyPage) GetMofN ¶
GetMofN return the signature requirements of the Key Page. Each Key Page requires m of n signatures, where m <= n, and n is the number of keys on the key page. m is the Threshold number of signatures required to validate a transaction
func (*KeyPage) GetType ¶
func (*KeyPage) GetType() AccountType
func (*KeyPage) MarshalBinary ¶
func (*KeyPage) MarshalJSON ¶
func (*KeyPage) SetThreshold ¶
SetThreshold set the signature threshold to M. Returns an error if m > n
func (*KeyPage) Type ¶
func (*KeyPage) Type() AccountType
func (*KeyPage) UnmarshalBinary ¶
func (*KeyPage) UnmarshalJSON ¶
type KeyPageOperation ¶
type KeyPageOperation uint8
KeyPageOperation is the operation type of an UpdateKeyPage transaction.
const KeyPageOperationAdd KeyPageOperation = 3
KeyPageOperationAdd adds a key to the page.
const KeyPageOperationRemove KeyPageOperation = 2
KeyPageOperationRemove removes a key from the page.
const KeyPageOperationSetThreshold KeyPageOperation = 4
KeyPageOperationSetThreshold sets the signing threshold (the M of "M of N" signatures required).
const KeyPageOperationUnknown KeyPageOperation = 0
KeyPageOperationUnknown is used when the key page operation is not known.
const KeyPageOperationUpdate KeyPageOperation = 1
KeyPageOperationUpdate replaces a key in the page with a new key.
func KeyPageOperationByName ¶
func KeyPageOperationByName(name string) (KeyPageOperation, bool)
KeyPageOperationByName returns the named Key PageOpe ration.
func (KeyPageOperation) BinarySize ¶
func (v KeyPageOperation) BinarySize() int
BinarySize returns the number of bytes required to binary marshal the Key PageOpe ration.
func (KeyPageOperation) ID ¶
func (v KeyPageOperation) ID() uint64
ID returns the ID of the Key PageOpe ration
func (KeyPageOperation) MarshalBinary ¶
func (v KeyPageOperation) MarshalBinary() ([]byte, error)
MarshalBinary marshals the Key PageOpe ration to bytes as a unsigned varint.
func (KeyPageOperation) MarshalJSON ¶
func (v KeyPageOperation) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Key PageOpe ration to JSON as a string.
func (*KeyPageOperation) Set ¶
func (v *KeyPageOperation) Set(id uint64) bool
Set sets the value. Set returns false if the value is invalid.
func (KeyPageOperation) String ¶
func (v KeyPageOperation) String() string
String returns the name of the Key PageOpe ration
func (*KeyPageOperation) UnmarshalBinary ¶
func (v *KeyPageOperation) UnmarshalBinary(data []byte) error
UnmarshalBinary unmarshals the Key PageOpe ration from bytes as a unsigned varint.
func (*KeyPageOperation) UnmarshalJSON ¶
func (v *KeyPageOperation) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Key PageOpe ration from JSON as a string.
type KeySpec ¶
type KeySpec struct { PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` Nonce uint64 `json:"nonce,omitempty" form:"nonce" query:"nonce" validate:"required"` Owner *url.URL `json:"owner,omitempty" form:"owner" query:"owner" validate:"required"` // contains filtered or unexported fields }
func (*KeySpec) MarshalBinary ¶
func (*KeySpec) MarshalJSON ¶
func (*KeySpec) UnmarshalBinary ¶
func (*KeySpec) UnmarshalJSON ¶
type KeySpecParams ¶
type KeySpecParams struct { PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` // contains filtered or unexported fields }
func (*KeySpecParams) Equal ¶
func (v *KeySpecParams) Equal(u *KeySpecParams) bool
func (*KeySpecParams) IsValid ¶
func (v *KeySpecParams) IsValid() error
func (*KeySpecParams) MarshalBinary ¶
func (v *KeySpecParams) MarshalBinary() ([]byte, error)
func (*KeySpecParams) MarshalJSON ¶
func (v *KeySpecParams) MarshalJSON() ([]byte, error)
func (*KeySpecParams) UnmarshalBinary ¶
func (v *KeySpecParams) UnmarshalBinary(data []byte) error
func (*KeySpecParams) UnmarshalBinaryFrom ¶
func (v *KeySpecParams) UnmarshalBinaryFrom(rd io.Reader) error
func (*KeySpecParams) UnmarshalJSON ¶
func (v *KeySpecParams) UnmarshalJSON(data []byte) error
type LegacyED25519Signature ¶
type LegacyED25519Signature struct { Nonce uint64 `json:"nonce,omitempty" form:"nonce" query:"nonce" validate:"required"` PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` Signature []byte `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` // contains filtered or unexported fields }
func (*LegacyED25519Signature) Equal ¶
func (v *LegacyED25519Signature) Equal(u *LegacyED25519Signature) bool
func (*LegacyED25519Signature) GetPublicKey ¶
func (e *LegacyED25519Signature) GetPublicKey() []byte
GetPublicKey returns PublicKey.
func (*LegacyED25519Signature) GetSignature ¶
func (e *LegacyED25519Signature) GetSignature() []byte
GetSignature returns Signature.
func (*LegacyED25519Signature) IsValid ¶
func (v *LegacyED25519Signature) IsValid() error
func (*LegacyED25519Signature) MarshalBinary ¶
func (v *LegacyED25519Signature) MarshalBinary() ([]byte, error)
func (*LegacyED25519Signature) MarshalJSON ¶
func (v *LegacyED25519Signature) MarshalJSON() ([]byte, error)
func (*LegacyED25519Signature) Sign ¶
func (e *LegacyED25519Signature) Sign(nonce uint64, privateKey []byte, hash []byte) error
Sign Returns the signature for the given message. What happens is the message is hashed with sha256, then the hash is signed. The signature of the hash is returned.
func (*LegacyED25519Signature) Type ¶
func (*LegacyED25519Signature) Type() SignatureType
func (*LegacyED25519Signature) UnmarshalBinary ¶
func (v *LegacyED25519Signature) UnmarshalBinary(data []byte) error
func (*LegacyED25519Signature) UnmarshalBinaryFrom ¶
func (v *LegacyED25519Signature) UnmarshalBinaryFrom(rd io.Reader) error
func (*LegacyED25519Signature) UnmarshalJSON ¶
func (v *LegacyED25519Signature) UnmarshalJSON(data []byte) error
func (*LegacyED25519Signature) Verify ¶
func (e *LegacyED25519Signature) Verify(hash []byte) bool
Verify Returns true if the signature matches the message. Involves a hash of the message.
type LiteDataAccount ¶
type LiteDataAccount struct { AccountHeader Tail []byte `json:"tail,omitempty" form:"tail" query:"tail" validate:"required"` // contains filtered or unexported fields }
func NewLiteDataAccount ¶
func NewLiteDataAccount() *LiteDataAccount
Deprated: use new(LiteDataAccount)
func (*LiteDataAccount) AccountId ¶
func (c *LiteDataAccount) AccountId() ([]byte, error)
func (*LiteDataAccount) Equal ¶
func (v *LiteDataAccount) Equal(u *LiteDataAccount) bool
func (*LiteDataAccount) GetType ¶
func (*LiteDataAccount) GetType() AccountType
func (*LiteDataAccount) IsValid ¶
func (v *LiteDataAccount) IsValid() error
func (*LiteDataAccount) MarshalBinary ¶
func (v *LiteDataAccount) MarshalBinary() ([]byte, error)
func (*LiteDataAccount) MarshalJSON ¶
func (v *LiteDataAccount) MarshalJSON() ([]byte, error)
func (*LiteDataAccount) Type ¶
func (*LiteDataAccount) Type() AccountType
func (*LiteDataAccount) UnmarshalBinary ¶
func (v *LiteDataAccount) UnmarshalBinary(data []byte) error
func (*LiteDataAccount) UnmarshalBinaryFrom ¶
func (v *LiteDataAccount) UnmarshalBinaryFrom(rd io.Reader) error
func (*LiteDataAccount) UnmarshalJSON ¶
func (v *LiteDataAccount) UnmarshalJSON(data []byte) error
type LiteDataEntry ¶
func NewLiteDataEntry ¶
func NewLiteDataEntry() *LiteDataEntry
func (*LiteDataEntry) Hash ¶
func (e *LiteDataEntry) Hash() ([]byte, error)
func (*LiteDataEntry) MarshalBinary ¶
func (e *LiteDataEntry) MarshalBinary() ([]byte, error)
MarshalBinary marshal the LiteDataEntry in accordance to https://github.com/FactomProject/FactomDocs/blob/master/factomDataStructureDetails.md#entry
func (*LiteDataEntry) UnmarshalBinary ¶
func (e *LiteDataEntry) UnmarshalBinary(data []byte) error
UnmarshalBinary unmarshal the LiteDataEntry in accordance to https://github.com/FactomProject/FactomDocs/blob/master/factomDataStructureDetails.md#entry
type LiteIdentity ¶
type LiteIdentity struct { AccountHeader // contains filtered or unexported fields }
func (*LiteIdentity) Equal ¶
func (v *LiteIdentity) Equal(u *LiteIdentity) bool
func (*LiteIdentity) GetType ¶
func (*LiteIdentity) GetType() AccountType
func (*LiteIdentity) IsValid ¶
func (v *LiteIdentity) IsValid() error
func (*LiteIdentity) MarshalBinary ¶
func (v *LiteIdentity) MarshalBinary() ([]byte, error)
func (*LiteIdentity) MarshalJSON ¶
func (v *LiteIdentity) MarshalJSON() ([]byte, error)
func (*LiteIdentity) Type ¶
func (*LiteIdentity) Type() AccountType
func (*LiteIdentity) UnmarshalBinary ¶
func (v *LiteIdentity) UnmarshalBinary(data []byte) error
func (*LiteIdentity) UnmarshalBinaryFrom ¶
func (v *LiteIdentity) UnmarshalBinaryFrom(rd io.Reader) error
func (*LiteIdentity) UnmarshalJSON ¶
func (v *LiteIdentity) UnmarshalJSON(data []byte) error
type LiteTokenAccount ¶
type LiteTokenAccount struct { AccountHeader TokenUrl *url.URL `json:"tokenUrl,omitempty" form:"tokenUrl" query:"tokenUrl" validate:"required"` Balance big.Int `json:"balance,omitempty" form:"balance" query:"balance" validate:"required"` Nonce uint64 `json:"nonce,omitempty" form:"nonce" query:"nonce" validate:"required"` CreditBalance big.Int `json:"creditBalance,omitempty" form:"creditBalance" query:"creditBalance" validate:"required"` // contains filtered or unexported fields }
func NewLiteTokenAccount ¶
func NewLiteTokenAccount() *LiteTokenAccount
Deprated: use new(LiteTokenAccount)
func (*LiteTokenAccount) CanDebitTokens ¶
func (acct *LiteTokenAccount) CanDebitTokens(amount *big.Int) bool
func (*LiteTokenAccount) CreditCredits ¶
func (acct *LiteTokenAccount) CreditCredits(amount uint64)
func (*LiteTokenAccount) CreditTokens ¶
func (acct *LiteTokenAccount) CreditTokens(amount *big.Int) bool
func (*LiteTokenAccount) DebitCredits ¶
func (acct *LiteTokenAccount) DebitCredits(amount uint64) bool
func (*LiteTokenAccount) DebitTokens ¶
func (acct *LiteTokenAccount) DebitTokens(amount *big.Int) bool
func (*LiteTokenAccount) Equal ¶
func (v *LiteTokenAccount) Equal(u *LiteTokenAccount) bool
func (*LiteTokenAccount) GetType ¶
func (*LiteTokenAccount) GetType() AccountType
func (*LiteTokenAccount) IsValid ¶
func (v *LiteTokenAccount) IsValid() error
func (*LiteTokenAccount) MarshalBinary ¶
func (v *LiteTokenAccount) MarshalBinary() ([]byte, error)
func (*LiteTokenAccount) MarshalJSON ¶
func (v *LiteTokenAccount) MarshalJSON() ([]byte, error)
func (*LiteTokenAccount) ParseTokenUrl
deprecated
func (acct *LiteTokenAccount) ParseTokenUrl() (*url.URL, error)
Deprecated: use TokenUrl field
func (*LiteTokenAccount) SetNonce ¶
func (acct *LiteTokenAccount) SetNonce(key []byte, nonce uint64) error
func (*LiteTokenAccount) TokenBalance ¶
func (acct *LiteTokenAccount) TokenBalance() *big.Int
func (*LiteTokenAccount) Type ¶
func (*LiteTokenAccount) Type() AccountType
func (*LiteTokenAccount) UnmarshalBinary ¶
func (v *LiteTokenAccount) UnmarshalBinary(data []byte) error
func (*LiteTokenAccount) UnmarshalBinaryFrom ¶
func (v *LiteTokenAccount) UnmarshalBinaryFrom(rd io.Reader) error
func (*LiteTokenAccount) UnmarshalJSON ¶
func (v *LiteTokenAccount) UnmarshalJSON(data []byte) error
type MetricsRequest ¶
type MetricsRequest struct { Metric string `json:"metric,omitempty" form:"metric" query:"metric" validate:"required"` Duration time.Duration `json:"duration,omitempty" form:"duration" query:"duration" validate:"required"` // contains filtered or unexported fields }
func (*MetricsRequest) Equal ¶
func (v *MetricsRequest) Equal(u *MetricsRequest) bool
func (*MetricsRequest) IsValid ¶
func (v *MetricsRequest) IsValid() error
func (*MetricsRequest) MarshalBinary ¶
func (v *MetricsRequest) MarshalBinary() ([]byte, error)
func (*MetricsRequest) MarshalJSON ¶
func (v *MetricsRequest) MarshalJSON() ([]byte, error)
func (*MetricsRequest) UnmarshalBinary ¶
func (v *MetricsRequest) UnmarshalBinary(data []byte) error
func (*MetricsRequest) UnmarshalBinaryFrom ¶
func (v *MetricsRequest) UnmarshalBinaryFrom(rd io.Reader) error
func (*MetricsRequest) UnmarshalJSON ¶
func (v *MetricsRequest) UnmarshalJSON(data []byte) error
type MetricsResponse ¶
type MetricsResponse struct {
Value interface{} `json:"value,omitempty" form:"value" query:"value" validate:"required"`
}
func (*MetricsResponse) MarshalJSON ¶
func (v *MetricsResponse) MarshalJSON() ([]byte, error)
func (*MetricsResponse) UnmarshalJSON ¶
func (v *MetricsResponse) UnmarshalJSON(data []byte) error
type Object ¶
type Object struct { Entry []byte `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` Height uint64 `json:"height,omitempty" form:"height" query:"height" validate:"required"` Roots [][]byte `json:"roots,omitempty" form:"roots" query:"roots" validate:"required"` // contains filtered or unexported fields }
func (*Object) MarshalBinary ¶
func (*Object) MarshalJSON ¶
func (*Object) UnmarshalBinary ¶
func (*Object) UnmarshalJSON ¶
type ObjectMetadata ¶
type ObjectMetadata struct { Type ObjectType `json:"type,omitempty" form:"type" query:"type" validate:"required"` Chains []ChainMetadata `json:"chains,omitempty" form:"chains" query:"chains" validate:"required"` // contains filtered or unexported fields }
func (*ObjectMetadata) Equal ¶
func (v *ObjectMetadata) Equal(u *ObjectMetadata) bool
func (*ObjectMetadata) IsValid ¶
func (v *ObjectMetadata) IsValid() error
func (*ObjectMetadata) MarshalBinary ¶
func (v *ObjectMetadata) MarshalBinary() ([]byte, error)
func (*ObjectMetadata) UnmarshalBinary ¶
func (v *ObjectMetadata) UnmarshalBinary(data []byte) error
func (*ObjectMetadata) UnmarshalBinaryFrom ¶
func (v *ObjectMetadata) UnmarshalBinaryFrom(rd io.Reader) error
type ObjectType ¶
type ObjectType uint64
ObjectType is the type of an object in the database.
const ObjectTypeAccount ObjectType = 1
ObjectTypeAccount represents an account object.
const ObjectTypeTransaction ObjectType = 2
ObjectTypeTransaction represents a transaction object.
const ObjectTypeUnknown ObjectType = 0
ObjectTypeUnknown is used when the object type is not known.
func ObjectTypeByName ¶
func ObjectTypeByName(name string) (ObjectType, bool)
ObjectTypeByName returns the named Object Type.
func (ObjectType) BinarySize ¶
func (v ObjectType) BinarySize() int
BinarySize returns the number of bytes required to binary marshal the Object Type.
func (ObjectType) MarshalBinary ¶
func (v ObjectType) MarshalBinary() ([]byte, error)
MarshalBinary marshals the Object Type to bytes as a unsigned varint.
func (ObjectType) MarshalJSON ¶
func (v ObjectType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Object Type to JSON as a string.
func (*ObjectType) Set ¶
func (v *ObjectType) Set(id uint64) bool
Set sets the value. Set returns false if the value is invalid.
func (ObjectType) String ¶
func (v ObjectType) String() string
String returns the name of the Object Type
func (*ObjectType) UnmarshalBinary ¶
func (v *ObjectType) UnmarshalBinary(data []byte) error
UnmarshalBinary unmarshals the Object Type from bytes as a unsigned varint.
func (*ObjectType) UnmarshalJSON ¶
func (v *ObjectType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Object Type from JSON as a string.
type PendingTransactionState ¶
type PendingTransactionState struct { AccountHeader Signature []Signature `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` TransactionState *TxState `json:"transactionState,omitempty" form:"transactionState" query:"transactionState" validate:"required"` Status json.RawMessage `json:"status,omitempty" form:"status" query:"status" validate:"required"` // contains filtered or unexported fields }
func (*PendingTransactionState) Equal ¶
func (v *PendingTransactionState) Equal(u *PendingTransactionState) bool
func (*PendingTransactionState) GetType ¶
func (*PendingTransactionState) GetType() AccountType
func (*PendingTransactionState) IsValid ¶
func (v *PendingTransactionState) IsValid() error
func (*PendingTransactionState) MarshalBinary ¶
func (v *PendingTransactionState) MarshalBinary() ([]byte, error)
func (*PendingTransactionState) MarshalJSON ¶
func (v *PendingTransactionState) MarshalJSON() ([]byte, error)
func (*PendingTransactionState) Restore ¶
func (tx *PendingTransactionState) Restore() *Envelope
func (*PendingTransactionState) Type ¶
func (*PendingTransactionState) Type() AccountType
func (*PendingTransactionState) UnmarshalBinary ¶
func (v *PendingTransactionState) UnmarshalBinary(data []byte) error
func (*PendingTransactionState) UnmarshalBinaryFrom ¶
func (v *PendingTransactionState) UnmarshalBinaryFrom(rd io.Reader) error
func (*PendingTransactionState) UnmarshalJSON ¶
func (v *PendingTransactionState) UnmarshalJSON(data []byte) error
type Receipt ¶
type Receipt struct { Start []byte `json:"start,omitempty" form:"start" query:"start" validate:"required"` Entries []ReceiptEntry `json:"entries,omitempty" form:"entries" query:"entries" validate:"required"` // contains filtered or unexported fields }
func (*Receipt) MarshalBinary ¶
func (*Receipt) MarshalJSON ¶
func (*Receipt) UnmarshalBinary ¶
func (*Receipt) UnmarshalJSON ¶
type ReceiptEntry ¶
type ReceiptEntry struct { Right bool `json:"right,omitempty" form:"right" query:"right" validate:"required"` Hash []byte `json:"hash,omitempty" form:"hash" query:"hash" validate:"required"` // contains filtered or unexported fields }
func (*ReceiptEntry) Equal ¶
func (v *ReceiptEntry) Equal(u *ReceiptEntry) bool
func (*ReceiptEntry) IsValid ¶
func (v *ReceiptEntry) IsValid() error
func (*ReceiptEntry) MarshalBinary ¶
func (v *ReceiptEntry) MarshalBinary() ([]byte, error)
func (*ReceiptEntry) MarshalJSON ¶
func (v *ReceiptEntry) MarshalJSON() ([]byte, error)
func (*ReceiptEntry) UnmarshalBinary ¶
func (v *ReceiptEntry) UnmarshalBinary(data []byte) error
func (*ReceiptEntry) UnmarshalBinaryFrom ¶
func (v *ReceiptEntry) UnmarshalBinaryFrom(rd io.Reader) error
func (*ReceiptEntry) UnmarshalJSON ¶
func (v *ReceiptEntry) UnmarshalJSON(data []byte) error
type RemoveManager ¶
type RemoveManager struct {
// contains filtered or unexported fields
}
func (*RemoveManager) Equal ¶
func (v *RemoveManager) Equal(u *RemoveManager) bool
func (*RemoveManager) GetType ¶
func (*RemoveManager) GetType() TransactionType
func (*RemoveManager) IsValid ¶
func (v *RemoveManager) IsValid() error
func (*RemoveManager) MarshalBinary ¶
func (v *RemoveManager) MarshalBinary() ([]byte, error)
func (*RemoveManager) MarshalJSON ¶
func (v *RemoveManager) MarshalJSON() ([]byte, error)
func (*RemoveManager) Type ¶
func (*RemoveManager) Type() TransactionType
func (*RemoveManager) UnmarshalBinary ¶
func (v *RemoveManager) UnmarshalBinary(data []byte) error
func (*RemoveManager) UnmarshalBinaryFrom ¶
func (v *RemoveManager) UnmarshalBinaryFrom(rd io.Reader) error
func (*RemoveManager) UnmarshalJSON ¶
func (v *RemoveManager) UnmarshalJSON(data []byte) error
type RequestDataEntry ¶
type RequestDataEntry struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` EntryHash [32]byte `json:"entryHash,omitempty" form:"entryHash" query:"entryHash"` // contains filtered or unexported fields }
func (*RequestDataEntry) Equal ¶
func (v *RequestDataEntry) Equal(u *RequestDataEntry) bool
func (*RequestDataEntry) IsValid ¶
func (v *RequestDataEntry) IsValid() error
func (*RequestDataEntry) MarshalBinary ¶
func (v *RequestDataEntry) MarshalBinary() ([]byte, error)
func (*RequestDataEntry) MarshalJSON ¶
func (v *RequestDataEntry) MarshalJSON() ([]byte, error)
func (*RequestDataEntry) UnmarshalBinary ¶
func (v *RequestDataEntry) UnmarshalBinary(data []byte) error
func (*RequestDataEntry) UnmarshalBinaryFrom ¶
func (v *RequestDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
func (*RequestDataEntry) UnmarshalJSON ¶
func (v *RequestDataEntry) UnmarshalJSON(data []byte) error
type RequestDataEntrySet ¶
type RequestDataEntrySet struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` Start uint64 `json:"start,omitempty" form:"start" query:"start" validate:"required"` Count uint64 `json:"count,omitempty" form:"count" query:"count" validate:"required"` ExpandChains bool `json:"expandChains,omitempty" form:"expandChains" query:"expandChains"` // contains filtered or unexported fields }
func (*RequestDataEntrySet) Equal ¶
func (v *RequestDataEntrySet) Equal(u *RequestDataEntrySet) bool
func (*RequestDataEntrySet) IsValid ¶
func (v *RequestDataEntrySet) IsValid() error
func (*RequestDataEntrySet) MarshalBinary ¶
func (v *RequestDataEntrySet) MarshalBinary() ([]byte, error)
func (*RequestDataEntrySet) UnmarshalBinary ¶
func (v *RequestDataEntrySet) UnmarshalBinary(data []byte) error
func (*RequestDataEntrySet) UnmarshalBinaryFrom ¶
func (v *RequestDataEntrySet) UnmarshalBinaryFrom(rd io.Reader) error
type ResponseDataEntry ¶
type ResponseDataEntry struct { EntryHash [32]byte `json:"entryHash,omitempty" form:"entryHash" query:"entryHash" validate:"required"` Entry DataEntry `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` // contains filtered or unexported fields }
func (*ResponseDataEntry) Equal ¶
func (v *ResponseDataEntry) Equal(u *ResponseDataEntry) bool
func (*ResponseDataEntry) IsValid ¶
func (v *ResponseDataEntry) IsValid() error
func (*ResponseDataEntry) MarshalBinary ¶
func (v *ResponseDataEntry) MarshalBinary() ([]byte, error)
func (*ResponseDataEntry) MarshalJSON ¶
func (v *ResponseDataEntry) MarshalJSON() ([]byte, error)
func (*ResponseDataEntry) UnmarshalBinary ¶
func (v *ResponseDataEntry) UnmarshalBinary(data []byte) error
func (*ResponseDataEntry) UnmarshalBinaryFrom ¶
func (v *ResponseDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
func (*ResponseDataEntry) UnmarshalJSON ¶
func (v *ResponseDataEntry) UnmarshalJSON(data []byte) error
type ResponseDataEntrySet ¶
type ResponseDataEntrySet struct { DataEntries []ResponseDataEntry `json:"dataEntries,omitempty" form:"dataEntries" query:"dataEntries" validate:"required"` Total uint64 `json:"total,omitempty" form:"total" query:"total" validate:"required"` // contains filtered or unexported fields }
func (*ResponseDataEntrySet) Equal ¶
func (v *ResponseDataEntrySet) Equal(u *ResponseDataEntrySet) bool
func (*ResponseDataEntrySet) IsValid ¶
func (v *ResponseDataEntrySet) IsValid() error
func (*ResponseDataEntrySet) MarshalBinary ¶
func (v *ResponseDataEntrySet) MarshalBinary() ([]byte, error)
func (*ResponseDataEntrySet) UnmarshalBinary ¶
func (v *ResponseDataEntrySet) UnmarshalBinary(data []byte) error
func (*ResponseDataEntrySet) UnmarshalBinaryFrom ¶
func (v *ResponseDataEntrySet) UnmarshalBinaryFrom(rd io.Reader) error
type SegWitDataEntry ¶
type SegWitDataEntry struct { Cause [32]byte `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` EntryUrl *url.URL `json:"entryUrl,omitempty" form:"entryUrl" query:"entryUrl" validate:"required"` EntryHash [32]byte `json:"entryHash,omitempty" form:"entryHash" query:"entryHash" validate:"required"` // contains filtered or unexported fields }
func (*SegWitDataEntry) Equal ¶
func (v *SegWitDataEntry) Equal(u *SegWitDataEntry) bool
func (*SegWitDataEntry) GetCause ¶
func (tx *SegWitDataEntry) GetCause() [32]byte
func (*SegWitDataEntry) GetType ¶
func (*SegWitDataEntry) GetType() TransactionType
func (*SegWitDataEntry) IsValid ¶
func (v *SegWitDataEntry) IsValid() error
func (*SegWitDataEntry) MarshalBinary ¶
func (v *SegWitDataEntry) MarshalBinary() ([]byte, error)
func (*SegWitDataEntry) MarshalJSON ¶
func (v *SegWitDataEntry) MarshalJSON() ([]byte, error)
func (*SegWitDataEntry) Type ¶
func (*SegWitDataEntry) Type() TransactionType
func (*SegWitDataEntry) UnmarshalBinary ¶
func (v *SegWitDataEntry) UnmarshalBinary(data []byte) error
func (*SegWitDataEntry) UnmarshalBinaryFrom ¶
func (v *SegWitDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
func (*SegWitDataEntry) UnmarshalJSON ¶
func (v *SegWitDataEntry) UnmarshalJSON(data []byte) error
type SendTokens ¶
type SendTokens struct { Hash [32]byte `json:"hash,omitempty" form:"hash" query:"hash"` Meta json.RawMessage `json:"meta,omitempty" form:"meta" query:"meta"` To []*TokenRecipient `json:"to,omitempty" form:"to" query:"to" validate:"required"` // contains filtered or unexported fields }
func (*SendTokens) AddRecipient ¶
func (tx *SendTokens) AddRecipient(to *url.URL, amount *big.Int)
func (*SendTokens) Equal ¶
func (v *SendTokens) Equal(u *SendTokens) bool
func (*SendTokens) GetType ¶
func (*SendTokens) GetType() TransactionType
func (*SendTokens) IsValid ¶
func (v *SendTokens) IsValid() error
func (*SendTokens) MarshalBinary ¶
func (v *SendTokens) MarshalBinary() ([]byte, error)
func (*SendTokens) MarshalJSON ¶
func (v *SendTokens) MarshalJSON() ([]byte, error)
func (*SendTokens) Type ¶
func (*SendTokens) Type() TransactionType
func (*SendTokens) UnmarshalBinary ¶
func (v *SendTokens) UnmarshalBinary(data []byte) error
func (*SendTokens) UnmarshalBinaryFrom ¶
func (v *SendTokens) UnmarshalBinaryFrom(rd io.Reader) error
func (*SendTokens) UnmarshalJSON ¶
func (v *SendTokens) UnmarshalJSON(data []byte) error
type SendTransaction ¶
type SendTransaction struct { Payload TransactionPayload `json:"payload,omitempty" form:"payload" query:"payload" validate:"required"` Recipient *url.URL `json:"recipient,omitempty" form:"recipient" query:"recipient" validate:"required"` // contains filtered or unexported fields }
func (*SendTransaction) IsValid ¶
func (v *SendTransaction) IsValid() error
func (*SendTransaction) MarshalBinary ¶
func (v *SendTransaction) MarshalBinary() ([]byte, error)
func (*SendTransaction) MarshalJSON ¶
func (v *SendTransaction) MarshalJSON() ([]byte, error)
func (*SendTransaction) UnmarshalBinary ¶
func (v *SendTransaction) UnmarshalBinary(data []byte) error
func (*SendTransaction) UnmarshalBinaryFrom ¶
func (v *SendTransaction) UnmarshalBinaryFrom(rd io.Reader) error
func (*SendTransaction) UnmarshalJSON ¶
func (v *SendTransaction) UnmarshalJSON(data []byte) error
type SignPending ¶
type SignPending struct {
// contains filtered or unexported fields
}
func (*SignPending) Equal ¶
func (v *SignPending) Equal(u *SignPending) bool
func (*SignPending) GetType ¶
func (*SignPending) GetType() TransactionType
func (*SignPending) IsValid ¶
func (v *SignPending) IsValid() error
func (*SignPending) MarshalBinary ¶
func (v *SignPending) MarshalBinary() ([]byte, error)
func (*SignPending) MarshalJSON ¶
func (v *SignPending) MarshalJSON() ([]byte, error)
func (*SignPending) Type ¶
func (*SignPending) Type() TransactionType
func (*SignPending) UnmarshalBinary ¶
func (v *SignPending) UnmarshalBinary(data []byte) error
func (*SignPending) UnmarshalBinaryFrom ¶
func (v *SignPending) UnmarshalBinaryFrom(rd io.Reader) error
func (*SignPending) UnmarshalJSON ¶
func (v *SignPending) UnmarshalJSON(data []byte) error
type Signature ¶
type Signature interface { encoding.BinaryValue Type() SignatureType GetPublicKey() []byte GetSignature() []byte Sign(nonce uint64, privateKey []byte, msghash []byte) error Verify(hash []byte) bool }
func NewSignature ¶
func NewSignature(typ SignatureType) (Signature, error)
NewSignature creates a new Signature for the specified SignatureType.
func UnmarshalSignature ¶
UnmarshalSignature unmarshals a Signature.
func UnmarshalSignatureFrom ¶
func UnmarshalSignatureFrom(rd io.ReadSeeker) (Signature, error)
UnmarshalSignatureFrom unmarshals a Signature.
func UnmarshalSignatureJSON ¶
UnmarshalSignatureJson unmarshals a Signature.
type SignatureType ¶
type SignatureType uint64
SignatureType is the type of a transaction signature.
const SignatureTypeED25519 SignatureType = 2
SignatureTypeED25519 represents an ED25519 signature.
const SignatureTypeLegacyED25519 SignatureType = 1
SignatureTypeLegacyED25519 represents a legacy ED25519 signature.
const SignatureTypeUnknown SignatureType = 0
SignatureTypeUnknown is used when the signature type is not known.
func SignatureTypeByName ¶
func SignatureTypeByName(name string) (SignatureType, bool)
SignatureTypeByName returns the named Signature Type.
func UnmarshalSignatureType ¶
func UnmarshalSignatureType(r io.Reader) (SignatureType, error)
UnmarshalSignatureType unmarshals the SignatureType from the start of a Signature.
func (SignatureType) BinarySize ¶
func (v SignatureType) BinarySize() int
BinarySize returns the number of bytes required to binary marshal the Signature Type.
func (SignatureType) ID ¶
func (v SignatureType) ID() uint64
ID returns the ID of the Signature Type
func (SignatureType) MarshalBinary ¶
func (v SignatureType) MarshalBinary() ([]byte, error)
MarshalBinary marshals the Signature Type to bytes as a unsigned varint.
func (SignatureType) MarshalJSON ¶
func (v SignatureType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Signature Type to JSON as a string.
func (*SignatureType) Set ¶
func (v *SignatureType) Set(id uint64) bool
Set sets the value. Set returns false if the value is invalid.
func (SignatureType) String ¶
func (v SignatureType) String() string
String returns the name of the Signature Type
func (*SignatureType) UnmarshalBinary ¶
func (v *SignatureType) UnmarshalBinary(data []byte) error
UnmarshalBinary unmarshals the Signature Type from bytes as a unsigned varint.
func (*SignatureType) UnmarshalJSON ¶
func (v *SignatureType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Signature Type from JSON as a string.
type SyntheticAnchor ¶
type SyntheticAnchor struct { Source *url.URL `json:"source,omitempty" form:"source" query:"source" validate:"required"` Major bool `json:"major,omitempty" form:"major" query:"major" validate:"required"` RootAnchor [32]byte `json:"rootAnchor,omitempty" form:"rootAnchor" query:"rootAnchor" validate:"required"` RootIndex uint64 `json:"rootIndex,omitempty" form:"rootIndex" query:"rootIndex" validate:"required"` Block uint64 `json:"block,omitempty" form:"block" query:"block" validate:"required"` SourceIndex uint64 `json:"sourceIndex,omitempty" form:"sourceIndex" query:"sourceIndex" validate:"required"` SourceBlock uint64 `json:"sourceBlock,omitempty" form:"sourceBlock" query:"sourceBlock" validate:"required"` AcmeOraclePrice uint64 `json:"acmeOraclePrice,omitempty" form:"acmeOraclePrice" query:"acmeOraclePrice" validate:"required"` Receipt Receipt `json:"receipt,omitempty" form:"receipt" query:"receipt" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticAnchor) Equal ¶
func (v *SyntheticAnchor) Equal(u *SyntheticAnchor) bool
func (*SyntheticAnchor) GetType ¶
func (*SyntheticAnchor) GetType() TransactionType
func (*SyntheticAnchor) IsValid ¶
func (v *SyntheticAnchor) IsValid() error
func (*SyntheticAnchor) MarshalBinary ¶
func (v *SyntheticAnchor) MarshalBinary() ([]byte, error)
func (*SyntheticAnchor) MarshalJSON ¶
func (v *SyntheticAnchor) MarshalJSON() ([]byte, error)
func (*SyntheticAnchor) Type ¶
func (*SyntheticAnchor) Type() TransactionType
func (*SyntheticAnchor) UnmarshalBinary ¶
func (v *SyntheticAnchor) UnmarshalBinary(data []byte) error
func (*SyntheticAnchor) UnmarshalBinaryFrom ¶
func (v *SyntheticAnchor) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticAnchor) UnmarshalJSON ¶
func (v *SyntheticAnchor) UnmarshalJSON(data []byte) error
type SyntheticBurnTokens ¶
type SyntheticBurnTokens struct { Cause [32]byte `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` Amount big.Int `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticBurnTokens) Equal ¶
func (v *SyntheticBurnTokens) Equal(u *SyntheticBurnTokens) bool
func (*SyntheticBurnTokens) GetCause ¶
func (tx *SyntheticBurnTokens) GetCause() [32]byte
func (*SyntheticBurnTokens) GetType ¶
func (*SyntheticBurnTokens) GetType() TransactionType
func (*SyntheticBurnTokens) IsValid ¶
func (v *SyntheticBurnTokens) IsValid() error
func (*SyntheticBurnTokens) MarshalBinary ¶
func (v *SyntheticBurnTokens) MarshalBinary() ([]byte, error)
func (*SyntheticBurnTokens) MarshalJSON ¶
func (v *SyntheticBurnTokens) MarshalJSON() ([]byte, error)
func (*SyntheticBurnTokens) Type ¶
func (*SyntheticBurnTokens) Type() TransactionType
func (*SyntheticBurnTokens) UnmarshalBinary ¶
func (v *SyntheticBurnTokens) UnmarshalBinary(data []byte) error
func (*SyntheticBurnTokens) UnmarshalBinaryFrom ¶
func (v *SyntheticBurnTokens) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticBurnTokens) UnmarshalJSON ¶
func (v *SyntheticBurnTokens) UnmarshalJSON(data []byte) error
type SyntheticCreateChain ¶
type SyntheticCreateChain struct { Cause [32]byte `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` Chains []ChainParams `json:"chains,omitempty" form:"chains" query:"chains" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticCreateChain) Create ¶
func (tx *SyntheticCreateChain) Create(chains ...Account) error
func (*SyntheticCreateChain) Equal ¶
func (v *SyntheticCreateChain) Equal(u *SyntheticCreateChain) bool
func (*SyntheticCreateChain) GetCause ¶
func (tx *SyntheticCreateChain) GetCause() [32]byte
func (*SyntheticCreateChain) GetType ¶
func (*SyntheticCreateChain) GetType() TransactionType
func (*SyntheticCreateChain) IsValid ¶
func (v *SyntheticCreateChain) IsValid() error
func (*SyntheticCreateChain) MarshalBinary ¶
func (v *SyntheticCreateChain) MarshalBinary() ([]byte, error)
func (*SyntheticCreateChain) MarshalJSON ¶
func (v *SyntheticCreateChain) MarshalJSON() ([]byte, error)
func (*SyntheticCreateChain) Type ¶
func (*SyntheticCreateChain) Type() TransactionType
func (*SyntheticCreateChain) UnmarshalBinary ¶
func (v *SyntheticCreateChain) UnmarshalBinary(data []byte) error
func (*SyntheticCreateChain) UnmarshalBinaryFrom ¶
func (v *SyntheticCreateChain) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticCreateChain) UnmarshalJSON ¶
func (v *SyntheticCreateChain) UnmarshalJSON(data []byte) error
func (*SyntheticCreateChain) Update ¶
func (tx *SyntheticCreateChain) Update(chains ...Account) error
type SyntheticDepositCredits ¶
type SyntheticDepositCredits struct { Cause [32]byte `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` Amount uint64 `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticDepositCredits) Equal ¶
func (v *SyntheticDepositCredits) Equal(u *SyntheticDepositCredits) bool
func (*SyntheticDepositCredits) GetCause ¶
func (tx *SyntheticDepositCredits) GetCause() [32]byte
func (*SyntheticDepositCredits) GetType ¶
func (*SyntheticDepositCredits) GetType() TransactionType
func (*SyntheticDepositCredits) IsValid ¶
func (v *SyntheticDepositCredits) IsValid() error
func (*SyntheticDepositCredits) MarshalBinary ¶
func (v *SyntheticDepositCredits) MarshalBinary() ([]byte, error)
func (*SyntheticDepositCredits) MarshalJSON ¶
func (v *SyntheticDepositCredits) MarshalJSON() ([]byte, error)
func (*SyntheticDepositCredits) Type ¶
func (*SyntheticDepositCredits) Type() TransactionType
func (*SyntheticDepositCredits) UnmarshalBinary ¶
func (v *SyntheticDepositCredits) UnmarshalBinary(data []byte) error
func (*SyntheticDepositCredits) UnmarshalBinaryFrom ¶
func (v *SyntheticDepositCredits) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticDepositCredits) UnmarshalJSON ¶
func (v *SyntheticDepositCredits) UnmarshalJSON(data []byte) error
type SyntheticDepositTokens ¶
type SyntheticDepositTokens struct { Cause [32]byte `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` Token *url.URL `json:"token,omitempty" form:"token" query:"token" validate:"required"` Amount big.Int `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticDepositTokens) Equal ¶
func (v *SyntheticDepositTokens) Equal(u *SyntheticDepositTokens) bool
func (*SyntheticDepositTokens) GetCause ¶
func (tx *SyntheticDepositTokens) GetCause() [32]byte
func (*SyntheticDepositTokens) GetType ¶
func (*SyntheticDepositTokens) GetType() TransactionType
func (*SyntheticDepositTokens) IsValid ¶
func (v *SyntheticDepositTokens) IsValid() error
func (*SyntheticDepositTokens) MarshalBinary ¶
func (v *SyntheticDepositTokens) MarshalBinary() ([]byte, error)
func (*SyntheticDepositTokens) MarshalJSON ¶
func (v *SyntheticDepositTokens) MarshalJSON() ([]byte, error)
func (*SyntheticDepositTokens) Type ¶
func (*SyntheticDepositTokens) Type() TransactionType
func (*SyntheticDepositTokens) UnmarshalBinary ¶
func (v *SyntheticDepositTokens) UnmarshalBinary(data []byte) error
func (*SyntheticDepositTokens) UnmarshalBinaryFrom ¶
func (v *SyntheticDepositTokens) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticDepositTokens) UnmarshalJSON ¶
func (v *SyntheticDepositTokens) UnmarshalJSON(data []byte) error
type SyntheticLedger ¶
type SyntheticLedger struct { Nonce uint64 `json:"nonce,omitempty" form:"nonce" query:"nonce" validate:"required"` Produced [][32]byte `json:"produced,omitempty" form:"produced" query:"produced" validate:"required"` Unsigned [][32]byte `json:"unsigned,omitempty" form:"unsigned" query:"unsigned" validate:"required"` Unsent [][32]byte `json:"unsent,omitempty" form:"unsent" query:"unsent" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticLedger) Equal ¶
func (v *SyntheticLedger) Equal(u *SyntheticLedger) bool
func (*SyntheticLedger) IsValid ¶
func (v *SyntheticLedger) IsValid() error
func (*SyntheticLedger) MarshalBinary ¶
func (v *SyntheticLedger) MarshalBinary() ([]byte, error)
func (*SyntheticLedger) MarshalJSON ¶
func (v *SyntheticLedger) MarshalJSON() ([]byte, error)
func (*SyntheticLedger) UnmarshalBinary ¶
func (v *SyntheticLedger) UnmarshalBinary(data []byte) error
func (*SyntheticLedger) UnmarshalBinaryFrom ¶
func (v *SyntheticLedger) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticLedger) UnmarshalJSON ¶
func (v *SyntheticLedger) UnmarshalJSON(data []byte) error
type SyntheticMirror ¶
type SyntheticMirror struct { Objects []AnchoredRecord `json:"objects,omitempty" form:"objects" query:"objects" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticMirror) Equal ¶
func (v *SyntheticMirror) Equal(u *SyntheticMirror) bool
func (*SyntheticMirror) GetType ¶
func (*SyntheticMirror) GetType() TransactionType
func (*SyntheticMirror) IsValid ¶
func (v *SyntheticMirror) IsValid() error
func (*SyntheticMirror) MarshalBinary ¶
func (v *SyntheticMirror) MarshalBinary() ([]byte, error)
func (*SyntheticMirror) MarshalJSON ¶
func (v *SyntheticMirror) MarshalJSON() ([]byte, error)
func (*SyntheticMirror) Type ¶
func (*SyntheticMirror) Type() TransactionType
func (*SyntheticMirror) UnmarshalBinary ¶
func (v *SyntheticMirror) UnmarshalBinary(data []byte) error
func (*SyntheticMirror) UnmarshalBinaryFrom ¶
func (v *SyntheticMirror) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticMirror) UnmarshalJSON ¶
func (v *SyntheticMirror) UnmarshalJSON(data []byte) error
type SyntheticTransaction ¶
type SyntheticTransaction interface { TransactionPayload GetCause() [32]byte }
type SyntheticWriteData ¶
type SyntheticWriteData struct { Cause [32]byte `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` Entry DataEntry `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticWriteData) Equal ¶
func (v *SyntheticWriteData) Equal(u *SyntheticWriteData) bool
func (*SyntheticWriteData) GetCause ¶
func (tx *SyntheticWriteData) GetCause() [32]byte
func (*SyntheticWriteData) GetType ¶
func (*SyntheticWriteData) GetType() TransactionType
func (*SyntheticWriteData) IsValid ¶
func (v *SyntheticWriteData) IsValid() error
func (*SyntheticWriteData) MarshalBinary ¶
func (v *SyntheticWriteData) MarshalBinary() ([]byte, error)
func (*SyntheticWriteData) MarshalJSON ¶
func (v *SyntheticWriteData) MarshalJSON() ([]byte, error)
func (*SyntheticWriteData) Type ¶
func (*SyntheticWriteData) Type() TransactionType
func (*SyntheticWriteData) UnmarshalBinary ¶
func (v *SyntheticWriteData) UnmarshalBinary(data []byte) error
func (*SyntheticWriteData) UnmarshalBinaryFrom ¶
func (v *SyntheticWriteData) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticWriteData) UnmarshalJSON ¶
func (v *SyntheticWriteData) UnmarshalJSON(data []byte) error
type TokenAccount ¶
type TokenAccount struct { AccountHeader TokenUrl *url.URL `json:"tokenUrl,omitempty" form:"tokenUrl" query:"tokenUrl" validate:"required"` Balance big.Int `json:"balance,omitempty" form:"balance" query:"balance" validate:"required"` Scratch bool `json:"scratch,omitempty" form:"scratch" query:"scratch"` // contains filtered or unexported fields }
func (*TokenAccount) CanDebitTokens ¶
func (acct *TokenAccount) CanDebitTokens(amount *big.Int) bool
func (*TokenAccount) CreditTokens ¶
func (acct *TokenAccount) CreditTokens(amount *big.Int) bool
func (*TokenAccount) DebitTokens ¶
func (acct *TokenAccount) DebitTokens(amount *big.Int) bool
func (*TokenAccount) Equal ¶
func (v *TokenAccount) Equal(u *TokenAccount) bool
func (*TokenAccount) GetType ¶
func (*TokenAccount) GetType() AccountType
func (*TokenAccount) IsValid ¶
func (v *TokenAccount) IsValid() error
func (*TokenAccount) MarshalBinary ¶
func (v *TokenAccount) MarshalBinary() ([]byte, error)
func (*TokenAccount) MarshalJSON ¶
func (v *TokenAccount) MarshalJSON() ([]byte, error)
func (*TokenAccount) ParseTokenUrl
deprecated
func (acct *TokenAccount) ParseTokenUrl() (*url.URL, error)
Deprecated: use TokenUrl field
func (*TokenAccount) TokenBalance ¶
func (acct *TokenAccount) TokenBalance() *big.Int
func (*TokenAccount) Type ¶
func (*TokenAccount) Type() AccountType
func (*TokenAccount) UnmarshalBinary ¶
func (v *TokenAccount) UnmarshalBinary(data []byte) error
func (*TokenAccount) UnmarshalBinaryFrom ¶
func (v *TokenAccount) UnmarshalBinaryFrom(rd io.Reader) error
func (*TokenAccount) UnmarshalJSON ¶
func (v *TokenAccount) UnmarshalJSON(data []byte) error
type TokenHolder ¶
type TokenIssuer ¶
type TokenIssuer struct { AccountHeader Symbol string `json:"symbol,omitempty" form:"symbol" query:"symbol" validate:"required"` Precision uint64 `json:"precision,omitempty" form:"precision" query:"precision" validate:"required"` Properties *url.URL `json:"properties,omitempty" form:"properties" query:"properties" validate:"required"` Supply big.Int `json:"supply,omitempty" form:"supply" query:"supply"` HasSupplyLimit bool `json:"hasSupplyLimit,omitempty" form:"hasSupplyLimit" query:"hasSupplyLimit"` // contains filtered or unexported fields }
func (*TokenIssuer) Equal ¶
func (v *TokenIssuer) Equal(u *TokenIssuer) bool
func (*TokenIssuer) GetType ¶
func (*TokenIssuer) GetType() AccountType
func (*TokenIssuer) IsValid ¶
func (v *TokenIssuer) IsValid() error
func (*TokenIssuer) MarshalBinary ¶
func (v *TokenIssuer) MarshalBinary() ([]byte, error)
func (*TokenIssuer) MarshalJSON ¶
func (v *TokenIssuer) MarshalJSON() ([]byte, error)
func (*TokenIssuer) Type ¶
func (*TokenIssuer) Type() AccountType
func (*TokenIssuer) UnmarshalBinary ¶
func (v *TokenIssuer) UnmarshalBinary(data []byte) error
func (*TokenIssuer) UnmarshalBinaryFrom ¶
func (v *TokenIssuer) UnmarshalBinaryFrom(rd io.Reader) error
func (*TokenIssuer) UnmarshalJSON ¶
func (v *TokenIssuer) UnmarshalJSON(data []byte) error
type TokenRecipient ¶
type TokenRecipient struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` Amount big.Int `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*TokenRecipient) Equal ¶
func (v *TokenRecipient) Equal(u *TokenRecipient) bool
func (*TokenRecipient) IsValid ¶
func (v *TokenRecipient) IsValid() error
func (*TokenRecipient) MarshalBinary ¶
func (v *TokenRecipient) MarshalBinary() ([]byte, error)
func (*TokenRecipient) MarshalJSON ¶
func (v *TokenRecipient) MarshalJSON() ([]byte, error)
func (*TokenRecipient) UnmarshalBinary ¶
func (v *TokenRecipient) UnmarshalBinary(data []byte) error
func (*TokenRecipient) UnmarshalBinaryFrom ¶
func (v *TokenRecipient) UnmarshalBinaryFrom(rd io.Reader) error
func (*TokenRecipient) UnmarshalJSON ¶
func (v *TokenRecipient) UnmarshalJSON(data []byte) error
type Transaction ¶
type Transaction struct { TransactionHeader Body TransactionPayload `json:"body,omitempty" form:"body" query:"body" validate:"required"` // contains filtered or unexported fields }
func (*Transaction) Equal ¶
func (v *Transaction) Equal(u *Transaction) bool
func (*Transaction) IsValid ¶
func (v *Transaction) IsValid() error
func (*Transaction) MarshalBinary ¶
func (v *Transaction) MarshalBinary() ([]byte, error)
func (*Transaction) MarshalJSON ¶
func (v *Transaction) MarshalJSON() ([]byte, error)
func (*Transaction) Type ¶
func (t *Transaction) Type() TransactionType
Type decodes the transaction type from the body.
func (*Transaction) UnmarshalBinary ¶
func (v *Transaction) UnmarshalBinary(data []byte) error
func (*Transaction) UnmarshalBinaryFrom ¶
func (v *Transaction) UnmarshalBinaryFrom(rd io.Reader) error
func (*Transaction) UnmarshalJSON ¶
func (v *Transaction) UnmarshalJSON(data []byte) error
type TransactionBody ¶
type TransactionBody interface { encoding.BinaryValue GetType() TransactionType Type() TransactionType }
func NewTransaction ¶
func NewTransaction(typ TransactionType) (TransactionBody, error)
func NewTransactionBody ¶
func NewTransactionBody(typ TransactionType) (TransactionBody, error)
NewTransactionBody creates a new TransactionBody for the specified TransactionType.
func UnmarshalTransaction ¶
func UnmarshalTransaction(data []byte) (TransactionBody, error)
func UnmarshalTransactionBody ¶
func UnmarshalTransactionBody(data []byte) (TransactionBody, error)
UnmarshalTransactionBody unmarshals a TransactionBody.
func UnmarshalTransactionBodyFrom ¶
func UnmarshalTransactionBodyFrom(rd io.ReadSeeker) (TransactionBody, error)
UnmarshalTransactionBodyFrom unmarshals a TransactionBody.
func UnmarshalTransactionBodyJSON ¶
func UnmarshalTransactionBodyJSON(data []byte) (TransactionBody, error)
UnmarshalTransactionBodyJson unmarshals a TransactionBody.
func UnmarshalTransactionJSON ¶
func UnmarshalTransactionJSON(data []byte) (TransactionBody, error)
type TransactionHeader ¶
type TransactionHeader struct { Origin *url.URL `json:"origin,omitempty" form:"origin" query:"origin" validate:"required"` KeyPageHeight uint64 `json:"keyPageHeight,omitempty" form:"keyPageHeight" query:"keyPageHeight" validate:"required"` KeyPageIndex uint64 `json:"keyPageIndex,omitempty" form:"keyPageIndex" query:"keyPageIndex" validate:"required"` Nonce uint64 `json:"nonce,omitempty" form:"nonce" query:"nonce" validate:"required"` // contains filtered or unexported fields }
func (*TransactionHeader) Equal ¶
func (v *TransactionHeader) Equal(u *TransactionHeader) bool
func (*TransactionHeader) IsValid ¶
func (v *TransactionHeader) IsValid() error
func (*TransactionHeader) MarshalBinary ¶
func (v *TransactionHeader) MarshalBinary() ([]byte, error)
func (*TransactionHeader) UnmarshalBinary ¶
func (v *TransactionHeader) UnmarshalBinary(data []byte) error
func (*TransactionHeader) UnmarshalBinaryFrom ¶
func (v *TransactionHeader) UnmarshalBinaryFrom(rd io.Reader) error
type TransactionMax ¶
type TransactionMax uint64
TransactionMax defines the max point for transaction types.
const TransactionMaxInternal TransactionMax = 255
TransactionMaxInternal is the highest number reserved for internal transactions.
const TransactionMaxSynthetic TransactionMax = 95
TransactionMaxSynthetic is the highest number reserved for synthetic transactions.
const TransactionMaxUser TransactionMax = 47
TransactionMaxUser is the highest number reserved for user transactions.
func TransactionMaxByName ¶
func TransactionMaxByName(name string) (TransactionMax, bool)
TransactionMaxByName returns the named Transaction Max.
func (TransactionMax) BinarySize ¶
func (v TransactionMax) BinarySize() int
BinarySize returns the number of bytes required to binary marshal the Transaction Max.
func (TransactionMax) ID ¶
func (v TransactionMax) ID() uint64
ID returns the ID of the Transaction Max
func (TransactionMax) MarshalBinary ¶
func (v TransactionMax) MarshalBinary() ([]byte, error)
MarshalBinary marshals the Transaction Max to bytes as a unsigned varint.
func (TransactionMax) MarshalJSON ¶
func (v TransactionMax) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Transaction Max to JSON as a string.
func (*TransactionMax) Set ¶
func (v *TransactionMax) Set(id uint64) bool
Set sets the value. Set returns false if the value is invalid.
func (TransactionMax) String ¶
func (v TransactionMax) String() string
String returns the name of the Transaction Max
func (*TransactionMax) UnmarshalBinary ¶
func (v *TransactionMax) UnmarshalBinary(data []byte) error
UnmarshalBinary unmarshals the Transaction Max from bytes as a unsigned varint.
func (*TransactionMax) UnmarshalJSON ¶
func (v *TransactionMax) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Transaction Max from JSON as a string.
type TransactionPayload
deprecated
type TransactionPayload = TransactionBody
Deprecated: use TransactionBody
type TransactionResult ¶
type TransactionResult interface { GetType() TransactionType Type() TransactionType encoding.BinaryValue }
func NewTransactionResult ¶
func NewTransactionResult(typ TransactionType) (TransactionResult, error)
func UnmarshalTransactionResult ¶
func UnmarshalTransactionResult(data []byte) (TransactionResult, error)
func UnmarshalTransactionResultFrom ¶
func UnmarshalTransactionResultFrom(rd io.ReadSeeker) (TransactionResult, error)
func UnmarshalTransactionResultJSON ¶
func UnmarshalTransactionResultJSON(data []byte) (TransactionResult, error)
type TransactionSignature ¶
type TransactionSignature struct { Transaction [32]byte `json:"transaction,omitempty" form:"transaction" query:"transaction" validate:"required"` Signature Signature `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` // contains filtered or unexported fields }
func (*TransactionSignature) Equal ¶
func (v *TransactionSignature) Equal(u *TransactionSignature) bool
func (*TransactionSignature) IsValid ¶
func (v *TransactionSignature) IsValid() error
func (*TransactionSignature) MarshalBinary ¶
func (v *TransactionSignature) MarshalBinary() ([]byte, error)
func (*TransactionSignature) MarshalJSON ¶
func (v *TransactionSignature) MarshalJSON() ([]byte, error)
func (*TransactionSignature) UnmarshalBinary ¶
func (v *TransactionSignature) UnmarshalBinary(data []byte) error
func (*TransactionSignature) UnmarshalBinaryFrom ¶
func (v *TransactionSignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*TransactionSignature) UnmarshalJSON ¶
func (v *TransactionSignature) UnmarshalJSON(data []byte) error
type TransactionState ¶
type TransactionState struct { AccountHeader TxState // contains filtered or unexported fields }
func (*TransactionState) Equal ¶
func (v *TransactionState) Equal(u *TransactionState) bool
func (*TransactionState) GetType ¶
func (*TransactionState) GetType() AccountType
func (*TransactionState) IsValid ¶
func (v *TransactionState) IsValid() error
func (*TransactionState) MarshalBinary ¶
func (v *TransactionState) MarshalBinary() ([]byte, error)
func (*TransactionState) MarshalJSON ¶
func (v *TransactionState) MarshalJSON() ([]byte, error)
func (*TransactionState) Restore ¶
func (tx *TransactionState) Restore() *Envelope
func (*TransactionState) TransactionHash ¶
func (is *TransactionState) TransactionHash() *[32]byte
func (*TransactionState) TxType ¶
func (tx *TransactionState) TxType() TransactionType
func (*TransactionState) Type ¶
func (*TransactionState) Type() AccountType
func (*TransactionState) UnmarshalBinary ¶
func (v *TransactionState) UnmarshalBinary(data []byte) error
func (*TransactionState) UnmarshalBinaryFrom ¶
func (v *TransactionState) UnmarshalBinaryFrom(rd io.Reader) error
func (*TransactionState) UnmarshalJSON ¶
func (v *TransactionState) UnmarshalJSON(data []byte) error
type TransactionStatus ¶
type TransactionStatus struct { Remote bool `json:"remote,omitempty" form:"remote" query:"remote" validate:"required"` Delivered bool `json:"delivered,omitempty" form:"delivered" query:"delivered" validate:"required"` Pending bool `json:"pending,omitempty" form:"pending" query:"pending" validate:"required"` Code uint64 `json:"code,omitempty" form:"code" query:"code" validate:"required"` Message string `json:"message,omitempty" form:"message" query:"message" validate:"required"` Result TransactionResult `json:"result,omitempty" form:"result" query:"result"` // contains filtered or unexported fields }
func (*TransactionStatus) Equal ¶
func (v *TransactionStatus) Equal(u *TransactionStatus) bool
func (*TransactionStatus) IsValid ¶
func (v *TransactionStatus) IsValid() error
func (*TransactionStatus) MarshalBinary ¶
func (v *TransactionStatus) MarshalBinary() ([]byte, error)
func (*TransactionStatus) MarshalJSON ¶
func (v *TransactionStatus) MarshalJSON() ([]byte, error)
func (*TransactionStatus) UnmarshalBinary ¶
func (v *TransactionStatus) UnmarshalBinary(data []byte) error
func (*TransactionStatus) UnmarshalBinaryFrom ¶
func (v *TransactionStatus) UnmarshalBinaryFrom(rd io.Reader) error
func (*TransactionStatus) UnmarshalJSON ¶
func (v *TransactionStatus) UnmarshalJSON(data []byte) error
type TransactionType ¶
type TransactionType uint64
TransactionType is the type for transaction types.
const TransactionTypeAcmeFaucet TransactionType = 7
TransactionTypeAcmeFaucet produces a synthetic deposit tokens transaction that deposits ACME tokens into a lite token account.
const TransactionTypeAddCredits TransactionType = 14
TransactionTypeAddCredits converts ACME tokens to credits, which produces a synthetic deposit credits transaction.
const TransactionTypeBurnTokens TransactionType = 10
TransactionTypeBurnTokens burns tokens from a token account, which produces a synthetic burn tokens transaction.
const TransactionTypeCreateDataAccount TransactionType = 4
TransactionTypeCreateDataAccount creates an ADI Data Account, which produces a synthetic chain create transaction.
const TransactionTypeCreateIdentity TransactionType = 1
TransactionTypeCreateIdentity creates an ADI, which produces a synthetic chain.
const TransactionTypeCreateKeyBook TransactionType = 13
TransactionTypeCreateKeyBook creates a key book, which produces a synthetic chain create transaction.
const TransactionTypeCreateKeyPage TransactionType = 12
TransactionTypeCreateKeyPage creates a key page, which produces a synthetic chain create transaction.
const TransactionTypeCreateToken TransactionType = 8
TransactionTypeCreateToken creates a token issuer, which produces a synthetic chain create transaction.
const TransactionTypeCreateTokenAccount TransactionType = 2
TransactionTypeCreateTokenAccount creates an ADI token account, which produces a synthetic chain create transaction.
const TransactionTypeInternalGenesis TransactionType = 96
TransactionTypeInternalGenesis initializes system chains.
const TransactionTypeInternalSendTransactions TransactionType = 97
TransactionTypeInternalSendTransactions reserved for internal send.
const TransactionTypeInternalTransactionsSent TransactionType = 99
TransactionTypeInternalTransactionsSent notifies the executor of synthetic transactions that have been sent.
const TransactionTypeInternalTransactionsSigned TransactionType = 98
TransactionTypeInternalTransactionsSigned notifies the executor of synthetic transactions that have been signed.
const TransactionTypeIssueTokens TransactionType = 9
TransactionTypeIssueTokens issues tokens to a token account, which produces a synthetic token deposit transaction.
const TransactionTypeRemoveManager TransactionType = 17
TransactionTypeRemoveManager remove manager from existing chain.
const TransactionTypeSegWitDataEntry TransactionType = 57
TransactionTypeSegWitDataEntry is a surrogate transaction segregated witness for a WriteData transaction.
const TransactionTypeSendTokens TransactionType = 3
TransactionTypeSendTokens transfers tokens between token accounts, which produces a synthetic deposit tokens transaction.
const TransactionTypeSignPending TransactionType = 48
TransactionTypeSignPending is used to sign a pending transaction.
const TransactionTypeSyntheticAnchor TransactionType = 52
TransactionTypeSyntheticAnchor anchors one network to another.
const TransactionTypeSyntheticBurnTokens TransactionType = 54
TransactionTypeSyntheticBurnTokens returns tokens to a token issuer's pool of issuable tokens.
const TransactionTypeSyntheticCreateChain TransactionType = 49
TransactionTypeSyntheticCreateChain creates or updates chains.
const TransactionTypeSyntheticDepositCredits TransactionType = 53
TransactionTypeSyntheticDepositCredits deposits credits into a credit holder.
const TransactionTypeSyntheticDepositTokens TransactionType = 51
TransactionTypeSyntheticDepositTokens deposits tokens into token accounts.
const TransactionTypeSyntheticMirror TransactionType = 56
TransactionTypeSyntheticMirror mirrors records from one network to another.
const TransactionTypeSyntheticWriteData TransactionType = 50
TransactionTypeSyntheticWriteData writes data to a data account.
const TransactionTypeUnknown TransactionType = 0
TransactionTypeUnknown represents an unknown transaction type.
const TransactionTypeUpdateKeyPage TransactionType = 15
TransactionTypeUpdateKeyPage adds, removes, or updates keys in a key page, which *does not* produce a synthetic transaction.
const TransactionTypeUpdateManager TransactionType = 16
TransactionTypeUpdateManager updates manager for the existing chain.
const TransactionTypeWriteData TransactionType = 5
TransactionTypeWriteData writes data to an ADI Data Account, which *does not* produce a synthetic transaction.
const TransactionTypeWriteDataTo TransactionType = 6
TransactionTypeWriteDataTo writes data to a Lite Data Account, which produces a synthetic write data transaction.
func TransactionTypeByName ¶
func TransactionTypeByName(name string) (TransactionType, bool)
TransactionTypeByName returns the named Transaction Type.
func UnmarshalTransactionType ¶
func UnmarshalTransactionType(r io.Reader) (TransactionType, error)
UnmarshalTransactionType unmarshals the TransactionType from the start of a TransactionBody.
func (TransactionType) BinarySize ¶
func (v TransactionType) BinarySize() int
BinarySize returns the number of bytes required to binary marshal the Transaction Type.
func (TransactionType) ID ¶
func (v TransactionType) ID() uint64
ID returns the ID of the Transaction Type
func (TransactionType) IsInternal ¶
func (t TransactionType) IsInternal() bool
IsInternal returns true if the transaction type is internal.
func (TransactionType) IsSynthetic ¶
func (t TransactionType) IsSynthetic() bool
IsSynthetic returns true if the transaction type is synthetic.
func (TransactionType) IsUser ¶
func (t TransactionType) IsUser() bool
IsUser returns true if the transaction type is user.
func (TransactionType) MarshalBinary ¶
func (v TransactionType) MarshalBinary() ([]byte, error)
MarshalBinary marshals the Transaction Type to bytes as a unsigned varint.
func (TransactionType) MarshalJSON ¶
func (v TransactionType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Transaction Type to JSON as a string.
func (*TransactionType) Set ¶
func (v *TransactionType) Set(id uint64) bool
Set sets the value. Set returns false if the value is invalid.
func (TransactionType) String ¶
func (v TransactionType) String() string
String returns the name of the Transaction Type
func (*TransactionType) UnmarshalBinary ¶
func (v *TransactionType) UnmarshalBinary(data []byte) error
UnmarshalBinary unmarshals the Transaction Type from bytes as a unsigned varint.
func (*TransactionType) UnmarshalJSON ¶
func (v *TransactionType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Transaction Type from JSON as a string.
type TxState ¶
type TxState struct { SigInfo *TransactionHeader `json:"sigInfo,omitempty" form:"sigInfo" query:"sigInfo" validate:"required"` Transaction TransactionPayload `json:"transaction,omitempty" form:"transaction" query:"transaction" validate:"required"` TransactionHash [32]byte // contains filtered or unexported fields }
func (*TxState) MarshalBinary ¶
func (*TxState) MarshalJSON ¶
func (*TxState) UnmarshalBinary ¶
func (*TxState) UnmarshalJSON ¶
type UpdateKeyPage ¶
type UpdateKeyPage struct { Operation KeyPageOperation `json:"operation,omitempty" form:"operation" query:"operation" validate:"required"` Key []byte `json:"key,omitempty" form:"key" query:"key"` NewKey []byte `json:"newKey,omitempty" form:"newKey" query:"newKey"` Owner *url.URL `json:"owner,omitempty" form:"owner" query:"owner"` Threshold uint64 `json:"threshold,omitempty" form:"threshold" query:"threshold"` // contains filtered or unexported fields }
func (*UpdateKeyPage) Equal ¶
func (v *UpdateKeyPage) Equal(u *UpdateKeyPage) bool
func (*UpdateKeyPage) GetType ¶
func (*UpdateKeyPage) GetType() TransactionType
func (*UpdateKeyPage) IsValid ¶
func (v *UpdateKeyPage) IsValid() error
func (*UpdateKeyPage) MarshalBinary ¶
func (v *UpdateKeyPage) MarshalBinary() ([]byte, error)
func (*UpdateKeyPage) MarshalJSON ¶
func (v *UpdateKeyPage) MarshalJSON() ([]byte, error)
func (*UpdateKeyPage) Type ¶
func (*UpdateKeyPage) Type() TransactionType
func (*UpdateKeyPage) UnmarshalBinary ¶
func (v *UpdateKeyPage) UnmarshalBinary(data []byte) error
func (*UpdateKeyPage) UnmarshalBinaryFrom ¶
func (v *UpdateKeyPage) UnmarshalBinaryFrom(rd io.Reader) error
func (*UpdateKeyPage) UnmarshalJSON ¶
func (v *UpdateKeyPage) UnmarshalJSON(data []byte) error
type UpdateManager ¶
type UpdateManager struct { ManagerKeyBook *url.URL `json:"managerKeyBook,omitempty" form:"managerKeyBook" query:"managerKeyBook" validate:"required"` // contains filtered or unexported fields }
func (*UpdateManager) Equal ¶
func (v *UpdateManager) Equal(u *UpdateManager) bool
func (*UpdateManager) GetType ¶
func (*UpdateManager) GetType() TransactionType
func (*UpdateManager) IsValid ¶
func (v *UpdateManager) IsValid() error
func (*UpdateManager) MarshalBinary ¶
func (v *UpdateManager) MarshalBinary() ([]byte, error)
func (*UpdateManager) MarshalJSON ¶
func (v *UpdateManager) MarshalJSON() ([]byte, error)
func (*UpdateManager) Type ¶
func (*UpdateManager) Type() TransactionType
func (*UpdateManager) UnmarshalBinary ¶
func (v *UpdateManager) UnmarshalBinary(data []byte) error
func (*UpdateManager) UnmarshalBinaryFrom ¶
func (v *UpdateManager) UnmarshalBinaryFrom(rd io.Reader) error
func (*UpdateManager) UnmarshalJSON ¶
func (v *UpdateManager) UnmarshalJSON(data []byte) error
type WrappedTxPayload ¶
type WrappedTxPayload struct {
TransactionPayload
}
func (*WrappedTxPayload) UnmarshalBinary ¶
func (w *WrappedTxPayload) UnmarshalBinary(data []byte) error
type WriteData ¶
type WriteData struct { Entry DataEntry `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` // contains filtered or unexported fields }
func (*WriteData) GetType ¶
func (*WriteData) GetType() TransactionType
func (*WriteData) MarshalBinary ¶
func (*WriteData) MarshalJSON ¶
func (*WriteData) Type ¶
func (*WriteData) Type() TransactionType
func (*WriteData) UnmarshalBinary ¶
func (*WriteData) UnmarshalJSON ¶
type WriteDataResult ¶
type WriteDataResult struct { EntryHash [32]byte `json:"entryHash,omitempty" form:"entryHash" query:"entryHash" validate:"required"` AccountUrl *url.URL `json:"accountUrl,omitempty" form:"accountUrl" query:"accountUrl" validate:"required"` AccountID []byte `json:"accountID,omitempty" form:"accountID" query:"accountID" validate:"required"` // contains filtered or unexported fields }
func (*WriteDataResult) Equal ¶
func (v *WriteDataResult) Equal(u *WriteDataResult) bool
func (*WriteDataResult) GetType ¶
func (*WriteDataResult) GetType() TransactionType
func (*WriteDataResult) IsValid ¶
func (v *WriteDataResult) IsValid() error
func (*WriteDataResult) MarshalBinary ¶
func (v *WriteDataResult) MarshalBinary() ([]byte, error)
func (*WriteDataResult) MarshalJSON ¶
func (v *WriteDataResult) MarshalJSON() ([]byte, error)
func (*WriteDataResult) Type ¶
func (*WriteDataResult) Type() TransactionType
func (*WriteDataResult) UnmarshalBinary ¶
func (v *WriteDataResult) UnmarshalBinary(data []byte) error
func (*WriteDataResult) UnmarshalBinaryFrom ¶
func (v *WriteDataResult) UnmarshalBinaryFrom(rd io.Reader) error
func (*WriteDataResult) UnmarshalJSON ¶
func (v *WriteDataResult) UnmarshalJSON(data []byte) error
type WriteDataTo ¶
type WriteDataTo struct { Recipient *url.URL `json:"recipient,omitempty" form:"recipient" query:"recipient" validate:"required"` Entry DataEntry `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` // contains filtered or unexported fields }
func (*WriteDataTo) Equal ¶
func (v *WriteDataTo) Equal(u *WriteDataTo) bool
func (*WriteDataTo) GetType ¶
func (*WriteDataTo) GetType() TransactionType
func (*WriteDataTo) IsValid ¶
func (v *WriteDataTo) IsValid() error
func (*WriteDataTo) MarshalBinary ¶
func (v *WriteDataTo) MarshalBinary() ([]byte, error)
func (*WriteDataTo) MarshalJSON ¶
func (v *WriteDataTo) MarshalJSON() ([]byte, error)
func (*WriteDataTo) Type ¶
func (*WriteDataTo) Type() TransactionType
func (*WriteDataTo) UnmarshalBinary ¶
func (v *WriteDataTo) UnmarshalBinary(data []byte) error
func (*WriteDataTo) UnmarshalBinaryFrom ¶
func (v *WriteDataTo) UnmarshalBinaryFrom(rd io.Reader) error
func (*WriteDataTo) UnmarshalJSON ¶
func (v *WriteDataTo) UnmarshalJSON(data []byte) error
Source Files ¶
- account.go
- account_header.go
- data_entry.go
- enums_gen.go
- envelope.go
- errors.go
- faucet.go
- fee_schedule.go
- hash_algorithm.go
- keys.go
- lite_data_account.go
- lite_data_entry.go
- object.go
- protocol.go
- receipt.go
- signature.go
- token_account.go
- transaction.go
- transaction_state.go
- tx_result.go
- types.go
- types_gen.go
- unions.go
- unions_gen.go
- wrapped.go