Documentation ¶
Index ¶
- Constants
- Variables
- func AcmeUrl() *url.URL
- func AnchorChain(name string) string
- func BTCHash(pubKey []byte) []byte
- func BTCaddress(pubKey []byte) string
- func BelongsToDn(u *url.URL) bool
- func BvnNameFromSubnetId(subnetId string) string
- 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 ETHaddress(pubKey []byte) string
- func ETHhash(pubKey []byte) []byte
- func FormatAmount(amount uint64, precision int) string
- func FormatBigAmount(amount *big.Int, precision int) string
- func FormatKeyPageUrl(keyBook *url.URL, pageIndex uint64) *url.URL
- func GetFactoidAddressFromRCDHash(rcd []byte) (string, error)
- func GetFactoidAddressRcdHashPkeyFromPrivateFs(Fs string) (string, []byte, []byte, error)
- func GetFactoidSecretFromPrivKey(pk []byte) (string, error)
- func GetLiteAccountFromFactoidAddress(fa string) (*url.URL, error)
- func GetRCDFromFactoidAddress(fa string) ([]byte, error)
- func GetRCDHashFromPublicKey(pubKey []byte, version byte) []byte
- func GetValidatorsMOfN(nrOfValidators int) uint64
- 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, signatureType SignatureType) (*url.URL, error)
- func LiteTokenAddressFromHash(pubKeyHash []byte, tokenUrlStr string) (*url.URL, error)
- func NewValidator() (*validator.Validate, error)
- func ParseAnchorChain(name string) (string, bool)
- func ParseBvnUrl(u *url.URL) (string, bool)
- func ParseKeyPageUrl(keyPage *url.URL) (*url.URL, uint64, bool)
- func ParseLiteDataAddress(u *url.URL) ([]byte, error)
- func ParseLiteTokenAddress(u *url.URL) ([]byte, *url.URL, error)
- func PriceOracle() *url.URL
- func SECP256K1Keypair() (privKey []byte, pubKey []byte)
- func SECP256K1UncompressedKeypair() (privKey []byte, pubKey []byte)
- func SignBTC(sig *BTCSignature, privateKey, txnHash []byte)
- func SignBTCLegacy(sig *BTCLegacySignature, privateKey, txnHash []byte)
- func SignED25519(sig *ED25519Signature, privateKey, txnHash []byte)
- func SignETH(sig *ETHSignature, privateKey, txnHash []byte)
- func SignLegacyED25519(sig *LegacyED25519Signature, privateKey, txnHash []byte)
- func SignRCD1(sig *RCD1Signature, privateKey, txnHash []byte)
- func SignatureDidInitiate(sig Signature, txnInitHash []byte) bool
- func SubnetUrl(subnet string) *url.URL
- type ADI
- func (v *ADI) Copy() *ADI
- func (v *ADI) CopyAsInterface() interface{}
- func (v *ADI) Equal(u *ADI) bool
- func (a *ADI) GetAuth() *AccountAuth
- func (a *ADI) GetUrl() *url.URL
- 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 AccountAuth
- func (a *AccountAuth) AddAuthority(entry *url.URL) *AuthorityEntry
- func (a *AccountAuth) AuthDisabled() bool
- func (v *AccountAuth) Copy() *AccountAuth
- func (v *AccountAuth) CopyAsInterface() interface{}
- func (v *AccountAuth) Equal(u *AccountAuth) bool
- func (a *AccountAuth) GetAuthority(entry *url.URL) (*AuthorityEntry, bool)
- func (v *AccountAuth) IsValid() error
- func (a *AccountAuth) KeyBook() *url.URL
- func (a *AccountAuth) ManagerKeyBook() *url.URL
- func (v *AccountAuth) MarshalBinary() ([]byte, error)
- func (v *AccountAuth) MarshalJSON() ([]byte, error)
- func (a *AccountAuth) RemoveAuthority(entry *url.URL) bool
- func (v *AccountAuth) UnmarshalBinary(data []byte) error
- func (v *AccountAuth) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AccountAuth) UnmarshalJSON(data []byte) error
- type AccountAuthOperation
- func NewAccountAuthOperation(typ AccountAuthOperationType) (AccountAuthOperation, error)
- func UnmarshalAccountAuthOperation(data []byte) (AccountAuthOperation, error)
- func UnmarshalAccountAuthOperationFrom(rd io.ReadSeeker) (AccountAuthOperation, error)
- func UnmarshalAccountAuthOperationJSON(data []byte) (AccountAuthOperation, error)
- type AccountAuthOperationType
- func (v AccountAuthOperationType) GetEnumValue() uint64
- func (v AccountAuthOperationType) MarshalJSON() ([]byte, error)
- func (v *AccountAuthOperationType) SetEnumValue(id uint64) bool
- func (v AccountAuthOperationType) String() string
- func (v *AccountAuthOperationType) UnmarshalJSON(data []byte) error
- type AccountType
- type AccountWithCredits
- type AccountWithTokens
- type AcmeFaucet
- func (v *AcmeFaucet) Copy() *AcmeFaucet
- func (v *AcmeFaucet) CopyAsInterface() interface{}
- func (v *AcmeFaucet) Equal(u *AcmeFaucet) bool
- 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
- func (v *AcmeOracle) Copy() *AcmeOracle
- func (v *AcmeOracle) CopyAsInterface() interface{}
- func (v *AcmeOracle) Equal(u *AcmeOracle) bool
- func (v *AcmeOracle) IsValid() error
- func (v *AcmeOracle) MarshalBinary() ([]byte, error)
- func (v *AcmeOracle) UnmarshalBinary(data []byte) error
- func (v *AcmeOracle) UnmarshalBinaryFrom(rd io.Reader) error
- type AddAccountAuthorityOperation
- func (v *AddAccountAuthorityOperation) Copy() *AddAccountAuthorityOperation
- func (v *AddAccountAuthorityOperation) CopyAsInterface() interface{}
- func (v *AddAccountAuthorityOperation) Equal(u *AddAccountAuthorityOperation) bool
- func (v *AddAccountAuthorityOperation) IsValid() error
- func (v *AddAccountAuthorityOperation) MarshalBinary() ([]byte, error)
- func (v *AddAccountAuthorityOperation) MarshalJSON() ([]byte, error)
- func (*AddAccountAuthorityOperation) Type() AccountAuthOperationType
- func (v *AddAccountAuthorityOperation) UnmarshalBinary(data []byte) error
- func (v *AddAccountAuthorityOperation) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AddAccountAuthorityOperation) UnmarshalJSON(data []byte) error
- type AddCredits
- func (v *AddCredits) Copy() *AddCredits
- func (v *AddCredits) CopyAsInterface() interface{}
- func (v *AddCredits) Equal(u *AddCredits) bool
- 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 AddCreditsResult
- func (v *AddCreditsResult) Copy() *AddCreditsResult
- func (v *AddCreditsResult) CopyAsInterface() interface{}
- func (v *AddCreditsResult) Equal(u *AddCreditsResult) bool
- func (v *AddCreditsResult) IsValid() error
- func (v *AddCreditsResult) MarshalBinary() ([]byte, error)
- func (v *AddCreditsResult) MarshalJSON() ([]byte, error)
- func (*AddCreditsResult) Type() TransactionType
- func (v *AddCreditsResult) UnmarshalBinary(data []byte) error
- func (v *AddCreditsResult) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AddCreditsResult) UnmarshalJSON(data []byte) error
- type AddKeyOperation
- func (v *AddKeyOperation) Copy() *AddKeyOperation
- func (v *AddKeyOperation) CopyAsInterface() interface{}
- func (v *AddKeyOperation) Equal(u *AddKeyOperation) bool
- func (v *AddKeyOperation) IsValid() error
- func (v *AddKeyOperation) MarshalBinary() ([]byte, error)
- func (v *AddKeyOperation) MarshalJSON() ([]byte, error)
- func (*AddKeyOperation) Type() KeyPageOperationType
- func (v *AddKeyOperation) UnmarshalBinary(data []byte) error
- func (v *AddKeyOperation) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AddKeyOperation) UnmarshalJSON(data []byte) error
- type AddValidator
- func (v *AddValidator) Copy() *AddValidator
- func (v *AddValidator) CopyAsInterface() interface{}
- func (v *AddValidator) Equal(u *AddValidator) bool
- func (v *AddValidator) IsValid() error
- func (v *AddValidator) MarshalBinary() ([]byte, error)
- func (v *AddValidator) MarshalJSON() ([]byte, error)
- func (*AddValidator) Type() TransactionType
- func (v *AddValidator) UnmarshalBinary(data []byte) error
- func (v *AddValidator) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AddValidator) UnmarshalJSON(data []byte) error
- type AllowedTransactionBit
- func (v AllowedTransactionBit) GetEnumValue() uint64
- func (v AllowedTransactionBit) MarshalJSON() ([]byte, error)
- func (bit AllowedTransactionBit) Mask() AllowedTransactions
- func (v *AllowedTransactionBit) SetEnumValue(id uint64) bool
- func (v AllowedTransactionBit) String() string
- func (v *AllowedTransactionBit) UnmarshalJSON(data []byte) error
- type AllowedTransactions
- func (v *AllowedTransactions) Clear(bit AllowedTransactionBit)
- func (v AllowedTransactions) GetEnumValue() uint64
- func (v *AllowedTransactions) IsSet(bit AllowedTransactionBit) bool
- func (v *AllowedTransactions) Set(bit AllowedTransactionBit)
- func (v *AllowedTransactions) SetEnumValue(u uint64) bool
- type Anchor
- func (v *Anchor) Copy() *Anchor
- func (v *Anchor) CopyAsInterface() interface{}
- func (v *Anchor) Equal(u *Anchor) bool
- func (a *Anchor) GetAuth() *AccountAuth
- func (a *Anchor) GetUrl() *url.URL
- 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) Copy() *AnchorMetadata
- func (v *AnchorMetadata) CopyAsInterface() interface{}
- 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) Copy() *AnchoredRecord
- func (v *AnchoredRecord) CopyAsInterface() interface{}
- 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 Authority
- type AuthorityEntry
- func (v *AuthorityEntry) Copy() *AuthorityEntry
- func (v *AuthorityEntry) CopyAsInterface() interface{}
- func (v *AuthorityEntry) Equal(u *AuthorityEntry) bool
- func (v *AuthorityEntry) IsValid() error
- func (v *AuthorityEntry) MarshalBinary() ([]byte, error)
- func (v *AuthorityEntry) UnmarshalBinary(data []byte) error
- func (v *AuthorityEntry) UnmarshalBinaryFrom(rd io.Reader) error
- type BTCLegacySignature
- func (v *BTCLegacySignature) Copy() *BTCLegacySignature
- func (v *BTCLegacySignature) CopyAsInterface() interface{}
- func (v *BTCLegacySignature) Equal(u *BTCLegacySignature) bool
- func (s *BTCLegacySignature) GetPublicKey() []byte
- func (s *BTCLegacySignature) GetPublicKeyHash() []byte
- func (s *BTCLegacySignature) GetSignature() []byte
- func (s *BTCLegacySignature) GetSigner() *url.URL
- func (s *BTCLegacySignature) GetSignerVersion() uint64
- func (s *BTCLegacySignature) GetTimestamp() uint64
- func (s *BTCLegacySignature) GetTransactionHash() [32]byte
- func (s *BTCLegacySignature) GetVote() VoteType
- func (s *BTCLegacySignature) Hash() []byte
- func (s *BTCLegacySignature) InitiatorHash() ([]byte, error)
- func (v *BTCLegacySignature) IsValid() error
- func (v *BTCLegacySignature) MarshalBinary() ([]byte, error)
- func (v *BTCLegacySignature) MarshalJSON() ([]byte, error)
- func (s *BTCLegacySignature) MetadataHash() []byte
- func (*BTCLegacySignature) Type() SignatureType
- func (v *BTCLegacySignature) UnmarshalBinary(data []byte) error
- func (v *BTCLegacySignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *BTCLegacySignature) UnmarshalJSON(data []byte) error
- func (e *BTCLegacySignature) Verify(txnHash []byte) bool
- type BTCSignature
- func (v *BTCSignature) Copy() *BTCSignature
- func (v *BTCSignature) CopyAsInterface() interface{}
- func (v *BTCSignature) Equal(u *BTCSignature) bool
- func (s *BTCSignature) GetPublicKey() []byte
- func (s *BTCSignature) GetPublicKeyHash() []byte
- func (s *BTCSignature) GetSignature() []byte
- func (s *BTCSignature) GetSigner() *url.URL
- func (s *BTCSignature) GetSignerVersion() uint64
- func (s *BTCSignature) GetTimestamp() uint64
- func (s *BTCSignature) GetTransactionHash() [32]byte
- func (s *BTCSignature) GetVote() VoteType
- func (s *BTCSignature) Hash() []byte
- func (s *BTCSignature) InitiatorHash() ([]byte, error)
- func (v *BTCSignature) IsValid() error
- func (v *BTCSignature) MarshalBinary() ([]byte, error)
- func (v *BTCSignature) MarshalJSON() ([]byte, error)
- func (s *BTCSignature) MetadataHash() []byte
- func (*BTCSignature) Type() SignatureType
- func (v *BTCSignature) UnmarshalBinary(data []byte) error
- func (v *BTCSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *BTCSignature) UnmarshalJSON(data []byte) error
- func (e *BTCSignature) Verify(txnHash []byte) bool
- type BurnTokens
- func (v *BurnTokens) Copy() *BurnTokens
- func (v *BurnTokens) CopyAsInterface() interface{}
- func (v *BurnTokens) Equal(u *BurnTokens) bool
- 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
- func (v *ChainMetadata) Copy() *ChainMetadata
- func (v *ChainMetadata) CopyAsInterface() interface{}
- func (v *ChainMetadata) Equal(u *ChainMetadata) bool
- func (v *ChainMetadata) IsValid() error
- func (v *ChainMetadata) MarshalBinary() ([]byte, error)
- func (v *ChainMetadata) UnmarshalBinary(data []byte) error
- func (v *ChainMetadata) UnmarshalBinaryFrom(rd io.Reader) error
- type ChainParams
- func (v *ChainParams) Copy() *ChainParams
- func (v *ChainParams) CopyAsInterface() interface{}
- 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
- type CreateDataAccount
- func (v *CreateDataAccount) Copy() *CreateDataAccount
- func (v *CreateDataAccount) CopyAsInterface() interface{}
- func (v *CreateDataAccount) Equal(u *CreateDataAccount) bool
- 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) Copy() *CreateIdentity
- func (v *CreateIdentity) CopyAsInterface() interface{}
- func (v *CreateIdentity) Equal(u *CreateIdentity) bool
- 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) Copy() *CreateKeyBook
- func (v *CreateKeyBook) CopyAsInterface() interface{}
- func (v *CreateKeyBook) Equal(u *CreateKeyBook) bool
- 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) Copy() *CreateKeyPage
- func (v *CreateKeyPage) CopyAsInterface() interface{}
- func (v *CreateKeyPage) Equal(u *CreateKeyPage) bool
- 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) Copy() *CreateToken
- func (v *CreateToken) CopyAsInterface() interface{}
- func (v *CreateToken) Equal(u *CreateToken) bool
- 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) Copy() *CreateTokenAccount
- func (v *CreateTokenAccount) CopyAsInterface() interface{}
- func (v *CreateTokenAccount) Equal(u *CreateTokenAccount) bool
- 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 DataAccount
- func (v *DataAccount) Copy() *DataAccount
- func (v *DataAccount) CopyAsInterface() interface{}
- func (v *DataAccount) Equal(u *DataAccount) bool
- func (a *DataAccount) GetAuth() *AccountAuth
- func (a *DataAccount) GetUrl() *url.URL
- 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 (v *DataEntry) Copy() *DataEntry
- func (v *DataEntry) CopyAsInterface() interface{}
- func (e *DataEntry) Cost() (uint64, 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) Copy() *DirectoryIndexMetadata
- func (v *DirectoryIndexMetadata) CopyAsInterface() interface{}
- 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 DisableAccountAuthOperation
- func (v *DisableAccountAuthOperation) Copy() *DisableAccountAuthOperation
- func (v *DisableAccountAuthOperation) CopyAsInterface() interface{}
- func (v *DisableAccountAuthOperation) Equal(u *DisableAccountAuthOperation) bool
- func (v *DisableAccountAuthOperation) IsValid() error
- func (v *DisableAccountAuthOperation) MarshalBinary() ([]byte, error)
- func (v *DisableAccountAuthOperation) MarshalJSON() ([]byte, error)
- func (*DisableAccountAuthOperation) Type() AccountAuthOperationType
- func (v *DisableAccountAuthOperation) UnmarshalBinary(data []byte) error
- func (v *DisableAccountAuthOperation) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *DisableAccountAuthOperation) UnmarshalJSON(data []byte) error
- type ED25519Signature
- func (v *ED25519Signature) Copy() *ED25519Signature
- func (v *ED25519Signature) CopyAsInterface() interface{}
- func (v *ED25519Signature) Equal(u *ED25519Signature) bool
- func (s *ED25519Signature) GetPublicKey() []byte
- func (s *ED25519Signature) GetPublicKeyHash() []byte
- func (s *ED25519Signature) GetSignature() []byte
- func (s *ED25519Signature) GetSigner() *url.URL
- func (s *ED25519Signature) GetSignerVersion() uint64
- func (s *ED25519Signature) GetTimestamp() uint64
- func (s *ED25519Signature) GetTransactionHash() [32]byte
- func (s *ED25519Signature) GetVote() VoteType
- func (s *ED25519Signature) Hash() []byte
- func (s *ED25519Signature) InitiatorHash() ([]byte, error)
- func (v *ED25519Signature) IsValid() error
- func (v *ED25519Signature) MarshalBinary() ([]byte, error)
- func (v *ED25519Signature) MarshalJSON() ([]byte, error)
- func (s *ED25519Signature) MetadataHash() []byte
- 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(txnHash []byte) bool
- type ETHSignature
- func (v *ETHSignature) Copy() *ETHSignature
- func (v *ETHSignature) CopyAsInterface() interface{}
- func (v *ETHSignature) Equal(u *ETHSignature) bool
- func (s *ETHSignature) GetPublicKey() []byte
- func (s *ETHSignature) GetPublicKeyHash() []byte
- func (s *ETHSignature) GetSignature() []byte
- func (s *ETHSignature) GetSigner() *url.URL
- func (s *ETHSignature) GetSignerVersion() uint64
- func (s *ETHSignature) GetTimestamp() uint64
- func (s *ETHSignature) GetTransactionHash() [32]byte
- func (s *ETHSignature) GetVote() VoteType
- func (s *ETHSignature) Hash() []byte
- func (s *ETHSignature) InitiatorHash() ([]byte, error)
- func (v *ETHSignature) IsValid() error
- func (v *ETHSignature) MarshalBinary() ([]byte, error)
- func (v *ETHSignature) MarshalJSON() ([]byte, error)
- func (s *ETHSignature) MetadataHash() []byte
- func (*ETHSignature) Type() SignatureType
- func (v *ETHSignature) UnmarshalBinary(data []byte) error
- func (v *ETHSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ETHSignature) UnmarshalJSON(data []byte) error
- func (e *ETHSignature) Verify(txnHash []byte) bool
- type EmptyResult
- func (v *EmptyResult) Copy() *EmptyResult
- func (v *EmptyResult) CopyAsInterface() interface{}
- func (v *EmptyResult) Equal(u *EmptyResult) bool
- 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 EnableAccountAuthOperation
- func (v *EnableAccountAuthOperation) Copy() *EnableAccountAuthOperation
- func (v *EnableAccountAuthOperation) CopyAsInterface() interface{}
- func (v *EnableAccountAuthOperation) Equal(u *EnableAccountAuthOperation) bool
- func (v *EnableAccountAuthOperation) IsValid() error
- func (v *EnableAccountAuthOperation) MarshalBinary() ([]byte, error)
- func (v *EnableAccountAuthOperation) MarshalJSON() ([]byte, error)
- func (*EnableAccountAuthOperation) Type() AccountAuthOperationType
- func (v *EnableAccountAuthOperation) UnmarshalBinary(data []byte) error
- func (v *EnableAccountAuthOperation) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *EnableAccountAuthOperation) UnmarshalJSON(data []byte) error
- type Envelope
- func (v *Envelope) Copy() *Envelope
- func (v *Envelope) CopyAsInterface() interface{}
- func (v *Envelope) Equal(u *Envelope) bool
- 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
- type Error
- type ErrorCode
- type Fee
- type ForwardedSignature
- func (v *ForwardedSignature) Copy() *ForwardedSignature
- func (v *ForwardedSignature) CopyAsInterface() interface{}
- func (v *ForwardedSignature) Equal(u *ForwardedSignature) bool
- func (s *ForwardedSignature) GetPublicKey() []byte
- func (s *ForwardedSignature) GetPublicKeyHash() []byte
- func (s *ForwardedSignature) GetSignature() []byte
- func (s *ForwardedSignature) GetSigner() *url.URL
- func (s *ForwardedSignature) GetSignerVersion() uint64
- func (s *ForwardedSignature) GetTimestamp() uint64
- func (s *ForwardedSignature) GetTransactionHash() [32]byte
- func (s *ForwardedSignature) GetVote() VoteType
- func (s *ForwardedSignature) Hash() []byte
- func (s *ForwardedSignature) InitiatorHash() ([]byte, error)
- func (v *ForwardedSignature) IsValid() error
- func (v *ForwardedSignature) MarshalBinary() ([]byte, error)
- func (v *ForwardedSignature) MarshalJSON() ([]byte, error)
- func (s *ForwardedSignature) MetadataHash() []byte
- func (*ForwardedSignature) Type() SignatureType
- func (v *ForwardedSignature) UnmarshalBinary(data []byte) error
- func (v *ForwardedSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ForwardedSignature) UnmarshalJSON(data []byte) error
- func (s *ForwardedSignature) Verify(hash []byte) bool
- type FullAccount
- type HashSet
- func (s *HashSet) Add(hash [32]byte)
- func (v *HashSet) Copy() *HashSet
- func (v *HashSet) CopyAsInterface() interface{}
- func (v *HashSet) Equal(u *HashSet) bool
- func (v *HashSet) IsValid() error
- func (v *HashSet) MarshalBinary() ([]byte, error)
- func (v *HashSet) MarshalJSON() ([]byte, error)
- func (s *HashSet) Remove(hash [32]byte)
- func (v *HashSet) UnmarshalBinary(data []byte) error
- func (v *HashSet) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *HashSet) UnmarshalJSON(data []byte) error
- type IndexEntry
- func (v *IndexEntry) Copy() *IndexEntry
- func (v *IndexEntry) CopyAsInterface() interface{}
- func (v *IndexEntry) Equal(u *IndexEntry) bool
- func (v *IndexEntry) IsValid() error
- func (v *IndexEntry) MarshalBinary() ([]byte, error)
- func (v *IndexEntry) UnmarshalBinary(data []byte) error
- func (v *IndexEntry) UnmarshalBinaryFrom(rd io.Reader) error
- type InternalGenesis
- func (v *InternalGenesis) Copy() *InternalGenesis
- func (v *InternalGenesis) CopyAsInterface() interface{}
- func (v *InternalGenesis) Equal(u *InternalGenesis) bool
- 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) Copy() *InternalLedger
- func (v *InternalLedger) CopyAsInterface() interface{}
- func (v *InternalLedger) Equal(u *InternalLedger) bool
- func (a *InternalLedger) GetAuth() *AccountAuth
- func (a *InternalLedger) GetUrl() *url.URL
- 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 (v *InternalSendTransactions) Copy() *InternalSendTransactions
- func (v *InternalSendTransactions) CopyAsInterface() interface{}
- func (v *InternalSendTransactions) Equal(u *InternalSendTransactions) bool
- 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 InternalSignature
- func (v *InternalSignature) Copy() *InternalSignature
- func (v *InternalSignature) CopyAsInterface() interface{}
- func (v *InternalSignature) Equal(u *InternalSignature) bool
- func (s *InternalSignature) GetPublicKeyHash() []byte
- func (s *InternalSignature) GetSignature() []byte
- func (s *InternalSignature) GetSigner() *url.URL
- func (s *InternalSignature) GetSignerVersion() uint64
- func (s *InternalSignature) GetTimestamp() uint64
- func (s *InternalSignature) GetTransactionHash() [32]byte
- func (s *InternalSignature) GetVote() VoteType
- func (s *InternalSignature) Hash() []byte
- func (s *InternalSignature) InitiatorHash() ([]byte, error)
- func (v *InternalSignature) IsValid() error
- func (v *InternalSignature) MarshalBinary() ([]byte, error)
- func (v *InternalSignature) MarshalJSON() ([]byte, error)
- func (s *InternalSignature) MetadataHash() []byte
- func (*InternalSignature) Type() SignatureType
- func (v *InternalSignature) UnmarshalBinary(data []byte) error
- func (v *InternalSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *InternalSignature) UnmarshalJSON(data []byte) error
- func (s *InternalSignature) Verify(hash []byte) bool
- type InternalSyntheticLedger
- func (v *InternalSyntheticLedger) Copy() *InternalSyntheticLedger
- func (v *InternalSyntheticLedger) CopyAsInterface() interface{}
- func (v *InternalSyntheticLedger) Equal(u *InternalSyntheticLedger) bool
- func (a *InternalSyntheticLedger) GetAuth() *AccountAuth
- func (a *InternalSyntheticLedger) GetUrl() *url.URL
- func (v *InternalSyntheticLedger) IsValid() error
- func (v *InternalSyntheticLedger) MarshalBinary() ([]byte, error)
- func (v *InternalSyntheticLedger) MarshalJSON() ([]byte, error)
- func (*InternalSyntheticLedger) Type() AccountType
- func (v *InternalSyntheticLedger) UnmarshalBinary(data []byte) error
- func (v *InternalSyntheticLedger) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *InternalSyntheticLedger) UnmarshalJSON(data []byte) error
- type InternalTransactionsSent
- func (v *InternalTransactionsSent) Copy() *InternalTransactionsSent
- func (v *InternalTransactionsSent) CopyAsInterface() interface{}
- func (v *InternalTransactionsSent) Equal(u *InternalTransactionsSent) bool
- 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) Copy() *InternalTransactionsSigned
- func (v *InternalTransactionsSigned) CopyAsInterface() interface{}
- func (v *InternalTransactionsSigned) Equal(u *InternalTransactionsSigned) bool
- 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) Copy() *IssueTokens
- func (v *IssueTokens) CopyAsInterface() interface{}
- func (v *IssueTokens) Equal(u *IssueTokens) bool
- 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) Copy() *KeyBook
- func (v *KeyBook) CopyAsInterface() interface{}
- func (v *KeyBook) Equal(u *KeyBook) bool
- func (a *KeyBook) GetAuth() *AccountAuth
- func (b *KeyBook) GetSigners() []*url.URL
- func (a *KeyBook) GetUrl() *url.URL
- 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 KeyEntry
- type KeyPage
- func (page *KeyPage) CanDebitCredits(amount uint64) bool
- func (v *KeyPage) Copy() *KeyPage
- func (v *KeyPage) CopyAsInterface() interface{}
- func (page *KeyPage) CreditCredits(amount uint64)
- func (page *KeyPage) DebitCredits(amount uint64) bool
- func (p *KeyPage) EntryByKey(key []byte) (int, KeyEntry, bool)
- func (p *KeyPage) EntryByKeyHash(keyHash []byte) (int, KeyEntry, bool)
- func (p *KeyPage) EntryByOwner(owner *url.URL) (int, *KeySpec, bool)
- func (v *KeyPage) Equal(u *KeyPage) bool
- func (ms *KeyPage) FindKey(pubKey []byte) *KeySpec
- func (page *KeyPage) GetCreditBalance() uint64
- func (ms *KeyPage) GetMofN() (m, n uint64)
- func (p *KeyPage) GetSignatureThreshold() uint64
- func (a *KeyPage) GetUrl() *url.URL
- func (p *KeyPage) GetVersion() uint64
- func (v *KeyPage) IsValid() error
- func (a *KeyPage) KeyBook() *url.URL
- func (v *KeyPage) MarshalBinary() ([]byte, error)
- func (v *KeyPage) MarshalJSON() ([]byte, 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
- type KeyPageOperationType
- type KeySignature
- type KeySpec
- func (v *KeySpec) Copy() *KeySpec
- func (v *KeySpec) CopyAsInterface() interface{}
- func (v *KeySpec) Equal(u *KeySpec) bool
- func (k *KeySpec) GetLastUsedOn() uint64
- func (v *KeySpec) IsValid() error
- func (v *KeySpec) MarshalBinary() ([]byte, error)
- func (v *KeySpec) MarshalJSON() ([]byte, error)
- func (k *KeySpec) SetLastUsedOn(timestamp uint64)
- 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) Copy() *KeySpecParams
- func (v *KeySpecParams) CopyAsInterface() interface{}
- func (v *KeySpecParams) Equal(u *KeySpecParams) bool
- func (k *KeySpecParams) IsEmpty() 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) Copy() *LegacyED25519Signature
- func (v *LegacyED25519Signature) CopyAsInterface() interface{}
- func (v *LegacyED25519Signature) Equal(u *LegacyED25519Signature) bool
- func (s *LegacyED25519Signature) GetPublicKey() []byte
- func (s *LegacyED25519Signature) GetPublicKeyHash() []byte
- func (s *LegacyED25519Signature) GetSignature() []byte
- func (s *LegacyED25519Signature) GetSigner() *url.URL
- func (s *LegacyED25519Signature) GetSignerVersion() uint64
- func (s *LegacyED25519Signature) GetTimestamp() uint64
- func (s *LegacyED25519Signature) GetTransactionHash() [32]byte
- func (s *LegacyED25519Signature) GetVote() VoteType
- func (s *LegacyED25519Signature) Hash() []byte
- func (s *LegacyED25519Signature) InitiatorHash() ([]byte, error)
- func (v *LegacyED25519Signature) IsValid() error
- func (v *LegacyED25519Signature) MarshalBinary() ([]byte, error)
- func (v *LegacyED25519Signature) MarshalJSON() ([]byte, error)
- func (s *LegacyED25519Signature) MetadataHash() []byte
- 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(txnHash []byte) bool
- type LiteDataAccount
- func (c *LiteDataAccount) AccountId() ([]byte, error)
- func (v *LiteDataAccount) Copy() *LiteDataAccount
- func (v *LiteDataAccount) CopyAsInterface() interface{}
- func (v *LiteDataAccount) Equal(u *LiteDataAccount) bool
- func (a *LiteDataAccount) GetUrl() *url.URL
- 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) Copy() *LiteIdentity
- func (v *LiteIdentity) CopyAsInterface() interface{}
- func (v *LiteIdentity) Equal(u *LiteIdentity) bool
- func (a *LiteIdentity) GetUrl() *url.URL
- 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) CanDebitCredits(amount uint64) bool
- func (acct *LiteTokenAccount) CanDebitTokens(amount *big.Int) bool
- func (v *LiteTokenAccount) Copy() *LiteTokenAccount
- func (v *LiteTokenAccount) CopyAsInterface() interface{}
- 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 (l *LiteTokenAccount) EntryByKey(key []byte) (int, KeyEntry, bool)
- func (l *LiteTokenAccount) EntryByKeyHash(keyHash []byte) (int, KeyEntry, bool)
- func (v *LiteTokenAccount) Equal(u *LiteTokenAccount) bool
- func (acct *LiteTokenAccount) GetCreditBalance() uint64
- func (l *LiteTokenAccount) GetLastUsedOn() uint64
- func (*LiteTokenAccount) GetSignatureThreshold() uint64
- func (l *LiteTokenAccount) GetSigners() []*url.URL
- func (acct *LiteTokenAccount) GetTokenUrl() *url.URL
- func (a *LiteTokenAccount) GetUrl() *url.URL
- func (*LiteTokenAccount) GetVersion() uint64
- func (v *LiteTokenAccount) IsValid() error
- func (v *LiteTokenAccount) MarshalBinary() ([]byte, error)
- func (v *LiteTokenAccount) MarshalJSON() ([]byte, error)
- func (l *LiteTokenAccount) SetLastUsedOn(timestamp uint64)
- 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) Copy() *MetricsRequest
- func (v *MetricsRequest) CopyAsInterface() interface{}
- 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) AddChain(name string, typ ChainType) error
- func (o *Object) ChainType(name string) ChainType
- func (v *Object) Copy() *Object
- func (v *Object) CopyAsInterface() interface{}
- 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 ObjectType
- type RCD
- type RCD1Signature
- func (v *RCD1Signature) Copy() *RCD1Signature
- func (v *RCD1Signature) CopyAsInterface() interface{}
- func (v *RCD1Signature) Equal(u *RCD1Signature) bool
- func (s *RCD1Signature) GetPublicKey() []byte
- func (s *RCD1Signature) GetPublicKeyHash() []byte
- func (s *RCD1Signature) GetSignature() []byte
- func (s *RCD1Signature) GetSigner() *url.URL
- func (s *RCD1Signature) GetSignerVersion() uint64
- func (s *RCD1Signature) GetTimestamp() uint64
- func (s *RCD1Signature) GetTransactionHash() [32]byte
- func (s *RCD1Signature) GetVote() VoteType
- func (s *RCD1Signature) Hash() []byte
- func (s *RCD1Signature) InitiatorHash() ([]byte, error)
- func (v *RCD1Signature) IsValid() error
- func (v *RCD1Signature) MarshalBinary() ([]byte, error)
- func (v *RCD1Signature) MarshalJSON() ([]byte, error)
- func (s *RCD1Signature) MetadataHash() []byte
- func (*RCD1Signature) Type() SignatureType
- func (v *RCD1Signature) UnmarshalBinary(data []byte) error
- func (v *RCD1Signature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *RCD1Signature) UnmarshalJSON(data []byte) error
- func (e *RCD1Signature) Verify(txnHash []byte) bool
- type Receipt
- func (r *Receipt) Convert() *managed.Receipt
- func (v *Receipt) Copy() *Receipt
- func (v *Receipt) CopyAsInterface() interface{}
- 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) Copy() *ReceiptEntry
- func (v *ReceiptEntry) CopyAsInterface() interface{}
- 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 ReceiptSignature
- func (v *ReceiptSignature) Copy() *ReceiptSignature
- func (v *ReceiptSignature) CopyAsInterface() interface{}
- func (v *ReceiptSignature) Equal(u *ReceiptSignature) bool
- func (s *ReceiptSignature) GetPublicKeyHash() []byte
- func (s *ReceiptSignature) GetSignature() []byte
- func (s *ReceiptSignature) GetSigner() *url.URL
- func (s *ReceiptSignature) GetSignerVersion() uint64
- func (s *ReceiptSignature) GetTimestamp() uint64
- func (s *ReceiptSignature) GetTransactionHash() [32]byte
- func (s *ReceiptSignature) GetVote() VoteType
- func (s *ReceiptSignature) Hash() []byte
- func (s *ReceiptSignature) InitiatorHash() ([]byte, error)
- func (v *ReceiptSignature) IsValid() error
- func (v *ReceiptSignature) MarshalBinary() ([]byte, error)
- func (v *ReceiptSignature) MarshalJSON() ([]byte, error)
- func (s *ReceiptSignature) MetadataHash() []byte
- func (*ReceiptSignature) Type() SignatureType
- func (v *ReceiptSignature) UnmarshalBinary(data []byte) error
- func (v *ReceiptSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ReceiptSignature) UnmarshalJSON(data []byte) error
- func (s *ReceiptSignature) Verify(hash []byte) bool
- type RemoteTransaction
- func (v *RemoteTransaction) Copy() *RemoteTransaction
- func (v *RemoteTransaction) CopyAsInterface() interface{}
- func (v *RemoteTransaction) Equal(u *RemoteTransaction) bool
- func (v *RemoteTransaction) IsValid() error
- func (v *RemoteTransaction) MarshalBinary() ([]byte, error)
- func (v *RemoteTransaction) MarshalJSON() ([]byte, error)
- func (*RemoteTransaction) Type() TransactionType
- func (v *RemoteTransaction) UnmarshalBinary(data []byte) error
- func (v *RemoteTransaction) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *RemoteTransaction) UnmarshalJSON(data []byte) error
- type RemoveAccountAuthorityOperation
- func (v *RemoveAccountAuthorityOperation) Copy() *RemoveAccountAuthorityOperation
- func (v *RemoveAccountAuthorityOperation) CopyAsInterface() interface{}
- func (v *RemoveAccountAuthorityOperation) Equal(u *RemoveAccountAuthorityOperation) bool
- func (v *RemoveAccountAuthorityOperation) IsValid() error
- func (v *RemoveAccountAuthorityOperation) MarshalBinary() ([]byte, error)
- func (v *RemoveAccountAuthorityOperation) MarshalJSON() ([]byte, error)
- func (*RemoveAccountAuthorityOperation) Type() AccountAuthOperationType
- func (v *RemoveAccountAuthorityOperation) UnmarshalBinary(data []byte) error
- func (v *RemoveAccountAuthorityOperation) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *RemoveAccountAuthorityOperation) UnmarshalJSON(data []byte) error
- type RemoveKeyOperation
- func (v *RemoveKeyOperation) Copy() *RemoveKeyOperation
- func (v *RemoveKeyOperation) CopyAsInterface() interface{}
- func (v *RemoveKeyOperation) Equal(u *RemoveKeyOperation) bool
- func (v *RemoveKeyOperation) IsValid() error
- func (v *RemoveKeyOperation) MarshalBinary() ([]byte, error)
- func (v *RemoveKeyOperation) MarshalJSON() ([]byte, error)
- func (*RemoveKeyOperation) Type() KeyPageOperationType
- func (v *RemoveKeyOperation) UnmarshalBinary(data []byte) error
- func (v *RemoveKeyOperation) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *RemoveKeyOperation) UnmarshalJSON(data []byte) error
- type RemoveValidator
- func (v *RemoveValidator) Copy() *RemoveValidator
- func (v *RemoveValidator) CopyAsInterface() interface{}
- func (v *RemoveValidator) Equal(u *RemoveValidator) bool
- func (v *RemoveValidator) IsValid() error
- func (v *RemoveValidator) MarshalBinary() ([]byte, error)
- func (v *RemoveValidator) MarshalJSON() ([]byte, error)
- func (*RemoveValidator) Type() TransactionType
- func (v *RemoveValidator) UnmarshalBinary(data []byte) error
- func (v *RemoveValidator) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *RemoveValidator) UnmarshalJSON(data []byte) error
- type SegWitDataEntry
- func (v *SegWitDataEntry) Copy() *SegWitDataEntry
- func (v *SegWitDataEntry) CopyAsInterface() interface{}
- func (v *SegWitDataEntry) Equal(u *SegWitDataEntry) bool
- func (tx *SegWitDataEntry) GetCause() [32]byte
- 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) Copy() *SendTokens
- func (v *SendTokens) CopyAsInterface() interface{}
- func (v *SendTokens) Equal(u *SendTokens) bool
- 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) Copy() *SendTransaction
- func (v *SendTransaction) CopyAsInterface() interface{}
- func (v *SendTransaction) Equal(u *SendTransaction) bool
- 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 SetThresholdKeyPageOperation
- func (v *SetThresholdKeyPageOperation) Copy() *SetThresholdKeyPageOperation
- func (v *SetThresholdKeyPageOperation) CopyAsInterface() interface{}
- func (v *SetThresholdKeyPageOperation) Equal(u *SetThresholdKeyPageOperation) bool
- func (v *SetThresholdKeyPageOperation) IsValid() error
- func (v *SetThresholdKeyPageOperation) MarshalBinary() ([]byte, error)
- func (v *SetThresholdKeyPageOperation) MarshalJSON() ([]byte, error)
- func (*SetThresholdKeyPageOperation) Type() KeyPageOperationType
- func (v *SetThresholdKeyPageOperation) UnmarshalBinary(data []byte) error
- func (v *SetThresholdKeyPageOperation) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SetThresholdKeyPageOperation) UnmarshalJSON(data []byte) error
- type Signature
- type SignatureType
- type Signer
- type SynthTxnWithOrigin
- type SyntheticAnchor
- func (v *SyntheticAnchor) Copy() *SyntheticAnchor
- func (v *SyntheticAnchor) CopyAsInterface() interface{}
- func (v *SyntheticAnchor) Equal(u *SyntheticAnchor) bool
- 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) Copy() *SyntheticBurnTokens
- func (v *SyntheticBurnTokens) CopyAsInterface() interface{}
- func (v *SyntheticBurnTokens) Equal(u *SyntheticBurnTokens) bool
- func (tx *SyntheticBurnTokens) GetCause() [32]byte
- 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 (v *SyntheticCreateChain) Copy() *SyntheticCreateChain
- func (v *SyntheticCreateChain) CopyAsInterface() interface{}
- func (tx *SyntheticCreateChain) Create(chains ...Account) error
- func (v *SyntheticCreateChain) Equal(u *SyntheticCreateChain) bool
- func (tx *SyntheticCreateChain) GetCause() [32]byte
- 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) Copy() *SyntheticDepositCredits
- func (v *SyntheticDepositCredits) CopyAsInterface() interface{}
- func (v *SyntheticDepositCredits) Equal(u *SyntheticDepositCredits) bool
- func (tx *SyntheticDepositCredits) GetCause() [32]byte
- 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) Copy() *SyntheticDepositTokens
- func (v *SyntheticDepositTokens) CopyAsInterface() interface{}
- func (v *SyntheticDepositTokens) Equal(u *SyntheticDepositTokens) bool
- func (tx *SyntheticDepositTokens) GetCause() [32]byte
- 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 SyntheticForwardTransaction
- func (v *SyntheticForwardTransaction) Copy() *SyntheticForwardTransaction
- func (v *SyntheticForwardTransaction) CopyAsInterface() interface{}
- func (v *SyntheticForwardTransaction) Equal(u *SyntheticForwardTransaction) bool
- func (v *SyntheticForwardTransaction) IsValid() error
- func (v *SyntheticForwardTransaction) MarshalBinary() ([]byte, error)
- func (v *SyntheticForwardTransaction) MarshalJSON() ([]byte, error)
- func (*SyntheticForwardTransaction) Type() TransactionType
- func (v *SyntheticForwardTransaction) UnmarshalBinary(data []byte) error
- func (v *SyntheticForwardTransaction) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticForwardTransaction) UnmarshalJSON(data []byte) error
- type SyntheticLedger
- func (v *SyntheticLedger) Copy() *SyntheticLedger
- func (v *SyntheticLedger) CopyAsInterface() interface{}
- 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 SyntheticLedgerEntry
- func (v *SyntheticLedgerEntry) Copy() *SyntheticLedgerEntry
- func (v *SyntheticLedgerEntry) CopyAsInterface() interface{}
- func (v *SyntheticLedgerEntry) Equal(u *SyntheticLedgerEntry) bool
- func (v *SyntheticLedgerEntry) IsValid() error
- func (v *SyntheticLedgerEntry) MarshalBinary() ([]byte, error)
- func (v *SyntheticLedgerEntry) MarshalJSON() ([]byte, error)
- func (v *SyntheticLedgerEntry) UnmarshalBinary(data []byte) error
- func (v *SyntheticLedgerEntry) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticLedgerEntry) UnmarshalJSON(data []byte) error
- type SyntheticMirror
- func (v *SyntheticMirror) Copy() *SyntheticMirror
- func (v *SyntheticMirror) CopyAsInterface() interface{}
- func (v *SyntheticMirror) Equal(u *SyntheticMirror) bool
- 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 SyntheticOrigin
- func (v *SyntheticOrigin) Copy() *SyntheticOrigin
- func (v *SyntheticOrigin) CopyAsInterface() interface{}
- func (v *SyntheticOrigin) Equal(u *SyntheticOrigin) bool
- func (so *SyntheticOrigin) GetSyntheticOrigin() (cause []byte, source *url.URL)
- func (v *SyntheticOrigin) IsValid() error
- func (v *SyntheticOrigin) MarshalBinary() ([]byte, error)
- func (v *SyntheticOrigin) MarshalJSON() ([]byte, error)
- func (so *SyntheticOrigin) SetSyntheticOrigin(cause []byte, source *url.URL)
- func (v *SyntheticOrigin) UnmarshalBinary(data []byte) error
- func (v *SyntheticOrigin) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticOrigin) UnmarshalJSON(data []byte) error
- type SyntheticReceipt
- func (v *SyntheticReceipt) Copy() *SyntheticReceipt
- func (v *SyntheticReceipt) CopyAsInterface() interface{}
- func (v *SyntheticReceipt) Equal(u *SyntheticReceipt) bool
- func (v *SyntheticReceipt) IsValid() error
- func (v *SyntheticReceipt) MarshalBinary() ([]byte, error)
- func (v *SyntheticReceipt) MarshalJSON() ([]byte, error)
- func (*SyntheticReceipt) Type() TransactionType
- func (v *SyntheticReceipt) UnmarshalBinary(data []byte) error
- func (v *SyntheticReceipt) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticReceipt) UnmarshalJSON(data []byte) error
- type SyntheticSignature
- func (v *SyntheticSignature) Copy() *SyntheticSignature
- func (v *SyntheticSignature) CopyAsInterface() interface{}
- func (v *SyntheticSignature) Equal(u *SyntheticSignature) bool
- func (s *SyntheticSignature) GetPublicKeyHash() []byte
- func (s *SyntheticSignature) GetSignature() []byte
- func (s *SyntheticSignature) GetSigner() *url.URL
- func (s *SyntheticSignature) GetSignerVersion() uint64
- func (s *SyntheticSignature) GetTimestamp() uint64
- func (s *SyntheticSignature) GetTransactionHash() [32]byte
- func (s *SyntheticSignature) GetVote() VoteType
- func (s *SyntheticSignature) Hash() []byte
- func (s *SyntheticSignature) InitiatorHash() ([]byte, error)
- func (v *SyntheticSignature) IsValid() error
- func (v *SyntheticSignature) MarshalBinary() ([]byte, error)
- func (v *SyntheticSignature) MarshalJSON() ([]byte, error)
- func (s *SyntheticSignature) MetadataHash() []byte
- func (*SyntheticSignature) Type() SignatureType
- func (v *SyntheticSignature) UnmarshalBinary(data []byte) error
- func (v *SyntheticSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticSignature) UnmarshalJSON(data []byte) error
- func (s *SyntheticSignature) Verify(hash []byte) bool
- type SyntheticTransaction
- type SyntheticWriteData
- func (v *SyntheticWriteData) Copy() *SyntheticWriteData
- func (v *SyntheticWriteData) CopyAsInterface() interface{}
- func (v *SyntheticWriteData) Equal(u *SyntheticWriteData) bool
- func (tx *SyntheticWriteData) GetCause() [32]byte
- 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 (v *TokenAccount) Copy() *TokenAccount
- func (v *TokenAccount) CopyAsInterface() interface{}
- func (acct *TokenAccount) CreditTokens(amount *big.Int) bool
- func (acct *TokenAccount) DebitTokens(amount *big.Int) bool
- func (v *TokenAccount) Equal(u *TokenAccount) bool
- func (a *TokenAccount) GetAuth() *AccountAuth
- func (acct *TokenAccount) GetTokenUrl() *url.URL
- func (a *TokenAccount) GetUrl() *url.URL
- func (v *TokenAccount) IsValid() error
- func (v *TokenAccount) MarshalBinary() ([]byte, error)
- func (v *TokenAccount) MarshalJSON() ([]byte, error)
- 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 TokenIssuer
- func (v *TokenIssuer) Copy() *TokenIssuer
- func (v *TokenIssuer) CopyAsInterface() interface{}
- func (v *TokenIssuer) Equal(u *TokenIssuer) bool
- func (a *TokenIssuer) GetAuth() *AccountAuth
- func (a *TokenIssuer) GetUrl() *url.URL
- 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) Copy() *TokenRecipient
- func (v *TokenRecipient) CopyAsInterface() interface{}
- 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) Copy() *Transaction
- func (v *Transaction) CopyAsInterface() interface{}
- func (v *Transaction) Equal(u *Transaction) bool
- func (t *Transaction) GetHash() []byte
- func (v *Transaction) IsValid() error
- func (v *Transaction) MarshalBinary() ([]byte, error)
- func (v *Transaction) MarshalJSON() ([]byte, error)
- func (t *Transaction) SetHash(hash []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
- type TransactionHeader
- func (v *TransactionHeader) Copy() *TransactionHeader
- func (v *TransactionHeader) CopyAsInterface() interface{}
- func (v *TransactionHeader) Equal(u *TransactionHeader) bool
- func (v *TransactionHeader) IsValid() error
- func (v *TransactionHeader) MarshalBinary() ([]byte, error)
- func (v *TransactionHeader) MarshalJSON() ([]byte, error)
- func (v *TransactionHeader) UnmarshalBinary(data []byte) error
- func (v *TransactionHeader) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TransactionHeader) UnmarshalJSON(data []byte) error
- type TransactionMax
- 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 TransactionResultSet
- func (v *TransactionResultSet) Copy() *TransactionResultSet
- func (v *TransactionResultSet) CopyAsInterface() interface{}
- func (v *TransactionResultSet) Equal(u *TransactionResultSet) bool
- func (v *TransactionResultSet) IsValid() error
- func (v *TransactionResultSet) MarshalBinary() ([]byte, error)
- func (v *TransactionResultSet) MarshalJSON() ([]byte, error)
- func (v *TransactionResultSet) UnmarshalBinary(data []byte) error
- func (v *TransactionResultSet) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TransactionResultSet) UnmarshalJSON(data []byte) error
- type TransactionSignature
- func (v *TransactionSignature) Copy() *TransactionSignature
- func (v *TransactionSignature) CopyAsInterface() interface{}
- 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 TransactionStatus
- func (s *TransactionStatus) AddSigner(signer Signer)
- func (v *TransactionStatus) Copy() *TransactionStatus
- func (v *TransactionStatus) CopyAsInterface() interface{}
- func (v *TransactionStatus) Equal(u *TransactionStatus) bool
- func (s *TransactionStatus) FindSigners(authority *url.URL) []Signer
- func (s *TransactionStatus) GetSigner(entry *url.URL) (Signer, 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 (typ TransactionType) AllowedTransactionBit() (AllowedTransactionBit, bool)
- func (v TransactionType) GetEnumValue() uint64
- func (t TransactionType) IsInternal() bool
- func (t TransactionType) IsSynthetic() bool
- func (t TransactionType) IsUser() bool
- func (v TransactionType) MarshalJSON() ([]byte, error)
- func (typ TransactionType) RequireAuthorization() bool
- func (v *TransactionType) SetEnumValue(id uint64) bool
- func (v TransactionType) String() string
- func (v *TransactionType) UnmarshalJSON(data []byte) error
- type UnknownAccount
- func (v *UnknownAccount) Copy() *UnknownAccount
- func (v *UnknownAccount) CopyAsInterface() interface{}
- func (v *UnknownAccount) Equal(u *UnknownAccount) bool
- func (a *UnknownAccount) GetUrl() *url.URL
- func (v *UnknownAccount) IsValid() error
- func (v *UnknownAccount) MarshalBinary() ([]byte, error)
- func (v *UnknownAccount) MarshalJSON() ([]byte, error)
- func (*UnknownAccount) Type() AccountType
- func (v *UnknownAccount) UnmarshalBinary(data []byte) error
- func (v *UnknownAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UnknownAccount) UnmarshalJSON(data []byte) error
- type UnknownSigner
- func (*UnknownSigner) CanDebitCredits(amount uint64) bool
- func (v *UnknownSigner) Copy() *UnknownSigner
- func (v *UnknownSigner) CopyAsInterface() interface{}
- func (*UnknownSigner) CreditCredits(amount uint64)
- func (*UnknownSigner) DebitCredits(amount uint64) bool
- func (*UnknownSigner) EntryByKey(key []byte) (int, KeyEntry, bool)
- func (*UnknownSigner) EntryByKeyHash(keyHash []byte) (int, KeyEntry, bool)
- func (v *UnknownSigner) Equal(u *UnknownSigner) bool
- func (*UnknownSigner) GetCreditBalance() uint64
- func (*UnknownSigner) GetSignatureThreshold() uint64
- func (s *UnknownSigner) GetUrl() *url.URL
- func (s *UnknownSigner) GetVersion() uint64
- func (v *UnknownSigner) IsValid() error
- func (v *UnknownSigner) MarshalBinary() ([]byte, error)
- func (v *UnknownSigner) MarshalJSON() ([]byte, error)
- func (*UnknownSigner) Type() AccountType
- func (v *UnknownSigner) UnmarshalBinary(data []byte) error
- func (v *UnknownSigner) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UnknownSigner) UnmarshalJSON(data []byte) error
- type UpdateAccountAuth
- func (v *UpdateAccountAuth) Copy() *UpdateAccountAuth
- func (v *UpdateAccountAuth) CopyAsInterface() interface{}
- func (v *UpdateAccountAuth) Equal(u *UpdateAccountAuth) bool
- func (v *UpdateAccountAuth) IsValid() error
- func (v *UpdateAccountAuth) MarshalBinary() ([]byte, error)
- func (v *UpdateAccountAuth) MarshalJSON() ([]byte, error)
- func (*UpdateAccountAuth) Type() TransactionType
- func (v *UpdateAccountAuth) UnmarshalBinary(data []byte) error
- func (v *UpdateAccountAuth) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UpdateAccountAuth) UnmarshalJSON(data []byte) error
- type UpdateAllowedKeyPageOperation
- func (v *UpdateAllowedKeyPageOperation) Copy() *UpdateAllowedKeyPageOperation
- func (v *UpdateAllowedKeyPageOperation) CopyAsInterface() interface{}
- func (v *UpdateAllowedKeyPageOperation) Equal(u *UpdateAllowedKeyPageOperation) bool
- func (v *UpdateAllowedKeyPageOperation) IsValid() error
- func (v *UpdateAllowedKeyPageOperation) MarshalBinary() ([]byte, error)
- func (v *UpdateAllowedKeyPageOperation) MarshalJSON() ([]byte, error)
- func (*UpdateAllowedKeyPageOperation) Type() KeyPageOperationType
- func (v *UpdateAllowedKeyPageOperation) UnmarshalBinary(data []byte) error
- func (v *UpdateAllowedKeyPageOperation) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UpdateAllowedKeyPageOperation) UnmarshalJSON(data []byte) error
- type UpdateKey
- func (v *UpdateKey) Copy() *UpdateKey
- func (v *UpdateKey) CopyAsInterface() interface{}
- func (v *UpdateKey) Equal(u *UpdateKey) bool
- func (v *UpdateKey) IsValid() error
- func (v *UpdateKey) MarshalBinary() ([]byte, error)
- func (v *UpdateKey) MarshalJSON() ([]byte, error)
- func (*UpdateKey) Type() TransactionType
- func (v *UpdateKey) UnmarshalBinary(data []byte) error
- func (v *UpdateKey) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UpdateKey) UnmarshalJSON(data []byte) error
- type UpdateKeyOperation
- func (v *UpdateKeyOperation) Copy() *UpdateKeyOperation
- func (v *UpdateKeyOperation) CopyAsInterface() interface{}
- func (v *UpdateKeyOperation) Equal(u *UpdateKeyOperation) bool
- func (v *UpdateKeyOperation) IsValid() error
- func (v *UpdateKeyOperation) MarshalBinary() ([]byte, error)
- func (v *UpdateKeyOperation) MarshalJSON() ([]byte, error)
- func (*UpdateKeyOperation) Type() KeyPageOperationType
- func (v *UpdateKeyOperation) UnmarshalBinary(data []byte) error
- func (v *UpdateKeyOperation) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UpdateKeyOperation) UnmarshalJSON(data []byte) error
- type UpdateKeyPage
- func (v *UpdateKeyPage) Copy() *UpdateKeyPage
- func (v *UpdateKeyPage) CopyAsInterface() interface{}
- func (v *UpdateKeyPage) Equal(u *UpdateKeyPage) bool
- 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 UpdateValidatorKey
- func (v *UpdateValidatorKey) Copy() *UpdateValidatorKey
- func (v *UpdateValidatorKey) CopyAsInterface() interface{}
- func (v *UpdateValidatorKey) Equal(u *UpdateValidatorKey) bool
- func (v *UpdateValidatorKey) IsValid() error
- func (v *UpdateValidatorKey) MarshalBinary() ([]byte, error)
- func (v *UpdateValidatorKey) MarshalJSON() ([]byte, error)
- func (*UpdateValidatorKey) Type() TransactionType
- func (v *UpdateValidatorKey) UnmarshalBinary(data []byte) error
- func (v *UpdateValidatorKey) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UpdateValidatorKey) UnmarshalJSON(data []byte) error
- type VoteType
- type WriteData
- func (v *WriteData) Copy() *WriteData
- func (v *WriteData) CopyAsInterface() interface{}
- func (v *WriteData) Equal(u *WriteData) bool
- 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) Copy() *WriteDataResult
- func (v *WriteDataResult) CopyAsInterface() interface{}
- func (v *WriteDataResult) Equal(u *WriteDataResult) bool
- 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) Copy() *WriteDataTo
- func (v *WriteDataTo) CopyAsInterface() interface{}
- func (v *WriteDataTo) Equal(u *WriteDataTo) bool
- 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" // SyntheticLedgerPath is the path to a node's internal synthetic transaction ledger. SyntheticLedgerPath = "synth-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" // SignatureChain is the pending signature chain of a record. SignatureChain = "signature" // 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" // DefaultKeyBook is the default key book name when not specified DefaultKeyBook = "book0" // GenesisBlock is the block index of the first block. GenesisBlock = 1 // ValidatorMofNFactor is the factor of how many of the validator signatures are required respective of their total number ValidatorMofNFactor = 2.0 / 3.0 )
Well known strings
const AcmeFaucetAmount = 2_000_000
const AcmeFaucetBalance = "314159265358979323846264338327950288419716939937510582097494459"
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 AcmePrecisionPower = 8
const AcmeSupplyLimit = 500_000_000
AcmeSupplyLimit set at 500,000,000.00000000 million acme (external units)
const CreditPrecision = 1e2
CreditPrecision is the precision of credit balances.
const CreditPrecisionPower = 2
const CreditUnitsPerFiatUnit = CreditsPerDollar * CreditPrecision
CreditUnitsPerFiatUnit 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 CreditsPerDollar = 1e2
CreditsPerDollar is the credits per dollar in external units (100.00)
const InitialAcmeOracle = 0.05
InitialAcmeOracle is the oracle value at launch.
const InitialAcmeOracleValue = InitialAcmeOracle * AcmeOraclePrecision
InitialAcmeOracleValue exists because golanglint-ci is dumb.
const IsTestNet = true
const LiteEntryHeaderSize = 1 + 32 + 2 // total len
LiteEntryHeaderSize is the exact length of an Entry header.
const LiteEntryMaxTotalSize = TransactionSizeMax + LiteEntryHeaderSize
LiteEntryMaxTotalSize is the maximum encoded length of an Entry.
const SignatureSizeMax = 1024
const TransactionSizeMax = 10240
Variables ¶
var ErrCannotInitiate = errors.New("signature cannot initiate a transaction: values are missing")
var ErrNotEnoughData = encoding.ErrNotEnoughData
var ErrOverflow = encoding.ErrOverflow
var Faucet faucet
var FaucetUrl = liteTokenAddress(Faucet.PublicKey(), AcmeUrl(), SignatureTypeED25519)
var PriceOracleAuthority = PriceOracle().String()
Functions ¶
func AnchorChain ¶ added in v0.5.1
AnchorChain returns the name of the intermediate anchor chain for the given subnet.
func BTCaddress ¶ added in v0.6.0
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 ETHaddress ¶ added in v0.6.0
func FormatAmount ¶ added in v0.5.1
FormatAmount formats a fixed point amount.
func FormatBigAmount ¶ added in v0.5.1
FormatBigAmount formats a fixed point amount.
func FormatKeyPageUrl ¶ added in v0.5.1
FormatKeyPageUrl constructs the URL of a key page from the URL of its key book and the page index. For example, the URL for the first page of id/book is id/book/1.
func GetFactoidAddressFromRCDHash ¶ added in v0.6.0
func GetFactoidAddressRcdHashPkeyFromPrivateFs ¶ added in v0.6.0
this function takes in the Factoid Private Key Fs and returns Factoid Address FA, RCDHash ,privatekey(64bits),error
func GetFactoidSecretFromPrivKey ¶ added in v0.6.0
func GetLiteAccountFromFactoidAddress ¶ added in v0.5.1
func GetRCDFromFactoidAddress ¶ added in v0.5.1
func GetRCDHashFromPublicKey ¶ added in v0.5.1
func GetValidatorsMOfN ¶ added in v0.6.0
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 ¶
func LiteTokenAddress(pubKey []byte, tokenUrlStr string, signatureType SignatureType) (*url.URL, error)
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 LiteTokenAddressFromHash ¶ added in v0.6.0
func NewValidator ¶
func NewValidator() (*validator.Validate, error)
func ParseAnchorChain ¶ added in v0.5.1
ParseBvnUrl extracts the subnet name from a intermediate anchor chain name.
func ParseBvnUrl ¶
ParseBvnUrl extracts the BVN subnet name from a BVN URL, if the URL is a valid BVN ADI URL.
func ParseKeyPageUrl ¶ added in v0.5.1
ParseKeyPageUrl parses a key page URL, returning the key book URL and the page number. If the URL does not represent a key page, the last return value is false. ParseKeyPageUrl is the inverse of FormatKeyPageUrl.
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.
func SECP256K1Keypair ¶ added in v0.6.0
generates privatekey and compressed public key
func SECP256K1UncompressedKeypair ¶ added in v0.6.0
generates privatekey and Un-compressed public key
func SignBTC ¶ added in v0.6.0
func SignBTC(sig *BTCSignature, privateKey, txnHash []byte)
func SignBTCLegacy ¶ added in v0.6.0
func SignBTCLegacy(sig *BTCLegacySignature, privateKey, txnHash []byte)
func SignED25519 ¶ added in v0.5.1
func SignED25519(sig *ED25519Signature, privateKey, txnHash []byte)
func SignETH ¶ added in v0.6.0
func SignETH(sig *ETHSignature, privateKey, txnHash []byte)
func SignLegacyED25519 ¶ added in v0.5.1
func SignLegacyED25519(sig *LegacyED25519Signature, privateKey, txnHash []byte)
func SignRCD1 ¶ added in v0.5.1
func SignRCD1(sig *RCD1Signature, privateKey, txnHash []byte)
func SignatureDidInitiate ¶ added in v0.6.0
Types ¶
type ADI ¶
type ADI struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` AccountAuth // contains filtered or unexported fields }
func (*ADI) CopyAsInterface ¶ added in v0.5.1
func (v *ADI) CopyAsInterface() interface{}
func (*ADI) GetAuth ¶ added in v0.6.0
func (a *ADI) GetAuth() *AccountAuth
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 Type() AccountType GetUrl() *url.URL }
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 AccountAuth ¶ added in v0.6.0
type AccountAuth struct { Authorities []AuthorityEntry `json:"authorities,omitempty" form:"authorities" query:"authorities" validate:"required"` // contains filtered or unexported fields }
func (*AccountAuth) AddAuthority ¶ added in v0.6.0
func (a *AccountAuth) AddAuthority(entry *url.URL) *AuthorityEntry
func (*AccountAuth) AuthDisabled ¶ added in v0.6.0
func (a *AccountAuth) AuthDisabled() bool
func (*AccountAuth) Copy ¶ added in v0.6.0
func (v *AccountAuth) Copy() *AccountAuth
func (*AccountAuth) CopyAsInterface ¶ added in v0.6.0
func (v *AccountAuth) CopyAsInterface() interface{}
func (*AccountAuth) Equal ¶ added in v0.6.0
func (v *AccountAuth) Equal(u *AccountAuth) bool
func (*AccountAuth) GetAuthority ¶ added in v0.6.0
func (a *AccountAuth) GetAuthority(entry *url.URL) (*AuthorityEntry, bool)
func (*AccountAuth) IsValid ¶ added in v0.6.0
func (v *AccountAuth) IsValid() error
func (*AccountAuth) KeyBook ¶ added in v0.6.0
func (a *AccountAuth) KeyBook() *url.URL
func (*AccountAuth) ManagerKeyBook ¶ added in v0.6.0
func (a *AccountAuth) ManagerKeyBook() *url.URL
func (*AccountAuth) MarshalBinary ¶ added in v0.6.0
func (v *AccountAuth) MarshalBinary() ([]byte, error)
func (*AccountAuth) MarshalJSON ¶ added in v0.6.0
func (v *AccountAuth) MarshalJSON() ([]byte, error)
func (*AccountAuth) RemoveAuthority ¶ added in v0.6.0
func (a *AccountAuth) RemoveAuthority(entry *url.URL) bool
func (*AccountAuth) UnmarshalBinary ¶ added in v0.6.0
func (v *AccountAuth) UnmarshalBinary(data []byte) error
func (*AccountAuth) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *AccountAuth) UnmarshalBinaryFrom(rd io.Reader) error
func (*AccountAuth) UnmarshalJSON ¶ added in v0.6.0
func (v *AccountAuth) UnmarshalJSON(data []byte) error
type AccountAuthOperation ¶ added in v0.6.0
type AccountAuthOperation interface { Type() AccountAuthOperationType encoding.BinaryValue }
func NewAccountAuthOperation ¶ added in v0.6.0
func NewAccountAuthOperation(typ AccountAuthOperationType) (AccountAuthOperation, error)
NewAccountAuthOperation creates a new AccountAuthOperation for the specified AccountAuthOperationType.
func UnmarshalAccountAuthOperation ¶ added in v0.6.0
func UnmarshalAccountAuthOperation(data []byte) (AccountAuthOperation, error)
UnmarshalAccountAuthOperation unmarshals a AccountAuthOperation.
func UnmarshalAccountAuthOperationFrom ¶ added in v0.6.0
func UnmarshalAccountAuthOperationFrom(rd io.ReadSeeker) (AccountAuthOperation, error)
UnmarshalAccountAuthOperationFrom unmarshals a AccountAuthOperation.
func UnmarshalAccountAuthOperationJSON ¶ added in v0.6.0
func UnmarshalAccountAuthOperationJSON(data []byte) (AccountAuthOperation, error)
UnmarshalAccountAuthOperationJson unmarshals a AccountAuthOperation.
type AccountAuthOperationType ¶ added in v0.6.0
type AccountAuthOperationType uint8
AccountAuthOperationType is the operation type of an UpdateAccountAuth operation.
const AccountAuthOperationTypeAddAuthority AccountAuthOperationType = 3
AccountAuthOperationTypeAddAuthority adds an authority.
const AccountAuthOperationTypeDisable AccountAuthOperationType = 2
AccountAuthOperationTypeDisable disables authorization checks for an authority.
const AccountAuthOperationTypeEnable AccountAuthOperationType = 1
AccountAuthOperationTypeEnable enables authorization checks for an authority.
const AccountAuthOperationTypeRemoveAuthority AccountAuthOperationType = 4
AccountAuthOperationTypeRemoveAuthority removes an authority.
const AccountAuthOperationTypeUnknown AccountAuthOperationType = 0
AccountAuthOperationTypeUnknown is used when the authorization operation is not known.
func AccountAuthOperationTypeByName ¶ added in v0.6.0
func AccountAuthOperationTypeByName(name string) (AccountAuthOperationType, bool)
AccountAuthOperationTypeByName returns the named Account Auth Operation Type.
func UnmarshalAccountAuthOperationType ¶ added in v0.6.0
func UnmarshalAccountAuthOperationType(r io.Reader) (AccountAuthOperationType, error)
UnmarshalAccountAuthOperationType unmarshals the AccountAuthOperationType from the start of a AccountAuthOperation.
func (AccountAuthOperationType) GetEnumValue ¶ added in v0.6.0
func (v AccountAuthOperationType) GetEnumValue() uint64
GetEnumValue returns the value of the Account Auth Operation Type
func (AccountAuthOperationType) MarshalJSON ¶ added in v0.6.0
func (v AccountAuthOperationType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Account Auth Operation Type to JSON as a string.
func (*AccountAuthOperationType) SetEnumValue ¶ added in v0.6.0
func (v *AccountAuthOperationType) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (AccountAuthOperationType) String ¶ added in v0.6.0
func (v AccountAuthOperationType) String() string
String returns the name of the Account Auth Operation Type
func (*AccountAuthOperationType) UnmarshalJSON ¶ added in v0.6.0
func (v *AccountAuthOperationType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Account Auth Operation Type from JSON as a string.
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 AccountTypeInternalSyntheticLedger AccountType = 16
AccountTypeInternalSyntheticLedger is a ledger that tracks the status of unsent synthetic transactions.
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 AccountTypeTokenAccount AccountType = 4
AccountTypeTokenAccount is an ADI Token Account.
const AccountTypeTokenIssuer AccountType = 3
AccountTypeTokenIssuer is a Token Issuer account.
const AccountTypeUnknown AccountType = 0
AccountTypeUnknown represents an unknown account type.
const AccountTypeUnknownSigner AccountType = 13
AccountTypeUnknownSigner represents an unknown signer account.
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) GetEnumValue ¶ added in v0.5.1
func (v AccountType) GetEnumValue() uint64
GetEnumValue returns the value of the Account Type
func (AccountType) MarshalJSON ¶
func (v AccountType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Account Type to JSON as a string.
func (*AccountType) SetEnumValue ¶ added in v0.5.1
func (v *AccountType) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue 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) UnmarshalJSON ¶
func (v *AccountType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Account Type from JSON as a string.
type AccountWithCredits ¶ added in v0.6.0
type AccountWithTokens ¶ added in v0.6.0
type AcmeFaucet ¶
type AcmeFaucet struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` // contains filtered or unexported fields }
func (*AcmeFaucet) Copy ¶ added in v0.5.1
func (v *AcmeFaucet) Copy() *AcmeFaucet
func (*AcmeFaucet) CopyAsInterface ¶ added in v0.5.1
func (v *AcmeFaucet) CopyAsInterface() interface{}
func (*AcmeFaucet) Equal ¶
func (v *AcmeFaucet) Equal(u *AcmeFaucet) bool
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) Copy ¶ added in v0.5.1
func (v *AcmeOracle) Copy() *AcmeOracle
func (*AcmeOracle) CopyAsInterface ¶ added in v0.5.1
func (v *AcmeOracle) CopyAsInterface() interface{}
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 AddAccountAuthorityOperation ¶ added in v0.6.0
type AddAccountAuthorityOperation struct { // Authority is the authority to add. Authority *url.URL `json:"authority,omitempty" form:"authority" query:"authority" validate:"required"` // contains filtered or unexported fields }
func (*AddAccountAuthorityOperation) Copy ¶ added in v0.6.0
func (v *AddAccountAuthorityOperation) Copy() *AddAccountAuthorityOperation
func (*AddAccountAuthorityOperation) CopyAsInterface ¶ added in v0.6.0
func (v *AddAccountAuthorityOperation) CopyAsInterface() interface{}
func (*AddAccountAuthorityOperation) Equal ¶ added in v0.6.0
func (v *AddAccountAuthorityOperation) Equal(u *AddAccountAuthorityOperation) bool
func (*AddAccountAuthorityOperation) IsValid ¶ added in v0.6.0
func (v *AddAccountAuthorityOperation) IsValid() error
func (*AddAccountAuthorityOperation) MarshalBinary ¶ added in v0.6.0
func (v *AddAccountAuthorityOperation) MarshalBinary() ([]byte, error)
func (*AddAccountAuthorityOperation) MarshalJSON ¶ added in v0.6.0
func (v *AddAccountAuthorityOperation) MarshalJSON() ([]byte, error)
func (*AddAccountAuthorityOperation) Type ¶ added in v0.6.0
func (*AddAccountAuthorityOperation) Type() AccountAuthOperationType
func (*AddAccountAuthorityOperation) UnmarshalBinary ¶ added in v0.6.0
func (v *AddAccountAuthorityOperation) UnmarshalBinary(data []byte) error
func (*AddAccountAuthorityOperation) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *AddAccountAuthorityOperation) UnmarshalBinaryFrom(rd io.Reader) error
func (*AddAccountAuthorityOperation) UnmarshalJSON ¶ added in v0.6.0
func (v *AddAccountAuthorityOperation) UnmarshalJSON(data []byte) error
type AddCredits ¶
type AddCredits 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"` Oracle uint64 `json:"oracle,omitempty" form:"oracle" query:"oracle"` // contains filtered or unexported fields }
func (*AddCredits) Copy ¶ added in v0.5.1
func (v *AddCredits) Copy() *AddCredits
func (*AddCredits) CopyAsInterface ¶ added in v0.5.1
func (v *AddCredits) CopyAsInterface() interface{}
func (*AddCredits) Equal ¶
func (v *AddCredits) Equal(u *AddCredits) bool
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 AddCreditsResult ¶ added in v0.5.1
type AddCreditsResult struct { Amount big.Int `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` Credits uint64 `json:"credits,omitempty" form:"credits" query:"credits" validate:"required"` Oracle uint64 `json:"oracle,omitempty" form:"oracle" query:"oracle" validate:"required"` // contains filtered or unexported fields }
func (*AddCreditsResult) Copy ¶ added in v0.5.1
func (v *AddCreditsResult) Copy() *AddCreditsResult
func (*AddCreditsResult) CopyAsInterface ¶ added in v0.5.1
func (v *AddCreditsResult) CopyAsInterface() interface{}
func (*AddCreditsResult) Equal ¶ added in v0.5.1
func (v *AddCreditsResult) Equal(u *AddCreditsResult) bool
func (*AddCreditsResult) IsValid ¶ added in v0.5.1
func (v *AddCreditsResult) IsValid() error
func (*AddCreditsResult) MarshalBinary ¶ added in v0.5.1
func (v *AddCreditsResult) MarshalBinary() ([]byte, error)
func (*AddCreditsResult) MarshalJSON ¶ added in v0.5.1
func (v *AddCreditsResult) MarshalJSON() ([]byte, error)
func (*AddCreditsResult) Type ¶ added in v0.5.1
func (*AddCreditsResult) Type() TransactionType
func (*AddCreditsResult) UnmarshalBinary ¶ added in v0.5.1
func (v *AddCreditsResult) UnmarshalBinary(data []byte) error
func (*AddCreditsResult) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *AddCreditsResult) UnmarshalBinaryFrom(rd io.Reader) error
func (*AddCreditsResult) UnmarshalJSON ¶ added in v0.5.1
func (v *AddCreditsResult) UnmarshalJSON(data []byte) error
type AddKeyOperation ¶ added in v0.5.1
type AddKeyOperation struct { Entry KeySpecParams `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` // contains filtered or unexported fields }
func (*AddKeyOperation) Copy ¶ added in v0.5.1
func (v *AddKeyOperation) Copy() *AddKeyOperation
func (*AddKeyOperation) CopyAsInterface ¶ added in v0.5.1
func (v *AddKeyOperation) CopyAsInterface() interface{}
func (*AddKeyOperation) Equal ¶ added in v0.5.1
func (v *AddKeyOperation) Equal(u *AddKeyOperation) bool
func (*AddKeyOperation) IsValid ¶ added in v0.5.1
func (v *AddKeyOperation) IsValid() error
func (*AddKeyOperation) MarshalBinary ¶ added in v0.5.1
func (v *AddKeyOperation) MarshalBinary() ([]byte, error)
func (*AddKeyOperation) MarshalJSON ¶ added in v0.5.1
func (v *AddKeyOperation) MarshalJSON() ([]byte, error)
func (*AddKeyOperation) Type ¶ added in v0.5.1
func (*AddKeyOperation) Type() KeyPageOperationType
func (*AddKeyOperation) UnmarshalBinary ¶ added in v0.5.1
func (v *AddKeyOperation) UnmarshalBinary(data []byte) error
func (*AddKeyOperation) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *AddKeyOperation) UnmarshalBinaryFrom(rd io.Reader) error
func (*AddKeyOperation) UnmarshalJSON ¶ added in v0.5.1
func (v *AddKeyOperation) UnmarshalJSON(data []byte) error
type AddValidator ¶ added in v0.5.1
type AddValidator struct { PubKey []byte `json:"pubKey,omitempty" form:"pubKey" query:"pubKey" validate:"required"` // Owner reserved for future use. Owner *url.URL `json:"owner,omitempty" form:"owner" query:"owner"` // contains filtered or unexported fields }
func (*AddValidator) Copy ¶ added in v0.5.1
func (v *AddValidator) Copy() *AddValidator
func (*AddValidator) CopyAsInterface ¶ added in v0.5.1
func (v *AddValidator) CopyAsInterface() interface{}
func (*AddValidator) Equal ¶ added in v0.5.1
func (v *AddValidator) Equal(u *AddValidator) bool
func (*AddValidator) IsValid ¶ added in v0.5.1
func (v *AddValidator) IsValid() error
func (*AddValidator) MarshalBinary ¶ added in v0.5.1
func (v *AddValidator) MarshalBinary() ([]byte, error)
func (*AddValidator) MarshalJSON ¶ added in v0.5.1
func (v *AddValidator) MarshalJSON() ([]byte, error)
func (*AddValidator) Type ¶ added in v0.5.1
func (*AddValidator) Type() TransactionType
func (*AddValidator) UnmarshalBinary ¶ added in v0.5.1
func (v *AddValidator) UnmarshalBinary(data []byte) error
func (*AddValidator) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *AddValidator) UnmarshalBinaryFrom(rd io.Reader) error
func (*AddValidator) UnmarshalJSON ¶ added in v0.5.1
func (v *AddValidator) UnmarshalJSON(data []byte) error
type AllowedTransactionBit ¶ added in v0.5.1
type AllowedTransactionBit uint8
const AllowedTransactionBitUpdateAccountAuth AllowedTransactionBit = 2
AllowedTransactionBitUpdateAccountAuth is the offset of the UpdateAccountAuth bit.
const AllowedTransactionBitUpdateKeyPage AllowedTransactionBit = 1
AllowedTransactionBitUpdateKeyPage is the offset of the UpdateKeyPage bit.
func AllowedTransactionBitByName ¶ added in v0.5.1
func AllowedTransactionBitByName(name string) (AllowedTransactionBit, bool)
AllowedTransactionBitByName returns the named Allowed Transaction Bit.
func (AllowedTransactionBit) GetEnumValue ¶ added in v0.5.1
func (v AllowedTransactionBit) GetEnumValue() uint64
GetEnumValue returns the value of the Allowed Transaction Bit
func (AllowedTransactionBit) MarshalJSON ¶ added in v0.5.1
func (v AllowedTransactionBit) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Allowed Transaction Bit to JSON as a string.
func (AllowedTransactionBit) Mask ¶ added in v0.5.1
func (bit AllowedTransactionBit) Mask() AllowedTransactions
Mask returns the bit mask.
func (*AllowedTransactionBit) SetEnumValue ¶ added in v0.5.1
func (v *AllowedTransactionBit) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (AllowedTransactionBit) String ¶ added in v0.5.1
func (v AllowedTransactionBit) String() string
String returns the name of the Allowed Transaction Bit
func (*AllowedTransactionBit) UnmarshalJSON ¶ added in v0.5.1
func (v *AllowedTransactionBit) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Allowed Transaction Bit from JSON as a string.
type AllowedTransactions ¶ added in v0.5.1
type AllowedTransactions uint64
func (*AllowedTransactions) Clear ¶ added in v0.5.1
func (v *AllowedTransactions) Clear(bit AllowedTransactionBit)
Clear sets the bit to 0.
func (AllowedTransactions) GetEnumValue ¶ added in v0.5.1
func (v AllowedTransactions) GetEnumValue() uint64
GetEnumValue implements the enumeration encoding interface.
func (*AllowedTransactions) IsSet ¶ added in v0.5.1
func (v *AllowedTransactions) IsSet(bit AllowedTransactionBit) bool
IsSet returns true if the bit is set.
func (*AllowedTransactions) Set ¶ added in v0.5.1
func (v *AllowedTransactions) Set(bit AllowedTransactionBit)
Set sets the bit to 1.
func (*AllowedTransactions) SetEnumValue ¶ added in v0.5.1
func (v *AllowedTransactions) SetEnumValue(u uint64) bool
SetEnumValue implements the enumeration encoding interface.
type Anchor ¶
type Anchor struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` AccountAuth // contains filtered or unexported fields }
func (*Anchor) CopyAsInterface ¶ added in v0.5.1
func (v *Anchor) CopyAsInterface() interface{}
func (*Anchor) GetAuth ¶ added in v0.6.0
func (a *Anchor) GetAuth() *AccountAuth
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) Copy ¶ added in v0.5.1
func (v *AnchorMetadata) Copy() *AnchorMetadata
func (*AnchorMetadata) CopyAsInterface ¶ added in v0.5.1
func (v *AnchorMetadata) CopyAsInterface() interface{}
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) Copy ¶ added in v0.5.1
func (v *AnchoredRecord) Copy() *AnchoredRecord
func (*AnchoredRecord) CopyAsInterface ¶ added in v0.5.1
func (v *AnchoredRecord) CopyAsInterface() interface{}
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 AuthorityEntry ¶ added in v0.6.0
type AuthorityEntry struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` // Disabled disables auth checks for this authority, allowing anyone to sign for it. Disabled bool `json:"disabled,omitempty" form:"disabled" query:"disabled" validate:"required"` // contains filtered or unexported fields }
func (*AuthorityEntry) Copy ¶ added in v0.6.0
func (v *AuthorityEntry) Copy() *AuthorityEntry
func (*AuthorityEntry) CopyAsInterface ¶ added in v0.6.0
func (v *AuthorityEntry) CopyAsInterface() interface{}
func (*AuthorityEntry) Equal ¶ added in v0.6.0
func (v *AuthorityEntry) Equal(u *AuthorityEntry) bool
func (*AuthorityEntry) IsValid ¶ added in v0.6.0
func (v *AuthorityEntry) IsValid() error
func (*AuthorityEntry) MarshalBinary ¶ added in v0.6.0
func (v *AuthorityEntry) MarshalBinary() ([]byte, error)
func (*AuthorityEntry) UnmarshalBinary ¶ added in v0.6.0
func (v *AuthorityEntry) UnmarshalBinary(data []byte) error
func (*AuthorityEntry) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *AuthorityEntry) UnmarshalBinaryFrom(rd io.Reader) error
type BTCLegacySignature ¶ added in v0.6.0
type BTCLegacySignature struct { PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` Signature []byte `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` Signer *url.URL `json:"signer,omitempty" form:"signer" query:"signer" validate:"required"` SignerVersion uint64 `json:"signerVersion,omitempty" form:"signerVersion" query:"signerVersion" validate:"required"` Timestamp uint64 `json:"timestamp,omitempty" form:"timestamp" query:"timestamp"` Vote VoteType `json:"vote,omitempty" form:"vote" query:"vote"` TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash"` // contains filtered or unexported fields }
func (*BTCLegacySignature) Copy ¶ added in v0.6.0
func (v *BTCLegacySignature) Copy() *BTCLegacySignature
func (*BTCLegacySignature) CopyAsInterface ¶ added in v0.6.0
func (v *BTCLegacySignature) CopyAsInterface() interface{}
func (*BTCLegacySignature) Equal ¶ added in v0.6.0
func (v *BTCLegacySignature) Equal(u *BTCLegacySignature) bool
func (*BTCLegacySignature) GetPublicKey ¶ added in v0.6.0
func (s *BTCLegacySignature) GetPublicKey() []byte
GetPublicKey returns PublicKey.
func (*BTCLegacySignature) GetPublicKeyHash ¶ added in v0.6.0
func (s *BTCLegacySignature) GetPublicKeyHash() []byte
GetPublicKeyHash returns the hash of PublicKey.
func (*BTCLegacySignature) GetSignature ¶ added in v0.6.0
func (s *BTCLegacySignature) GetSignature() []byte
GetSignature returns Signature.
func (*BTCLegacySignature) GetSigner ¶ added in v0.6.0
func (s *BTCLegacySignature) GetSigner() *url.URL
GetSigner returns Signer.
func (*BTCLegacySignature) GetSignerVersion ¶ added in v0.6.0
func (s *BTCLegacySignature) GetSignerVersion() uint64
GetSignerVersion returns SignerVersion.
func (*BTCLegacySignature) GetTimestamp ¶ added in v0.6.0
func (s *BTCLegacySignature) GetTimestamp() uint64
GetTimestamp returns Timestamp.
func (*BTCLegacySignature) GetTransactionHash ¶ added in v0.6.0
func (s *BTCLegacySignature) GetTransactionHash() [32]byte
GetTransactionHash returns TransactionHash.
func (*BTCLegacySignature) GetVote ¶ added in v0.6.0
func (s *BTCLegacySignature) GetVote() VoteType
GetVote returns how the signer votes on a particular transaction
func (*BTCLegacySignature) Hash ¶ added in v0.6.0
func (s *BTCLegacySignature) Hash() []byte
Hash returns the hash of the signature.
func (*BTCLegacySignature) InitiatorHash ¶
func (s *BTCLegacySignature) InitiatorHash() ([]byte, error)
InitiatorHash calculates the Merkle hash of the signature.
func (*BTCLegacySignature) IsValid ¶ added in v0.6.0
func (v *BTCLegacySignature) IsValid() error
func (*BTCLegacySignature) MarshalBinary ¶ added in v0.6.0
func (v *BTCLegacySignature) MarshalBinary() ([]byte, error)
func (*BTCLegacySignature) MarshalJSON ¶ added in v0.6.0
func (v *BTCLegacySignature) MarshalJSON() ([]byte, error)
func (*BTCLegacySignature) MetadataHash ¶
func (s *BTCLegacySignature) MetadataHash() []byte
MetadataHash hashes the signature metadata.
func (*BTCLegacySignature) Type ¶ added in v0.6.0
func (*BTCLegacySignature) Type() SignatureType
func (*BTCLegacySignature) UnmarshalBinary ¶ added in v0.6.0
func (v *BTCLegacySignature) UnmarshalBinary(data []byte) error
func (*BTCLegacySignature) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *BTCLegacySignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*BTCLegacySignature) UnmarshalJSON ¶ added in v0.6.0
func (v *BTCLegacySignature) UnmarshalJSON(data []byte) error
func (*BTCLegacySignature) Verify ¶ added in v0.6.0
func (e *BTCLegacySignature) Verify(txnHash []byte) bool
Verify returns true if this signature is a valid SECP256K1 signature of the hash.
type BTCSignature ¶ added in v0.6.0
type BTCSignature struct { PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` Signature []byte `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` Signer *url.URL `json:"signer,omitempty" form:"signer" query:"signer" validate:"required"` SignerVersion uint64 `json:"signerVersion,omitempty" form:"signerVersion" query:"signerVersion" validate:"required"` Timestamp uint64 `json:"timestamp,omitempty" form:"timestamp" query:"timestamp"` Vote VoteType `json:"vote,omitempty" form:"vote" query:"vote"` TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash"` // contains filtered or unexported fields }
func (*BTCSignature) Copy ¶ added in v0.6.0
func (v *BTCSignature) Copy() *BTCSignature
func (*BTCSignature) CopyAsInterface ¶ added in v0.6.0
func (v *BTCSignature) CopyAsInterface() interface{}
func (*BTCSignature) Equal ¶ added in v0.6.0
func (v *BTCSignature) Equal(u *BTCSignature) bool
func (*BTCSignature) GetPublicKey ¶ added in v0.6.0
func (s *BTCSignature) GetPublicKey() []byte
GetPublicKey returns PublicKey.
func (*BTCSignature) GetPublicKeyHash ¶ added in v0.6.0
func (s *BTCSignature) GetPublicKeyHash() []byte
GetPublicKeyHash returns the hash of PublicKey.
func (*BTCSignature) GetSignature ¶ added in v0.6.0
func (s *BTCSignature) GetSignature() []byte
GetSignature returns Signature.
func (*BTCSignature) GetSigner ¶ added in v0.6.0
func (s *BTCSignature) GetSigner() *url.URL
GetSigner returns Signer.
func (*BTCSignature) GetSignerVersion ¶ added in v0.6.0
func (s *BTCSignature) GetSignerVersion() uint64
GetSignerVersion returns SignerVersion.
func (*BTCSignature) GetTimestamp ¶ added in v0.6.0
func (s *BTCSignature) GetTimestamp() uint64
GetTimestamp returns Timestamp.
func (*BTCSignature) GetTransactionHash ¶ added in v0.6.0
func (s *BTCSignature) GetTransactionHash() [32]byte
GetTransactionHash returns TransactionHash.
func (*BTCSignature) GetVote ¶ added in v0.6.0
func (s *BTCSignature) GetVote() VoteType
GetVote returns how the signer votes on a particular transaction
func (*BTCSignature) Hash ¶ added in v0.6.0
func (s *BTCSignature) Hash() []byte
Hash returns the hash of the signature.
func (*BTCSignature) InitiatorHash ¶
func (s *BTCSignature) InitiatorHash() ([]byte, error)
InitiatorHash calculates the Merkle hash of the signature.
func (*BTCSignature) IsValid ¶ added in v0.6.0
func (v *BTCSignature) IsValid() error
func (*BTCSignature) MarshalBinary ¶ added in v0.6.0
func (v *BTCSignature) MarshalBinary() ([]byte, error)
func (*BTCSignature) MarshalJSON ¶ added in v0.6.0
func (v *BTCSignature) MarshalJSON() ([]byte, error)
func (*BTCSignature) MetadataHash ¶
func (s *BTCSignature) MetadataHash() []byte
MetadataHash hashes the signature metadata.
func (*BTCSignature) Type ¶ added in v0.6.0
func (*BTCSignature) Type() SignatureType
func (*BTCSignature) UnmarshalBinary ¶ added in v0.6.0
func (v *BTCSignature) UnmarshalBinary(data []byte) error
func (*BTCSignature) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *BTCSignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*BTCSignature) UnmarshalJSON ¶ added in v0.6.0
func (v *BTCSignature) UnmarshalJSON(data []byte) error
func (*BTCSignature) Verify ¶ added in v0.6.0
func (e *BTCSignature) Verify(txnHash []byte) bool
Verify returns true if this signature is a valid SECP256K1 signature of the hash.
type BurnTokens ¶
type BurnTokens struct { Amount big.Int `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*BurnTokens) Copy ¶ added in v0.5.1
func (v *BurnTokens) Copy() *BurnTokens
func (*BurnTokens) CopyAsInterface ¶ added in v0.5.1
func (v *BurnTokens) CopyAsInterface() interface{}
func (*BurnTokens) Equal ¶
func (v *BurnTokens) Equal(u *BurnTokens) bool
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) Copy ¶ added in v0.5.1
func (v *ChainMetadata) Copy() *ChainMetadata
func (*ChainMetadata) CopyAsInterface ¶ added in v0.5.1
func (v *ChainMetadata) CopyAsInterface() interface{}
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) Copy ¶ added in v0.5.1
func (v *ChainParams) Copy() *ChainParams
func (*ChainParams) CopyAsInterface ¶ added in v0.5.1
func (v *ChainParams) CopyAsInterface() interface{}
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) GetEnumValue ¶ added in v0.5.1
GetEnumValue returns the value of the Chain Type
func (ChainType) MarshalJSON ¶
MarshalJSON marshals the Chain Type to JSON as a string.
func (*ChainType) SetEnumValue ¶ added in v0.5.1
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
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) Copy ¶ added in v0.5.1
func (v *CreateDataAccount) Copy() *CreateDataAccount
func (*CreateDataAccount) CopyAsInterface ¶ added in v0.5.1
func (v *CreateDataAccount) CopyAsInterface() interface{}
func (*CreateDataAccount) Equal ¶
func (v *CreateDataAccount) Equal(u *CreateDataAccount) bool
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"` KeyHash []byte `json:"keyHash,omitempty" form:"keyHash" query:"keyHash"` KeyBookUrl *url.URL `json:"keyBookUrl,omitempty" form:"keyBookUrl" query:"keyBookUrl"` Manager *url.URL `json:"manager,omitempty" form:"manager" query:"manager"` // contains filtered or unexported fields }
func (*CreateIdentity) Copy ¶ added in v0.5.1
func (v *CreateIdentity) Copy() *CreateIdentity
func (*CreateIdentity) CopyAsInterface ¶ added in v0.5.1
func (v *CreateIdentity) CopyAsInterface() interface{}
func (*CreateIdentity) Equal ¶
func (v *CreateIdentity) Equal(u *CreateIdentity) bool
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"` PublicKeyHash []byte `json:"publicKeyHash,omitempty" form:"publicKeyHash" query:"publicKeyHash" validate:"required"` Manager *url.URL `json:"manager,omitempty" form:"manager" query:"manager"` // contains filtered or unexported fields }
func (*CreateKeyBook) Copy ¶ added in v0.5.1
func (v *CreateKeyBook) Copy() *CreateKeyBook
func (*CreateKeyBook) CopyAsInterface ¶ added in v0.5.1
func (v *CreateKeyBook) CopyAsInterface() interface{}
func (*CreateKeyBook) Equal ¶
func (v *CreateKeyBook) Equal(u *CreateKeyBook) bool
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 { 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) Copy ¶ added in v0.5.1
func (v *CreateKeyPage) Copy() *CreateKeyPage
func (*CreateKeyPage) CopyAsInterface ¶ added in v0.5.1
func (v *CreateKeyPage) CopyAsInterface() interface{}
func (*CreateKeyPage) Equal ¶
func (v *CreateKeyPage) Equal(u *CreateKeyPage) bool
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"` SupplyLimit *big.Int `json:"supplyLimit,omitempty" form:"supplyLimit" query:"supplyLimit"` Manager *url.URL `json:"manager,omitempty" form:"manager" query:"manager"` // contains filtered or unexported fields }
func (*CreateToken) Copy ¶ added in v0.5.1
func (v *CreateToken) Copy() *CreateToken
func (*CreateToken) CopyAsInterface ¶ added in v0.5.1
func (v *CreateToken) CopyAsInterface() interface{}
func (*CreateToken) Equal ¶
func (v *CreateToken) Equal(u *CreateToken) bool
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) Copy ¶ added in v0.5.1
func (v *CreateTokenAccount) Copy() *CreateTokenAccount
func (*CreateTokenAccount) CopyAsInterface ¶ added in v0.5.1
func (v *CreateTokenAccount) CopyAsInterface() interface{}
func (*CreateTokenAccount) Equal ¶
func (v *CreateTokenAccount) Equal(u *CreateTokenAccount) bool
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 DataAccount ¶
type DataAccount struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` AccountAuth Scratch bool `json:"scratch,omitempty" form:"scratch" query:"scratch"` // contains filtered or unexported fields }
func (*DataAccount) Copy ¶ added in v0.5.1
func (v *DataAccount) Copy() *DataAccount
func (*DataAccount) CopyAsInterface ¶ added in v0.5.1
func (v *DataAccount) CopyAsInterface() interface{}
func (*DataAccount) Equal ¶
func (v *DataAccount) Equal(u *DataAccount) bool
func (*DataAccount) GetAuth ¶ added in v0.6.0
func (a *DataAccount) GetAuth() *AccountAuth
func (*DataAccount) GetUrl ¶ added in v0.6.0
func (a *DataAccount) GetUrl() *url.URL
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 { Data [][]byte `json:"data,omitempty" form:"data" query:"data" validate:"required"` // 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) CopyAsInterface ¶ added in v0.5.1
func (v *DataEntry) CopyAsInterface() interface{}
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) Copy ¶ added in v0.5.1
func (v *DirectoryIndexMetadata) Copy() *DirectoryIndexMetadata
func (*DirectoryIndexMetadata) CopyAsInterface ¶ added in v0.5.1
func (v *DirectoryIndexMetadata) CopyAsInterface() interface{}
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 DisableAccountAuthOperation ¶ added in v0.6.0
type DisableAccountAuthOperation struct { // Authority is the authority to enable authorization for. Authority *url.URL `json:"authority,omitempty" form:"authority" query:"authority" validate:"required"` // contains filtered or unexported fields }
func (*DisableAccountAuthOperation) Copy ¶ added in v0.6.0
func (v *DisableAccountAuthOperation) Copy() *DisableAccountAuthOperation
func (*DisableAccountAuthOperation) CopyAsInterface ¶ added in v0.6.0
func (v *DisableAccountAuthOperation) CopyAsInterface() interface{}
func (*DisableAccountAuthOperation) Equal ¶ added in v0.6.0
func (v *DisableAccountAuthOperation) Equal(u *DisableAccountAuthOperation) bool
func (*DisableAccountAuthOperation) IsValid ¶ added in v0.6.0
func (v *DisableAccountAuthOperation) IsValid() error
func (*DisableAccountAuthOperation) MarshalBinary ¶ added in v0.6.0
func (v *DisableAccountAuthOperation) MarshalBinary() ([]byte, error)
func (*DisableAccountAuthOperation) MarshalJSON ¶ added in v0.6.0
func (v *DisableAccountAuthOperation) MarshalJSON() ([]byte, error)
func (*DisableAccountAuthOperation) Type ¶ added in v0.6.0
func (*DisableAccountAuthOperation) Type() AccountAuthOperationType
func (*DisableAccountAuthOperation) UnmarshalBinary ¶ added in v0.6.0
func (v *DisableAccountAuthOperation) UnmarshalBinary(data []byte) error
func (*DisableAccountAuthOperation) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *DisableAccountAuthOperation) UnmarshalBinaryFrom(rd io.Reader) error
func (*DisableAccountAuthOperation) UnmarshalJSON ¶ added in v0.6.0
func (v *DisableAccountAuthOperation) UnmarshalJSON(data []byte) 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"` Signer *url.URL `json:"signer,omitempty" form:"signer" query:"signer" validate:"required"` SignerVersion uint64 `json:"signerVersion,omitempty" form:"signerVersion" query:"signerVersion" validate:"required"` Timestamp uint64 `json:"timestamp,omitempty" form:"timestamp" query:"timestamp"` Vote VoteType `json:"vote,omitempty" form:"vote" query:"vote"` TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash"` // contains filtered or unexported fields }
func (*ED25519Signature) Copy ¶ added in v0.5.1
func (v *ED25519Signature) Copy() *ED25519Signature
func (*ED25519Signature) CopyAsInterface ¶ added in v0.5.1
func (v *ED25519Signature) CopyAsInterface() interface{}
func (*ED25519Signature) Equal ¶
func (v *ED25519Signature) Equal(u *ED25519Signature) bool
func (*ED25519Signature) GetPublicKey ¶
func (s *ED25519Signature) GetPublicKey() []byte
GetPublicKey returns PublicKey.
func (*ED25519Signature) GetPublicKeyHash ¶ added in v0.6.0
func (s *ED25519Signature) GetPublicKeyHash() []byte
GetPublicKeyHash returns the hash of PublicKey.
func (*ED25519Signature) GetSignature ¶
func (s *ED25519Signature) GetSignature() []byte
GetSignature returns Signature.
func (*ED25519Signature) GetSigner ¶ added in v0.5.1
func (s *ED25519Signature) GetSigner() *url.URL
GetSigner returns Signer.
func (*ED25519Signature) GetSignerVersion ¶ added in v0.5.1
func (s *ED25519Signature) GetSignerVersion() uint64
GetSignerVersion returns SignerVersion.
func (*ED25519Signature) GetTimestamp ¶ added in v0.5.1
func (s *ED25519Signature) GetTimestamp() uint64
GetTimestamp returns Timestamp.
func (*ED25519Signature) GetTransactionHash ¶ added in v0.6.0
func (s *ED25519Signature) GetTransactionHash() [32]byte
GetTransactionHash returns TransactionHash.
func (*ED25519Signature) GetVote ¶ added in v0.6.0
func (s *ED25519Signature) GetVote() VoteType
GetVote returns how the signer votes on a particular transaction
func (*ED25519Signature) Hash ¶ added in v0.5.1
func (s *ED25519Signature) Hash() []byte
Hash returns the hash of the signature.
func (*ED25519Signature) InitiatorHash ¶ added in v0.5.1
func (s *ED25519Signature) InitiatorHash() ([]byte, error)
InitiatorHash calculates the Merkle hash of the 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) MetadataHash ¶ added in v0.5.1
func (s *ED25519Signature) MetadataHash() []byte
MetadataHash hashes the signature metadata.
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(txnHash []byte) bool
Verify returns true if this signature is a valid ED25519 signature of the hash.
type ETHSignature ¶ added in v0.6.0
type ETHSignature struct { PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` Signature []byte `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` Signer *url.URL `json:"signer,omitempty" form:"signer" query:"signer" validate:"required"` SignerVersion uint64 `json:"signerVersion,omitempty" form:"signerVersion" query:"signerVersion" validate:"required"` Timestamp uint64 `json:"timestamp,omitempty" form:"timestamp" query:"timestamp"` Vote VoteType `json:"vote,omitempty" form:"vote" query:"vote"` TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash"` // contains filtered or unexported fields }
func (*ETHSignature) Copy ¶ added in v0.6.0
func (v *ETHSignature) Copy() *ETHSignature
func (*ETHSignature) CopyAsInterface ¶ added in v0.6.0
func (v *ETHSignature) CopyAsInterface() interface{}
func (*ETHSignature) Equal ¶ added in v0.6.0
func (v *ETHSignature) Equal(u *ETHSignature) bool
func (*ETHSignature) GetPublicKey ¶ added in v0.6.0
func (s *ETHSignature) GetPublicKey() []byte
GetPublicKey returns PublicKey.
func (*ETHSignature) GetPublicKeyHash ¶ added in v0.6.0
func (s *ETHSignature) GetPublicKeyHash() []byte
GetPublicKeyHash returns the hash of PublicKey.
func (*ETHSignature) GetSignature ¶ added in v0.6.0
func (s *ETHSignature) GetSignature() []byte
GetSignature returns Signature.
func (*ETHSignature) GetSigner ¶ added in v0.6.0
func (s *ETHSignature) GetSigner() *url.URL
GetSigner returns Signer.
func (*ETHSignature) GetSignerVersion ¶ added in v0.6.0
func (s *ETHSignature) GetSignerVersion() uint64
GetSignerVersion returns SignerVersion.
func (*ETHSignature) GetTimestamp ¶ added in v0.6.0
func (s *ETHSignature) GetTimestamp() uint64
GetTimestamp returns Timestamp.
func (*ETHSignature) GetTransactionHash ¶ added in v0.6.0
func (s *ETHSignature) GetTransactionHash() [32]byte
GetTransactionHash returns TransactionHash.
func (*ETHSignature) GetVote ¶ added in v0.6.0
func (s *ETHSignature) GetVote() VoteType
GetVote returns how the signer votes on a particular transaction
func (*ETHSignature) Hash ¶ added in v0.6.0
func (s *ETHSignature) Hash() []byte
Hash returns the hash of the signature.
func (*ETHSignature) InitiatorHash ¶
func (s *ETHSignature) InitiatorHash() ([]byte, error)
InitiatorHash calculates the Merkle hash of the signature.
func (*ETHSignature) IsValid ¶ added in v0.6.0
func (v *ETHSignature) IsValid() error
func (*ETHSignature) MarshalBinary ¶ added in v0.6.0
func (v *ETHSignature) MarshalBinary() ([]byte, error)
func (*ETHSignature) MarshalJSON ¶ added in v0.6.0
func (v *ETHSignature) MarshalJSON() ([]byte, error)
func (*ETHSignature) MetadataHash ¶
func (s *ETHSignature) MetadataHash() []byte
MetadataHash hashes the signature metadata.
func (*ETHSignature) Type ¶ added in v0.6.0
func (*ETHSignature) Type() SignatureType
func (*ETHSignature) UnmarshalBinary ¶ added in v0.6.0
func (v *ETHSignature) UnmarshalBinary(data []byte) error
func (*ETHSignature) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *ETHSignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*ETHSignature) UnmarshalJSON ¶ added in v0.6.0
func (v *ETHSignature) UnmarshalJSON(data []byte) error
func (*ETHSignature) Verify ¶ added in v0.6.0
func (e *ETHSignature) Verify(txnHash []byte) bool
Verify returns true if this signature is a valid SECP256K1 signature of the hash.
type EmptyResult ¶
type EmptyResult struct {
// contains filtered or unexported fields
}
func (*EmptyResult) Copy ¶ added in v0.5.1
func (v *EmptyResult) Copy() *EmptyResult
func (*EmptyResult) CopyAsInterface ¶ added in v0.5.1
func (v *EmptyResult) CopyAsInterface() interface{}
func (*EmptyResult) Equal ¶
func (v *EmptyResult) Equal(u *EmptyResult) bool
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 EnableAccountAuthOperation ¶ added in v0.6.0
type EnableAccountAuthOperation struct { // Authority is the authority to enable authorization for. Authority *url.URL `json:"authority,omitempty" form:"authority" query:"authority" validate:"required"` // contains filtered or unexported fields }
func (*EnableAccountAuthOperation) Copy ¶ added in v0.6.0
func (v *EnableAccountAuthOperation) Copy() *EnableAccountAuthOperation
func (*EnableAccountAuthOperation) CopyAsInterface ¶ added in v0.6.0
func (v *EnableAccountAuthOperation) CopyAsInterface() interface{}
func (*EnableAccountAuthOperation) Equal ¶ added in v0.6.0
func (v *EnableAccountAuthOperation) Equal(u *EnableAccountAuthOperation) bool
func (*EnableAccountAuthOperation) IsValid ¶ added in v0.6.0
func (v *EnableAccountAuthOperation) IsValid() error
func (*EnableAccountAuthOperation) MarshalBinary ¶ added in v0.6.0
func (v *EnableAccountAuthOperation) MarshalBinary() ([]byte, error)
func (*EnableAccountAuthOperation) MarshalJSON ¶ added in v0.6.0
func (v *EnableAccountAuthOperation) MarshalJSON() ([]byte, error)
func (*EnableAccountAuthOperation) Type ¶ added in v0.6.0
func (*EnableAccountAuthOperation) Type() AccountAuthOperationType
func (*EnableAccountAuthOperation) UnmarshalBinary ¶ added in v0.6.0
func (v *EnableAccountAuthOperation) UnmarshalBinary(data []byte) error
func (*EnableAccountAuthOperation) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *EnableAccountAuthOperation) UnmarshalBinaryFrom(rd io.Reader) error
func (*EnableAccountAuthOperation) UnmarshalJSON ¶ added in v0.6.0
func (v *EnableAccountAuthOperation) 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) CopyAsInterface ¶ added in v0.5.1
func (v *Envelope) CopyAsInterface() interface{}
func (*Envelope) MarshalBinary ¶
func (*Envelope) MarshalJSON ¶
func (*Envelope) UnmarshalBinary ¶
func (*Envelope) UnmarshalJSON ¶
type ErrorCode ¶
type ErrorCode int
const ErrorCodeAddTxnError ErrorCode = 23
ErrorCodeAddTxnError is returned when adding txn to state db fails.
const ErrorCodeAlreadyDelivered ErrorCode = 32
ErrorCodeAlreadyDelivered indicates the transaction has already been delivered.
const ErrorCodeBadNonce ErrorCode = 2
ErrorCodeBadNonce indicates the transaction nonce was rejected.
const ErrorCodeBadVersion ErrorCode = 30
ErrorCodeBadVersion indicates the signature refers to an out of date version of the signer.
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 something could not be decoded or encoded.
const ErrorCodeInsufficientCredits ErrorCode = 29
ErrorCodeInsufficientCredits indicates the signer does not have sufficient credits to execute the transaction.
const ErrorCodeInternal ErrorCode = 31
ErrorCodeInternal indicates an internal error.
const ErrorCodeInvalidQueryType ErrorCode = 19
ErrorCodeInvalidQueryType is returned when query type in request is not matched with the available ones.
const ErrorCodeInvalidRequest ErrorCode = 27
ErrorCodeInvalidRequest indicates the request was invalid.
const ErrorCodeInvalidSignature ErrorCode = 28
ErrorCodeInvalidSignature indicates an envelope signature was invalid.
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 ErrorCodeQueryChainUpdatesError ErrorCode = 34
ErrorCodeQueryChainUpdatesError is returned when chain-updates query fails.
const ErrorCodeQueryEntriesError ErrorCode = 35
ErrorCodeQueryEntriesError is returned when entries query fails.
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.
ErrorCodeUnauthorized indicates the signer is not authorized to sign a transaction.
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 ConvertErrorStatus ¶ added in v0.6.0
ConvertErrorStatus converts a status code to an old protocol error code.
Protocol error codes are deprecated and should be converted to status codes.
func ErrorCodeByName ¶
ErrorCodeByName returns the named Error Code.
func (ErrorCode) GetEnumValue ¶ added in v0.5.1
GetEnumValue returns the value of the Error Code
func (ErrorCode) MarshalJSON ¶
MarshalJSON marshals the Error Code to JSON as a string.
func (*ErrorCode) SetEnumValue ¶ added in v0.5.1
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (*ErrorCode) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Error Code from JSON as a string.
type Fee ¶
type Fee uint64
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 // FeeUpdateAuth $0.03 FeeUpdateAuth Fee = 300 // FeeCreateScratchChain $0.25 FeeCreateScratchChain Fee = 2500 // FeeWriteScratchData $0.0001 / 256 bytes FeeWriteScratchData Fee = 1 // FeeSignature $0.001 FeeSignature Fee = 10 )
Fee Schedule
func BaseTransactionFee ¶ added in v0.5.1
func BaseTransactionFee(typ TransactionType) (Fee, error)
func ComputeSignatureFee ¶ added in v0.5.1
func ComputeTransactionFee ¶ added in v0.5.1
func ComputeTransactionFee(tx *Transaction) (Fee, error)
type ForwardedSignature ¶ added in v0.6.0
type ForwardedSignature struct { Signature KeySignature `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` Signer Signer `json:"signer,omitempty" form:"signer" query:"signer" validate:"required"` // contains filtered or unexported fields }
ForwardedSignature is used when forwarding signatures from one subnet to another.
func (*ForwardedSignature) Copy ¶ added in v0.6.0
func (v *ForwardedSignature) Copy() *ForwardedSignature
func (*ForwardedSignature) CopyAsInterface ¶ added in v0.6.0
func (v *ForwardedSignature) CopyAsInterface() interface{}
func (*ForwardedSignature) Equal ¶ added in v0.6.0
func (v *ForwardedSignature) Equal(u *ForwardedSignature) bool
func (*ForwardedSignature) GetPublicKey ¶ added in v0.6.0
func (s *ForwardedSignature) GetPublicKey() []byte
func (*ForwardedSignature) GetPublicKeyHash ¶ added in v0.6.0
func (s *ForwardedSignature) GetPublicKeyHash() []byte
func (*ForwardedSignature) GetSignature ¶ added in v0.6.0
func (s *ForwardedSignature) GetSignature() []byte
func (*ForwardedSignature) GetSigner ¶ added in v0.6.0
func (s *ForwardedSignature) GetSigner() *url.URL
func (*ForwardedSignature) GetSignerVersion ¶ added in v0.6.0
func (s *ForwardedSignature) GetSignerVersion() uint64
func (*ForwardedSignature) GetTimestamp ¶ added in v0.6.0
func (s *ForwardedSignature) GetTimestamp() uint64
func (*ForwardedSignature) GetTransactionHash ¶ added in v0.6.0
func (s *ForwardedSignature) GetTransactionHash() [32]byte
func (*ForwardedSignature) GetVote ¶ added in v0.6.0
func (s *ForwardedSignature) GetVote() VoteType
func (*ForwardedSignature) Hash ¶ added in v0.6.0
func (s *ForwardedSignature) Hash() []byte
func (*ForwardedSignature) InitiatorHash ¶
func (s *ForwardedSignature) InitiatorHash() ([]byte, error)
func (*ForwardedSignature) IsValid ¶ added in v0.6.0
func (v *ForwardedSignature) IsValid() error
func (*ForwardedSignature) MarshalBinary ¶ added in v0.6.0
func (v *ForwardedSignature) MarshalBinary() ([]byte, error)
func (*ForwardedSignature) MarshalJSON ¶ added in v0.6.0
func (v *ForwardedSignature) MarshalJSON() ([]byte, error)
func (*ForwardedSignature) MetadataHash ¶
func (s *ForwardedSignature) MetadataHash() []byte
func (*ForwardedSignature) Type ¶ added in v0.6.0
func (*ForwardedSignature) Type() SignatureType
func (*ForwardedSignature) UnmarshalBinary ¶ added in v0.6.0
func (v *ForwardedSignature) UnmarshalBinary(data []byte) error
func (*ForwardedSignature) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *ForwardedSignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*ForwardedSignature) UnmarshalJSON ¶ added in v0.6.0
func (v *ForwardedSignature) UnmarshalJSON(data []byte) error
func (*ForwardedSignature) Verify ¶ added in v0.6.0
func (s *ForwardedSignature) Verify(hash []byte) bool
type FullAccount ¶ added in v0.6.0
type FullAccount interface { Account GetAuth() *AccountAuth }
type HashSet ¶ added in v0.5.1
type HashSet struct { Hashes [][32]byte `json:"hashes,omitempty" form:"hashes" query:"hashes" validate:"required"` // contains filtered or unexported fields }
func (*HashSet) CopyAsInterface ¶ added in v0.5.1
func (v *HashSet) CopyAsInterface() interface{}
func (*HashSet) MarshalBinary ¶ added in v0.5.1
func (*HashSet) MarshalJSON ¶ added in v0.5.1
func (*HashSet) UnmarshalBinary ¶ added in v0.5.1
func (*HashSet) UnmarshalBinaryFrom ¶ added in v0.5.1
func (*HashSet) UnmarshalJSON ¶ added in v0.5.1
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) Copy ¶ added in v0.5.1
func (v *IndexEntry) Copy() *IndexEntry
func (*IndexEntry) CopyAsInterface ¶ added in v0.5.1
func (v *IndexEntry) CopyAsInterface() interface{}
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) Copy ¶ added in v0.5.1
func (v *InternalGenesis) Copy() *InternalGenesis
func (*InternalGenesis) CopyAsInterface ¶ added in v0.5.1
func (v *InternalGenesis) CopyAsInterface() interface{}
func (*InternalGenesis) Equal ¶
func (v *InternalGenesis) Equal(u *InternalGenesis) bool
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 { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` AccountAuth 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"` AcmeBurnt big.Int `json:"acmeBurnt,omitempty" form:"acmeBurnt" query:"acmeBurnt" validate:"required"` // contains filtered or unexported fields }
func (*InternalLedger) Copy ¶ added in v0.5.1
func (v *InternalLedger) Copy() *InternalLedger
func (*InternalLedger) CopyAsInterface ¶ added in v0.5.1
func (v *InternalLedger) CopyAsInterface() interface{}
func (*InternalLedger) Equal ¶
func (v *InternalLedger) Equal(u *InternalLedger) bool
func (*InternalLedger) GetAuth ¶ added in v0.6.0
func (a *InternalLedger) GetAuth() *AccountAuth
func (*InternalLedger) GetUrl ¶ added in v0.6.0
func (a *InternalLedger) GetUrl() *url.URL
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) Copy ¶
func (v *InternalSendTransactions) Copy() *InternalSendTransactions
func (*InternalSendTransactions) CopyAsInterface ¶
func (v *InternalSendTransactions) CopyAsInterface() interface{}
func (*InternalSendTransactions) Equal ¶
func (v *InternalSendTransactions) Equal(u *InternalSendTransactions) bool
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 InternalSignature ¶ added in v0.5.1
type InternalSignature struct { // Network is the network that produced the transaction. Network *url.URL `json:"network,omitempty" form:"network" query:"network" validate:"required"` TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash"` // contains filtered or unexported fields }
InternalSignature is used when executing transactions internally.
func (*InternalSignature) Copy ¶ added in v0.5.1
func (v *InternalSignature) Copy() *InternalSignature
func (*InternalSignature) CopyAsInterface ¶ added in v0.5.1
func (v *InternalSignature) CopyAsInterface() interface{}
func (*InternalSignature) Equal ¶ added in v0.5.1
func (v *InternalSignature) Equal(u *InternalSignature) bool
func (*InternalSignature) GetPublicKeyHash ¶ added in v0.6.0
func (s *InternalSignature) GetPublicKeyHash() []byte
GetPublicKey returns nil
func (*InternalSignature) GetSignature ¶ added in v0.5.1
func (s *InternalSignature) GetSignature() []byte
GetSignature returns nil.
func (*InternalSignature) GetSigner ¶ added in v0.5.1
func (s *InternalSignature) GetSigner() *url.URL
GetSigner returns SourceNetwork.
func (*InternalSignature) GetSignerVersion ¶ added in v0.5.1
func (s *InternalSignature) GetSignerVersion() uint64
GetSignerVersion returns 1.
func (*InternalSignature) GetTimestamp ¶ added in v0.5.1
func (s *InternalSignature) GetTimestamp() uint64
GetTimestamp returns 1.
func (*InternalSignature) GetTransactionHash ¶ added in v0.6.0
func (s *InternalSignature) GetTransactionHash() [32]byte
GetTransactionHash returns TransactionHash.
func (*InternalSignature) GetVote ¶ added in v0.6.0
func (s *InternalSignature) GetVote() VoteType
GetVote returns how the signer votes on a particular transaction
func (*InternalSignature) Hash ¶ added in v0.5.1
func (s *InternalSignature) Hash() []byte
Hash returns the hash of the signature.
func (*InternalSignature) InitiatorHash ¶ added in v0.5.1
func (s *InternalSignature) InitiatorHash() ([]byte, error)
InitiatorHash returns the network account ID.
func (*InternalSignature) IsValid ¶ added in v0.5.1
func (v *InternalSignature) IsValid() error
func (*InternalSignature) MarshalBinary ¶ added in v0.5.1
func (v *InternalSignature) MarshalBinary() ([]byte, error)
func (*InternalSignature) MarshalJSON ¶ added in v0.5.1
func (v *InternalSignature) MarshalJSON() ([]byte, error)
func (*InternalSignature) MetadataHash ¶ added in v0.5.1
func (s *InternalSignature) MetadataHash() []byte
MetadataHash hashes the signature metadata.
func (*InternalSignature) Type ¶ added in v0.5.1
func (*InternalSignature) Type() SignatureType
func (*InternalSignature) UnmarshalBinary ¶ added in v0.5.1
func (v *InternalSignature) UnmarshalBinary(data []byte) error
func (*InternalSignature) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *InternalSignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*InternalSignature) UnmarshalJSON ¶ added in v0.5.1
func (v *InternalSignature) UnmarshalJSON(data []byte) error
func (*InternalSignature) Verify ¶ added in v0.5.1
func (s *InternalSignature) Verify(hash []byte) bool
Verify returns true.
type InternalSyntheticLedger ¶ added in v0.5.1
type InternalSyntheticLedger struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` AccountAuth Pending []*SyntheticLedgerEntry `json:"pending,omitempty" form:"pending" query:"pending" validate:"required"` // contains filtered or unexported fields }
func (*InternalSyntheticLedger) Copy ¶ added in v0.5.1
func (v *InternalSyntheticLedger) Copy() *InternalSyntheticLedger
func (*InternalSyntheticLedger) CopyAsInterface ¶ added in v0.5.1
func (v *InternalSyntheticLedger) CopyAsInterface() interface{}
func (*InternalSyntheticLedger) Equal ¶ added in v0.5.1
func (v *InternalSyntheticLedger) Equal(u *InternalSyntheticLedger) bool
func (*InternalSyntheticLedger) GetAuth ¶
func (a *InternalSyntheticLedger) GetAuth() *AccountAuth
func (*InternalSyntheticLedger) GetUrl ¶
func (a *InternalSyntheticLedger) GetUrl() *url.URL
func (*InternalSyntheticLedger) IsValid ¶ added in v0.5.1
func (v *InternalSyntheticLedger) IsValid() error
func (*InternalSyntheticLedger) MarshalBinary ¶ added in v0.5.1
func (v *InternalSyntheticLedger) MarshalBinary() ([]byte, error)
func (*InternalSyntheticLedger) MarshalJSON ¶ added in v0.5.1
func (v *InternalSyntheticLedger) MarshalJSON() ([]byte, error)
func (*InternalSyntheticLedger) Type ¶ added in v0.5.1
func (*InternalSyntheticLedger) Type() AccountType
func (*InternalSyntheticLedger) UnmarshalBinary ¶ added in v0.5.1
func (v *InternalSyntheticLedger) UnmarshalBinary(data []byte) error
func (*InternalSyntheticLedger) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *InternalSyntheticLedger) UnmarshalBinaryFrom(rd io.Reader) error
func (*InternalSyntheticLedger) UnmarshalJSON ¶ added in v0.5.1
func (v *InternalSyntheticLedger) 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) Copy ¶ added in v0.5.1
func (v *InternalTransactionsSent) Copy() *InternalTransactionsSent
func (*InternalTransactionsSent) CopyAsInterface ¶ added in v0.5.1
func (v *InternalTransactionsSent) CopyAsInterface() interface{}
func (*InternalTransactionsSent) Equal ¶
func (v *InternalTransactionsSent) Equal(u *InternalTransactionsSent) bool
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) Copy ¶ added in v0.5.1
func (v *InternalTransactionsSigned) Copy() *InternalTransactionsSigned
func (*InternalTransactionsSigned) CopyAsInterface ¶ added in v0.5.1
func (v *InternalTransactionsSigned) CopyAsInterface() interface{}
func (*InternalTransactionsSigned) Equal ¶
func (v *InternalTransactionsSigned) Equal(u *InternalTransactionsSigned) bool
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) Copy ¶ added in v0.5.1
func (v *IssueTokens) Copy() *IssueTokens
func (*IssueTokens) CopyAsInterface ¶ added in v0.5.1
func (v *IssueTokens) CopyAsInterface() interface{}
func (*IssueTokens) Equal ¶
func (v *IssueTokens) Equal(u *IssueTokens) bool
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 { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` AccountAuth PageCount uint64 `json:"pageCount,omitempty" form:"pageCount" query:"pageCount" validate:"required"` // contains filtered or unexported fields }
func (*KeyBook) CopyAsInterface ¶ added in v0.5.1
func (v *KeyBook) CopyAsInterface() interface{}
func (*KeyBook) GetAuth ¶ added in v0.6.0
func (a *KeyBook) GetAuth() *AccountAuth
func (*KeyBook) GetSigners ¶ added in v0.6.0
GetSigners returns URLs of the book's pages.
func (*KeyBook) MarshalBinary ¶
func (*KeyBook) MarshalJSON ¶
func (*KeyBook) Type ¶
func (*KeyBook) Type() AccountType
func (*KeyBook) UnmarshalBinary ¶
func (*KeyBook) UnmarshalJSON ¶
type KeyPage ¶
type KeyPage struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` CreditBalance uint64 `json:"creditBalance,omitempty" form:"creditBalance" query:"creditBalance" validate:"required"` // AcceptThreshold is the number of acceptances required to accept a transaction. AcceptThreshold uint64 `json:"acceptThreshold,omitempty" form:"acceptThreshold" query:"acceptThreshold" validate:"required"` // RejectThreshold is the number of rejections required to reject a transaction. RejectThreshold uint64 `json:"rejectThreshold,omitempty" form:"rejectThreshold" query:"rejectThreshold" validate:"required"` // ResponseThreshold is the number of responses that must be received before a transaction will be processed. ResponseThreshold uint64 `json:"responseThreshold,omitempty" form:"responseThreshold" query:"responseThreshold" validate:"required"` // BlockThreshold is the number of minor blocks that must elapse before a transaction will be processed. BlockThreshold uint64 `json:"blockThreshold,omitempty" form:"blockThreshold" query:"blockThreshold" validate:"required"` Version uint64 `json:"version,omitempty" form:"version" query:"version" validate:"required"` Keys []*KeySpec `json:"keys,omitempty" form:"keys" query:"keys" validate:"required"` TransactionBlacklist *AllowedTransactions `json:"transactionBlacklist,omitempty" form:"transactionBlacklist" query:"transactionBlacklist"` // contains filtered or unexported fields }
func (*KeyPage) CanDebitCredits ¶ added in v0.5.1
func (*KeyPage) CopyAsInterface ¶ added in v0.5.1
func (v *KeyPage) CopyAsInterface() interface{}
func (*KeyPage) CreditCredits ¶
func (*KeyPage) DebitCredits ¶
func (*KeyPage) EntryByKey ¶ added in v0.5.1
EntryByKeyHash finds the entry with a matching key hash.
func (*KeyPage) EntryByKeyHash ¶ added in v0.5.1
EntryByKeyHash finds the entry with a matching key hash.
func (*KeyPage) EntryByOwner ¶ added in v0.5.1
EntryByOwner finds the entry with a matching owner
func (*KeyPage) GetCreditBalance ¶ added in v0.5.1
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) GetSignatureThreshold ¶ added in v0.5.1
GetSignatureThreshold returns Threshold.
func (*KeyPage) GetVersion ¶ added in v0.5.1
GetVersion returns Version.
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 interface { Type() KeyPageOperationType encoding.BinaryValue }
func NewKeyPageOperation ¶ added in v0.5.1
func NewKeyPageOperation(typ KeyPageOperationType) (KeyPageOperation, error)
NewKeyPageOperation creates a new KeyPageOperation for the specified KeyPageOperationType.
func UnmarshalKeyPageOperation ¶ added in v0.5.1
func UnmarshalKeyPageOperation(data []byte) (KeyPageOperation, error)
UnmarshalKeyPageOperation unmarshals a KeyPageOperation.
func UnmarshalKeyPageOperationFrom ¶ added in v0.5.1
func UnmarshalKeyPageOperationFrom(rd io.ReadSeeker) (KeyPageOperation, error)
UnmarshalKeyPageOperationFrom unmarshals a KeyPageOperation.
func UnmarshalKeyPageOperationJSON ¶ added in v0.5.1
func UnmarshalKeyPageOperationJSON(data []byte) (KeyPageOperation, error)
UnmarshalKeyPageOperationJson unmarshals a KeyPageOperation.
type KeyPageOperationType ¶ added in v0.5.1
type KeyPageOperationType uint8
KeyPageOperationType is the operation type of an UpdateKeyPage operation.
const KeyPageOperationTypeAdd KeyPageOperationType = 3
KeyPageOperationTypeAdd adds a key to the page.
const KeyPageOperationTypeRemove KeyPageOperationType = 2
KeyPageOperationTypeRemove removes a key from the page.
const KeyPageOperationTypeSetThreshold KeyPageOperationType = 4
KeyPageOperationTypeSetThreshold sets the signing threshold (the M of "M of N" signatures required).
const KeyPageOperationTypeUnknown KeyPageOperationType = 0
KeyPageOperationTypeUnknown is used when the key page operation is not known.
const KeyPageOperationTypeUpdate KeyPageOperationType = 1
KeyPageOperationTypeUpdate replaces a key in the page with a new key.
const KeyPageOperationTypeUpdateAllowed KeyPageOperationType = 5
KeyPageOperationTypeUpdateAllowed updates the transactions the key page is allowed to execute.
func KeyPageOperationTypeByName ¶ added in v0.5.1
func KeyPageOperationTypeByName(name string) (KeyPageOperationType, bool)
KeyPageOperationTypeByName returns the named Key Page Operation Type.
func UnmarshalKeyPageOperationType ¶ added in v0.5.1
func UnmarshalKeyPageOperationType(r io.Reader) (KeyPageOperationType, error)
UnmarshalKeyPageOperationType unmarshals the KeyPageOperationType from the start of a KeyPageOperation.
func (KeyPageOperationType) GetEnumValue ¶ added in v0.5.1
func (v KeyPageOperationType) GetEnumValue() uint64
GetEnumValue returns the value of the Key Page Operation Type
func (KeyPageOperationType) MarshalJSON ¶ added in v0.5.1
func (v KeyPageOperationType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Key Page Operation Type to JSON as a string.
func (*KeyPageOperationType) SetEnumValue ¶ added in v0.5.1
func (v *KeyPageOperationType) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (KeyPageOperationType) String ¶ added in v0.5.1
func (v KeyPageOperationType) String() string
String returns the name of the Key Page Operation Type
func (*KeyPageOperationType) UnmarshalJSON ¶ added in v0.5.1
func (v *KeyPageOperationType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Key Page Operation Type from JSON as a string.
type KeySignature ¶ added in v0.6.0
func UnmarshalKeySignature ¶ added in v0.6.0
func UnmarshalKeySignature(data []byte) (KeySignature, error)
func UnmarshalKeySignatureJSON ¶ added in v0.6.0
func UnmarshalKeySignatureJSON(data []byte) (KeySignature, error)
type KeySpec ¶
type KeySpec struct { PublicKeyHash []byte `json:"publicKeyHash,omitempty" form:"publicKeyHash" query:"publicKeyHash" validate:"required"` LastUsedOn uint64 `json:"lastUsedOn,omitempty" form:"lastUsedOn" query:"lastUsedOn" validate:"required"` Owner *url.URL `json:"owner,omitempty" form:"owner" query:"owner" validate:"required"` // contains filtered or unexported fields }
func (*KeySpec) CopyAsInterface ¶ added in v0.5.1
func (v *KeySpec) CopyAsInterface() interface{}
func (*KeySpec) GetLastUsedOn ¶ added in v0.5.1
GetLastUsedOn returns LastUsedOn.
func (*KeySpec) MarshalBinary ¶
func (*KeySpec) MarshalJSON ¶
func (*KeySpec) SetLastUsedOn ¶ added in v0.5.1
SetLastUsedOn sets LastUsedOn.
func (*KeySpec) UnmarshalBinary ¶
func (*KeySpec) UnmarshalJSON ¶
type KeySpecParams ¶
type KeySpecParams struct { KeyHash []byte `json:"keyHash,omitempty" form:"keyHash" query:"keyHash" validate:"required"` Owner *url.URL `json:"owner,omitempty" form:"owner" query:"owner"` // contains filtered or unexported fields }
func (*KeySpecParams) Copy ¶ added in v0.5.1
func (v *KeySpecParams) Copy() *KeySpecParams
func (*KeySpecParams) CopyAsInterface ¶ added in v0.5.1
func (v *KeySpecParams) CopyAsInterface() interface{}
func (*KeySpecParams) Equal ¶
func (v *KeySpecParams) Equal(u *KeySpecParams) bool
func (*KeySpecParams) IsEmpty ¶ added in v0.5.1
func (k *KeySpecParams) IsEmpty() 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 { Timestamp uint64 `json:"timestamp,omitempty" form:"timestamp" query:"timestamp" validate:"required"` PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` Signature []byte `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` Signer *url.URL `json:"signer,omitempty" form:"signer" query:"signer" validate:"required"` SignerVersion uint64 `json:"signerVersion,omitempty" form:"signerVersion" query:"signerVersion" validate:"required"` Vote VoteType `json:"vote,omitempty" form:"vote" query:"vote"` TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash"` // contains filtered or unexported fields }
func (*LegacyED25519Signature) Copy ¶ added in v0.5.1
func (v *LegacyED25519Signature) Copy() *LegacyED25519Signature
func (*LegacyED25519Signature) CopyAsInterface ¶ added in v0.5.1
func (v *LegacyED25519Signature) CopyAsInterface() interface{}
func (*LegacyED25519Signature) Equal ¶
func (v *LegacyED25519Signature) Equal(u *LegacyED25519Signature) bool
func (*LegacyED25519Signature) GetPublicKey ¶
func (s *LegacyED25519Signature) GetPublicKey() []byte
GetPublicKey returns PublicKey.
func (*LegacyED25519Signature) GetPublicKeyHash ¶ added in v0.6.0
func (s *LegacyED25519Signature) GetPublicKeyHash() []byte
GetPublicKeyHash returns the hash of PublicKey.
func (*LegacyED25519Signature) GetSignature ¶
func (s *LegacyED25519Signature) GetSignature() []byte
GetSignature returns Signature.
func (*LegacyED25519Signature) GetSigner ¶ added in v0.5.1
func (s *LegacyED25519Signature) GetSigner() *url.URL
GetSigner returns Signer.
func (*LegacyED25519Signature) GetSignerVersion ¶ added in v0.5.1
func (s *LegacyED25519Signature) GetSignerVersion() uint64
GetSignerVersion returns SignerVersion.
func (*LegacyED25519Signature) GetTimestamp ¶ added in v0.5.1
func (s *LegacyED25519Signature) GetTimestamp() uint64
GetTimestamp returns Timestamp.
func (*LegacyED25519Signature) GetTransactionHash ¶ added in v0.6.0
func (s *LegacyED25519Signature) GetTransactionHash() [32]byte
GetTransactionHash returns TransactionHash.
func (*LegacyED25519Signature) GetVote ¶ added in v0.6.0
func (s *LegacyED25519Signature) GetVote() VoteType
GetVote returns how the signer votes on a particular transaction
func (*LegacyED25519Signature) Hash ¶ added in v0.5.1
func (s *LegacyED25519Signature) Hash() []byte
Hash returns the hash of the signature.
func (*LegacyED25519Signature) InitiatorHash ¶ added in v0.5.1
func (s *LegacyED25519Signature) InitiatorHash() ([]byte, error)
InitiatorHash calculates the Merkle hash of the 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) MetadataHash ¶ added in v0.5.1
func (s *LegacyED25519Signature) MetadataHash() []byte
MetadataHash hashes the signature metadata.
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(txnHash []byte) bool
Verify returns true if this signature is a valid legacy ED25519 signature of the hash.
type LiteDataAccount ¶
type LiteDataAccount struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` Tail []byte `json:"tail,omitempty" form:"tail" query:"tail" validate:"required"` // contains filtered or unexported fields }
func (*LiteDataAccount) AccountId ¶
func (c *LiteDataAccount) AccountId() ([]byte, error)
func (*LiteDataAccount) Copy ¶ added in v0.5.1
func (v *LiteDataAccount) Copy() *LiteDataAccount
func (*LiteDataAccount) CopyAsInterface ¶ added in v0.5.1
func (v *LiteDataAccount) CopyAsInterface() interface{}
func (*LiteDataAccount) Equal ¶
func (v *LiteDataAccount) Equal(u *LiteDataAccount) bool
func (*LiteDataAccount) GetUrl ¶ added in v0.6.0
func (a *LiteDataAccount) GetUrl() *url.URL
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 { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` // contains filtered or unexported fields }
func (*LiteIdentity) Copy ¶ added in v0.5.1
func (v *LiteIdentity) Copy() *LiteIdentity
func (*LiteIdentity) CopyAsInterface ¶ added in v0.5.1
func (v *LiteIdentity) CopyAsInterface() interface{}
func (*LiteIdentity) Equal ¶
func (v *LiteIdentity) Equal(u *LiteIdentity) bool
func (*LiteIdentity) GetUrl ¶ added in v0.6.0
func (a *LiteIdentity) GetUrl() *url.URL
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 { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` TokenUrl *url.URL `json:"tokenUrl,omitempty" form:"tokenUrl" query:"tokenUrl" validate:"required"` Balance big.Int `json:"balance,omitempty" form:"balance" query:"balance" validate:"required"` LastUsedOn uint64 `json:"lastUsedOn,omitempty" form:"lastUsedOn" query:"lastUsedOn" validate:"required"` CreditBalance uint64 `json:"creditBalance,omitempty" form:"creditBalance" query:"creditBalance" validate:"required"` // contains filtered or unexported fields }
func (*LiteTokenAccount) CanDebitCredits ¶ added in v0.5.1
func (acct *LiteTokenAccount) CanDebitCredits(amount uint64) bool
func (*LiteTokenAccount) CanDebitTokens ¶
func (acct *LiteTokenAccount) CanDebitTokens(amount *big.Int) bool
func (*LiteTokenAccount) Copy ¶ added in v0.5.1
func (v *LiteTokenAccount) Copy() *LiteTokenAccount
func (*LiteTokenAccount) CopyAsInterface ¶ added in v0.5.1
func (v *LiteTokenAccount) CopyAsInterface() interface{}
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) EntryByKey ¶ added in v0.5.1
func (l *LiteTokenAccount) EntryByKey(key []byte) (int, KeyEntry, bool)
EntryByKey checks if the key's hash matches the lite token account URL. EntryByKey will panic if the lite token account URL is invalid.
func (*LiteTokenAccount) EntryByKeyHash ¶ added in v0.5.1
func (l *LiteTokenAccount) EntryByKeyHash(keyHash []byte) (int, KeyEntry, bool)
EntryByKeyHash checks if the key hash matches the lite token account URL. EntryByKeyHash will panic if the lite token account URL is invalid.
func (*LiteTokenAccount) Equal ¶
func (v *LiteTokenAccount) Equal(u *LiteTokenAccount) bool
func (*LiteTokenAccount) GetCreditBalance ¶ added in v0.5.1
func (acct *LiteTokenAccount) GetCreditBalance() uint64
func (*LiteTokenAccount) GetLastUsedOn ¶ added in v0.5.1
func (l *LiteTokenAccount) GetLastUsedOn() uint64
GetLastUsedOn returns LastUsedOn.
func (*LiteTokenAccount) GetSignatureThreshold ¶ added in v0.5.1
func (*LiteTokenAccount) GetSignatureThreshold() uint64
GetSignatureThreshold returns 1.
func (*LiteTokenAccount) GetSigners ¶
func (l *LiteTokenAccount) GetSigners() []*url.URL
GetSigners returns the lite address.
func (*LiteTokenAccount) GetTokenUrl ¶ added in v0.5.1
func (acct *LiteTokenAccount) GetTokenUrl() *url.URL
func (*LiteTokenAccount) GetUrl ¶ added in v0.6.0
func (a *LiteTokenAccount) GetUrl() *url.URL
func (*LiteTokenAccount) GetVersion ¶ added in v0.5.1
func (*LiteTokenAccount) GetVersion() uint64
GetVersion returns 1.
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) SetLastUsedOn ¶ added in v0.5.1
func (l *LiteTokenAccount) SetLastUsedOn(timestamp uint64)
SetLastUsedOn sets LastUsedOn.
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) Copy ¶ added in v0.5.1
func (v *MetricsRequest) Copy() *MetricsRequest
func (*MetricsRequest) CopyAsInterface ¶ added in v0.5.1
func (v *MetricsRequest) CopyAsInterface() interface{}
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 { // Type is the object's type. Type ObjectType `json:"type,omitempty" form:"type" query:"type" validate:"required"` // Chains lists the object's chains. Chains []ChainMetadata `json:"chains,omitempty" form:"chains" query:"chains" validate:"required"` // contains filtered or unexported fields }
func (*Object) AddChain ¶ added in v0.5.1
AddChain adds a chain to the object's list of chains using a binary search to ensure ordering. AddChain returns an error if there is an existing entry with the same name and a different type.
func (*Object) CopyAsInterface ¶ added in v0.5.1
func (v *Object) CopyAsInterface() interface{}
func (*Object) MarshalBinary ¶
func (*Object) MarshalJSON ¶
func (*Object) UnmarshalBinary ¶
func (*Object) UnmarshalJSON ¶
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) GetEnumValue ¶ added in v0.5.1
func (v ObjectType) GetEnumValue() uint64
GetEnumValue returns the value of the Object Type
func (ObjectType) MarshalJSON ¶
func (v ObjectType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Object Type to JSON as a string.
func (*ObjectType) SetEnumValue ¶ added in v0.5.1
func (v *ObjectType) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue 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) UnmarshalJSON ¶
func (v *ObjectType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Object Type from JSON as a string.
type RCD1Signature ¶ added in v0.5.1
type RCD1Signature struct { PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` Signature []byte `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` Signer *url.URL `json:"signer,omitempty" form:"signer" query:"signer" validate:"required"` SignerVersion uint64 `json:"signerVersion,omitempty" form:"signerVersion" query:"signerVersion" validate:"required"` Timestamp uint64 `json:"timestamp,omitempty" form:"timestamp" query:"timestamp"` Vote VoteType `json:"vote,omitempty" form:"vote" query:"vote"` TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash"` // contains filtered or unexported fields }
func (*RCD1Signature) Copy ¶ added in v0.5.1
func (v *RCD1Signature) Copy() *RCD1Signature
func (*RCD1Signature) CopyAsInterface ¶ added in v0.5.1
func (v *RCD1Signature) CopyAsInterface() interface{}
func (*RCD1Signature) Equal ¶ added in v0.5.1
func (v *RCD1Signature) Equal(u *RCD1Signature) bool
func (*RCD1Signature) GetPublicKey ¶ added in v0.5.1
func (s *RCD1Signature) GetPublicKey() []byte
GetPublicKey returns PublicKey.
func (*RCD1Signature) GetPublicKeyHash ¶ added in v0.6.0
func (s *RCD1Signature) GetPublicKeyHash() []byte
GetPublicKeyHash returns RCD1 hash of PublicKey.
func (*RCD1Signature) GetSignature ¶ added in v0.5.1
func (s *RCD1Signature) GetSignature() []byte
GetSignature returns Signature.
func (*RCD1Signature) GetSigner ¶ added in v0.5.1
func (s *RCD1Signature) GetSigner() *url.URL
GetSigner returns Signer.
func (*RCD1Signature) GetSignerVersion ¶ added in v0.5.1
func (s *RCD1Signature) GetSignerVersion() uint64
GetSignerVersion returns SignerVersion.
func (*RCD1Signature) GetTimestamp ¶ added in v0.5.1
func (s *RCD1Signature) GetTimestamp() uint64
GetTimestamp returns Timestamp.
func (*RCD1Signature) GetTransactionHash ¶ added in v0.6.0
func (s *RCD1Signature) GetTransactionHash() [32]byte
GetTransactionHash returns TransactionHash.
func (*RCD1Signature) GetVote ¶ added in v0.6.0
func (s *RCD1Signature) GetVote() VoteType
GetVote returns how the signer votes on a particular transaction
func (*RCD1Signature) Hash ¶ added in v0.5.1
func (s *RCD1Signature) Hash() []byte
Hash returns the hash of the signature.
func (*RCD1Signature) InitiatorHash ¶ added in v0.5.1
func (s *RCD1Signature) InitiatorHash() ([]byte, error)
InitiatorHash calculates the Merkle hash of the signature.
func (*RCD1Signature) IsValid ¶ added in v0.5.1
func (v *RCD1Signature) IsValid() error
func (*RCD1Signature) MarshalBinary ¶ added in v0.5.1
func (v *RCD1Signature) MarshalBinary() ([]byte, error)
func (*RCD1Signature) MarshalJSON ¶ added in v0.5.1
func (v *RCD1Signature) MarshalJSON() ([]byte, error)
func (*RCD1Signature) MetadataHash ¶ added in v0.5.1
func (s *RCD1Signature) MetadataHash() []byte
MetadataHash hashes the signature metadata.
func (*RCD1Signature) Type ¶ added in v0.5.1
func (*RCD1Signature) Type() SignatureType
func (*RCD1Signature) UnmarshalBinary ¶ added in v0.5.1
func (v *RCD1Signature) UnmarshalBinary(data []byte) error
func (*RCD1Signature) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *RCD1Signature) UnmarshalBinaryFrom(rd io.Reader) error
func (*RCD1Signature) UnmarshalJSON ¶ added in v0.5.1
func (v *RCD1Signature) UnmarshalJSON(data []byte) error
func (*RCD1Signature) Verify ¶ added in v0.5.1
func (e *RCD1Signature) Verify(txnHash []byte) bool
Verify returns true if this signature is a valid RCD1 signature of the hash.
type Receipt ¶
type Receipt struct { Start []byte `json:"start,omitempty" form:"start" query:"start" validate:"required"` Result []byte `json:"result,omitempty" form:"result" query:"result" validate:"required"` Entries []ReceiptEntry `json:"entries,omitempty" form:"entries" query:"entries" validate:"required"` // contains filtered or unexported fields }
func ReceiptFromManaged ¶ added in v0.5.1
func (*Receipt) CopyAsInterface ¶ added in v0.5.1
func (v *Receipt) CopyAsInterface() interface{}
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) Copy ¶ added in v0.5.1
func (v *ReceiptEntry) Copy() *ReceiptEntry
func (*ReceiptEntry) CopyAsInterface ¶ added in v0.5.1
func (v *ReceiptEntry) CopyAsInterface() interface{}
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 ReceiptSignature ¶ added in v0.5.1
type ReceiptSignature struct { // SourceNetwork is the network that produced the transaction. SourceNetwork *url.URL `json:"sourceNetwork,omitempty" form:"sourceNetwork" query:"sourceNetwork" validate:"required"` Receipt TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash"` // contains filtered or unexported fields }
func (*ReceiptSignature) Copy ¶ added in v0.5.1
func (v *ReceiptSignature) Copy() *ReceiptSignature
func (*ReceiptSignature) CopyAsInterface ¶ added in v0.5.1
func (v *ReceiptSignature) CopyAsInterface() interface{}
func (*ReceiptSignature) Equal ¶ added in v0.5.1
func (v *ReceiptSignature) Equal(u *ReceiptSignature) bool
func (*ReceiptSignature) GetPublicKeyHash ¶ added in v0.6.0
func (s *ReceiptSignature) GetPublicKeyHash() []byte
GetPublicKey returns nil.
func (*ReceiptSignature) GetSignature ¶ added in v0.5.1
func (s *ReceiptSignature) GetSignature() []byte
GetSignature returns the marshalled receipt.
func (*ReceiptSignature) GetSigner ¶ added in v0.5.1
func (s *ReceiptSignature) GetSigner() *url.URL
GetSigner returns SourceNetwork.
func (*ReceiptSignature) GetSignerVersion ¶ added in v0.5.1
func (s *ReceiptSignature) GetSignerVersion() uint64
GetSignerVersion returns 1.
func (*ReceiptSignature) GetTimestamp ¶ added in v0.5.1
func (s *ReceiptSignature) GetTimestamp() uint64
GetTimestamp returns 1.
func (*ReceiptSignature) GetTransactionHash ¶ added in v0.6.0
func (s *ReceiptSignature) GetTransactionHash() [32]byte
GetTransactionHash returns TransactionHash.
func (*ReceiptSignature) GetVote ¶ added in v0.6.0
func (s *ReceiptSignature) GetVote() VoteType
GetVote returns how the signer votes on a particular transaction
func (*ReceiptSignature) Hash ¶ added in v0.5.1
func (s *ReceiptSignature) Hash() []byte
Hash returns the hash of the signature.
func (*ReceiptSignature) InitiatorHash ¶ added in v0.5.1
func (s *ReceiptSignature) InitiatorHash() ([]byte, error)
InitiatorHash returns an error.
func (*ReceiptSignature) IsValid ¶ added in v0.5.1
func (v *ReceiptSignature) IsValid() error
func (*ReceiptSignature) MarshalBinary ¶ added in v0.5.1
func (v *ReceiptSignature) MarshalBinary() ([]byte, error)
func (*ReceiptSignature) MarshalJSON ¶ added in v0.5.1
func (v *ReceiptSignature) MarshalJSON() ([]byte, error)
func (*ReceiptSignature) MetadataHash ¶ added in v0.5.1
func (s *ReceiptSignature) MetadataHash() []byte
MetadataHash hashes the signature metadata.
func (*ReceiptSignature) Type ¶ added in v0.5.1
func (*ReceiptSignature) Type() SignatureType
func (*ReceiptSignature) UnmarshalBinary ¶ added in v0.5.1
func (v *ReceiptSignature) UnmarshalBinary(data []byte) error
func (*ReceiptSignature) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *ReceiptSignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*ReceiptSignature) UnmarshalJSON ¶ added in v0.5.1
func (v *ReceiptSignature) UnmarshalJSON(data []byte) error
func (*ReceiptSignature) Verify ¶ added in v0.5.1
func (s *ReceiptSignature) Verify(hash []byte) bool
Verify returns true if this receipt is a valid receipt of the hash.
type RemoteTransaction ¶ added in v0.6.0
type RemoteTransaction struct { Hash [32]byte `json:"hash,omitempty" form:"hash" query:"hash"` // contains filtered or unexported fields }
func (*RemoteTransaction) Copy ¶ added in v0.6.0
func (v *RemoteTransaction) Copy() *RemoteTransaction
func (*RemoteTransaction) CopyAsInterface ¶ added in v0.6.0
func (v *RemoteTransaction) CopyAsInterface() interface{}
func (*RemoteTransaction) Equal ¶ added in v0.6.0
func (v *RemoteTransaction) Equal(u *RemoteTransaction) bool
func (*RemoteTransaction) IsValid ¶ added in v0.6.0
func (v *RemoteTransaction) IsValid() error
func (*RemoteTransaction) MarshalBinary ¶ added in v0.6.0
func (v *RemoteTransaction) MarshalBinary() ([]byte, error)
func (*RemoteTransaction) MarshalJSON ¶ added in v0.6.0
func (v *RemoteTransaction) MarshalJSON() ([]byte, error)
func (*RemoteTransaction) Type ¶ added in v0.6.0
func (*RemoteTransaction) Type() TransactionType
func (*RemoteTransaction) UnmarshalBinary ¶ added in v0.6.0
func (v *RemoteTransaction) UnmarshalBinary(data []byte) error
func (*RemoteTransaction) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *RemoteTransaction) UnmarshalBinaryFrom(rd io.Reader) error
func (*RemoteTransaction) UnmarshalJSON ¶ added in v0.6.0
func (v *RemoteTransaction) UnmarshalJSON(data []byte) error
type RemoveAccountAuthorityOperation ¶ added in v0.6.0
type RemoveAccountAuthorityOperation struct { // Authority is the authority to add. Authority *url.URL `json:"authority,omitempty" form:"authority" query:"authority" validate:"required"` // contains filtered or unexported fields }
func (*RemoveAccountAuthorityOperation) Copy ¶ added in v0.6.0
func (v *RemoveAccountAuthorityOperation) Copy() *RemoveAccountAuthorityOperation
func (*RemoveAccountAuthorityOperation) CopyAsInterface ¶ added in v0.6.0
func (v *RemoveAccountAuthorityOperation) CopyAsInterface() interface{}
func (*RemoveAccountAuthorityOperation) Equal ¶ added in v0.6.0
func (v *RemoveAccountAuthorityOperation) Equal(u *RemoveAccountAuthorityOperation) bool
func (*RemoveAccountAuthorityOperation) IsValid ¶ added in v0.6.0
func (v *RemoveAccountAuthorityOperation) IsValid() error
func (*RemoveAccountAuthorityOperation) MarshalBinary ¶ added in v0.6.0
func (v *RemoveAccountAuthorityOperation) MarshalBinary() ([]byte, error)
func (*RemoveAccountAuthorityOperation) MarshalJSON ¶ added in v0.6.0
func (v *RemoveAccountAuthorityOperation) MarshalJSON() ([]byte, error)
func (*RemoveAccountAuthorityOperation) Type ¶ added in v0.6.0
func (*RemoveAccountAuthorityOperation) Type() AccountAuthOperationType
func (*RemoveAccountAuthorityOperation) UnmarshalBinary ¶ added in v0.6.0
func (v *RemoveAccountAuthorityOperation) UnmarshalBinary(data []byte) error
func (*RemoveAccountAuthorityOperation) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *RemoveAccountAuthorityOperation) UnmarshalBinaryFrom(rd io.Reader) error
func (*RemoveAccountAuthorityOperation) UnmarshalJSON ¶ added in v0.6.0
func (v *RemoveAccountAuthorityOperation) UnmarshalJSON(data []byte) error
type RemoveKeyOperation ¶ added in v0.5.1
type RemoveKeyOperation struct { Entry KeySpecParams `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` // contains filtered or unexported fields }
func (*RemoveKeyOperation) Copy ¶ added in v0.5.1
func (v *RemoveKeyOperation) Copy() *RemoveKeyOperation
func (*RemoveKeyOperation) CopyAsInterface ¶ added in v0.5.1
func (v *RemoveKeyOperation) CopyAsInterface() interface{}
func (*RemoveKeyOperation) Equal ¶ added in v0.5.1
func (v *RemoveKeyOperation) Equal(u *RemoveKeyOperation) bool
func (*RemoveKeyOperation) IsValid ¶ added in v0.5.1
func (v *RemoveKeyOperation) IsValid() error
func (*RemoveKeyOperation) MarshalBinary ¶ added in v0.5.1
func (v *RemoveKeyOperation) MarshalBinary() ([]byte, error)
func (*RemoveKeyOperation) MarshalJSON ¶ added in v0.5.1
func (v *RemoveKeyOperation) MarshalJSON() ([]byte, error)
func (*RemoveKeyOperation) Type ¶ added in v0.5.1
func (*RemoveKeyOperation) Type() KeyPageOperationType
func (*RemoveKeyOperation) UnmarshalBinary ¶ added in v0.5.1
func (v *RemoveKeyOperation) UnmarshalBinary(data []byte) error
func (*RemoveKeyOperation) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *RemoveKeyOperation) UnmarshalBinaryFrom(rd io.Reader) error
func (*RemoveKeyOperation) UnmarshalJSON ¶ added in v0.5.1
func (v *RemoveKeyOperation) UnmarshalJSON(data []byte) error
type RemoveValidator ¶ added in v0.5.1
type RemoveValidator struct { PubKey []byte `json:"pubKey,omitempty" form:"pubKey" query:"pubKey" validate:"required"` // Owner reserved for future use. Owner *url.URL `json:"owner,omitempty" form:"owner" query:"owner"` // contains filtered or unexported fields }
func (*RemoveValidator) Copy ¶ added in v0.5.1
func (v *RemoveValidator) Copy() *RemoveValidator
func (*RemoveValidator) CopyAsInterface ¶ added in v0.5.1
func (v *RemoveValidator) CopyAsInterface() interface{}
func (*RemoveValidator) Equal ¶ added in v0.5.1
func (v *RemoveValidator) Equal(u *RemoveValidator) bool
func (*RemoveValidator) IsValid ¶ added in v0.5.1
func (v *RemoveValidator) IsValid() error
func (*RemoveValidator) MarshalBinary ¶ added in v0.5.1
func (v *RemoveValidator) MarshalBinary() ([]byte, error)
func (*RemoveValidator) MarshalJSON ¶ added in v0.5.1
func (v *RemoveValidator) MarshalJSON() ([]byte, error)
func (*RemoveValidator) Type ¶ added in v0.5.1
func (*RemoveValidator) Type() TransactionType
func (*RemoveValidator) UnmarshalBinary ¶ added in v0.5.1
func (v *RemoveValidator) UnmarshalBinary(data []byte) error
func (*RemoveValidator) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *RemoveValidator) UnmarshalBinaryFrom(rd io.Reader) error
func (*RemoveValidator) UnmarshalJSON ¶ added in v0.5.1
func (v *RemoveValidator) UnmarshalJSON(data []byte) error
type SegWitDataEntry ¶
type SegWitDataEntry struct { SyntheticOrigin 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) Copy ¶ added in v0.5.1
func (v *SegWitDataEntry) Copy() *SegWitDataEntry
func (*SegWitDataEntry) CopyAsInterface ¶ added in v0.5.1
func (v *SegWitDataEntry) CopyAsInterface() interface{}
func (*SegWitDataEntry) Equal ¶
func (v *SegWitDataEntry) Equal(u *SegWitDataEntry) bool
func (*SegWitDataEntry) GetCause ¶
func (tx *SegWitDataEntry) GetCause() [32]byte
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) Copy ¶ added in v0.5.1
func (v *SendTokens) Copy() *SendTokens
func (*SendTokens) CopyAsInterface ¶ added in v0.5.1
func (v *SendTokens) CopyAsInterface() interface{}
func (*SendTokens) Equal ¶
func (v *SendTokens) Equal(u *SendTokens) bool
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 TransactionBody `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) Copy ¶ added in v0.6.0
func (v *SendTransaction) Copy() *SendTransaction
func (*SendTransaction) CopyAsInterface ¶ added in v0.6.0
func (v *SendTransaction) CopyAsInterface() interface{}
func (*SendTransaction) Equal ¶ added in v0.6.0
func (v *SendTransaction) Equal(u *SendTransaction) bool
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 SetThresholdKeyPageOperation ¶ added in v0.5.1
type SetThresholdKeyPageOperation struct { Threshold uint64 `json:"threshold,omitempty" form:"threshold" query:"threshold" validate:"required"` // contains filtered or unexported fields }
func (*SetThresholdKeyPageOperation) Copy ¶ added in v0.5.1
func (v *SetThresholdKeyPageOperation) Copy() *SetThresholdKeyPageOperation
func (*SetThresholdKeyPageOperation) CopyAsInterface ¶ added in v0.5.1
func (v *SetThresholdKeyPageOperation) CopyAsInterface() interface{}
func (*SetThresholdKeyPageOperation) Equal ¶ added in v0.5.1
func (v *SetThresholdKeyPageOperation) Equal(u *SetThresholdKeyPageOperation) bool
func (*SetThresholdKeyPageOperation) IsValid ¶ added in v0.5.1
func (v *SetThresholdKeyPageOperation) IsValid() error
func (*SetThresholdKeyPageOperation) MarshalBinary ¶ added in v0.5.1
func (v *SetThresholdKeyPageOperation) MarshalBinary() ([]byte, error)
func (*SetThresholdKeyPageOperation) MarshalJSON ¶ added in v0.5.1
func (v *SetThresholdKeyPageOperation) MarshalJSON() ([]byte, error)
func (*SetThresholdKeyPageOperation) Type ¶ added in v0.5.1
func (*SetThresholdKeyPageOperation) Type() KeyPageOperationType
func (*SetThresholdKeyPageOperation) UnmarshalBinary ¶ added in v0.5.1
func (v *SetThresholdKeyPageOperation) UnmarshalBinary(data []byte) error
func (*SetThresholdKeyPageOperation) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *SetThresholdKeyPageOperation) UnmarshalBinaryFrom(rd io.Reader) error
func (*SetThresholdKeyPageOperation) UnmarshalJSON ¶ added in v0.5.1
func (v *SetThresholdKeyPageOperation) UnmarshalJSON(data []byte) error
type Signature ¶
type Signature interface { encoding.BinaryValue Type() SignatureType Verify(hash []byte) bool Hash() []byte MetadataHash() []byte InitiatorHash() ([]byte, error) GetVote() VoteType GetSigner() *url.URL GetSignerVersion() uint64 GetTimestamp() uint64 GetPublicKeyHash() []byte GetSignature() []byte GetTransactionHash() [32]byte }
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 SignatureTypeBTC SignatureType = 8
SignatureTypeBTC represents an BTC signature.
const SignatureTypeBTCLegacy SignatureType = 9
SignatureTypeBTCLegacy represents an BTC signature with uncompressed public key.
const SignatureTypeED25519 SignatureType = 2
SignatureTypeED25519 represents an ED25519 signature.
const SignatureTypeETH SignatureType = 10
SignatureTypeETH represents an ETH signature.
const SignatureTypeForwarded SignatureType = 7
SignatureTypeForwarded is used when forwarding signatures from one subnet to another.
const SignatureTypeInternal SignatureType = 6
SignatureTypeInternal is used when executing transactions internally.
const SignatureTypeLegacyED25519 SignatureType = 1
SignatureTypeLegacyED25519 represents a legacy ED25519 signature.
const SignatureTypeRCD1 SignatureType = 3
SignatureTypeRCD1 represents an RCD1 signature.
const SignatureTypeReceipt SignatureType = 4
SignatureTypeReceipt represents a Merkle tree receipt.
const SignatureTypeSynthetic SignatureType = 5
SignatureTypeSynthetic is used when sending synthetic transactions.
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) GetEnumValue ¶ added in v0.5.1
func (v SignatureType) GetEnumValue() uint64
GetEnumValue returns the value of the Signature Type
func (SignatureType) IsSystem ¶ added in v0.5.1
func (s SignatureType) IsSystem() bool
IsSystem returns true if the signature type is a system signature type.
func (SignatureType) MarshalJSON ¶
func (v SignatureType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Signature Type to JSON as a string.
func (*SignatureType) SetEnumValue ¶ added in v0.5.1
func (v *SignatureType) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue 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) UnmarshalJSON ¶
func (v *SignatureType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Signature Type from JSON as a string.
type Signer ¶ added in v0.6.0
type Signer interface { AccountWithCredits GetVersion() uint64 GetSignatureThreshold() uint64 EntryByKey(key []byte) (int, KeyEntry, bool) EntryByKeyHash(keyHash []byte) (int, KeyEntry, bool) }
func MakeLiteSigner ¶ added in v0.6.0
MakeLiteSigner returns a copy of the signer with some fields removed. This is used for forwarding signers and storing signers in the transaction status.
func UnmarshalSigner ¶ added in v0.6.0
func UnmarshalSignerJSON ¶ added in v0.6.0
type SynthTxnWithOrigin ¶ added in v0.5.1
type SyntheticAnchor ¶
type SyntheticAnchor struct { // Source is the principal of the transaction that produced this transaction. Source *url.URL `json:"source,omitempty" form:"source" query:"source" validate:"required"` // Major indicates whether the anchor is a major block anchor. Major bool `json:"major,omitempty" form:"major" query:"major" validate:"required"` // RootAnchor is the anchor of the source's root anchor chain. RootAnchor [32]byte `json:"rootAnchor,omitempty" form:"rootAnchor" query:"rootAnchor" validate:"required"` // RootIndex is the index of the root anchor chain anchor. RootIndex uint64 `json:"rootIndex,omitempty" form:"rootIndex" query:"rootIndex" validate:"required"` // AcmeBurnt is the amount of acme tokens burnt in the transaction. AcmeBurnt big.Int `json:"acmeBurnt,omitempty" form:"acmeBurnt" query:"acmeBurnt" validate:"required"` // Block is the index of the block. Block uint64 `json:"block,omitempty" form:"block" query:"block" validate:"required"` AcmeOraclePrice uint64 `json:"acmeOraclePrice,omitempty" form:"acmeOraclePrice" query:"acmeOraclePrice" validate:"required"` // Receipts are receipts for anchors from other subnets that were included in the block. Receipts []Receipt `json:"receipts,omitempty" form:"receipts" query:"receipts" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticAnchor) Copy ¶ added in v0.5.1
func (v *SyntheticAnchor) Copy() *SyntheticAnchor
func (*SyntheticAnchor) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticAnchor) CopyAsInterface() interface{}
func (*SyntheticAnchor) Equal ¶
func (v *SyntheticAnchor) Equal(u *SyntheticAnchor) bool
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 { SyntheticOrigin Amount big.Int `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticBurnTokens) Copy ¶ added in v0.5.1
func (v *SyntheticBurnTokens) Copy() *SyntheticBurnTokens
func (*SyntheticBurnTokens) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticBurnTokens) CopyAsInterface() interface{}
func (*SyntheticBurnTokens) Equal ¶
func (v *SyntheticBurnTokens) Equal(u *SyntheticBurnTokens) bool
func (*SyntheticBurnTokens) GetCause ¶
func (tx *SyntheticBurnTokens) GetCause() [32]byte
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 { SyntheticOrigin Chains []ChainParams `json:"chains,omitempty" form:"chains" query:"chains" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticCreateChain) Copy ¶ added in v0.5.1
func (v *SyntheticCreateChain) Copy() *SyntheticCreateChain
func (*SyntheticCreateChain) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticCreateChain) CopyAsInterface() interface{}
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) 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 { SyntheticOrigin Amount uint64 `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticDepositCredits) Copy ¶ added in v0.5.1
func (v *SyntheticDepositCredits) Copy() *SyntheticDepositCredits
func (*SyntheticDepositCredits) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticDepositCredits) CopyAsInterface() interface{}
func (*SyntheticDepositCredits) Equal ¶
func (v *SyntheticDepositCredits) Equal(u *SyntheticDepositCredits) bool
func (*SyntheticDepositCredits) GetCause ¶
func (tx *SyntheticDepositCredits) GetCause() [32]byte
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 { SyntheticOrigin 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) Copy ¶ added in v0.5.1
func (v *SyntheticDepositTokens) Copy() *SyntheticDepositTokens
func (*SyntheticDepositTokens) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticDepositTokens) CopyAsInterface() interface{}
func (*SyntheticDepositTokens) Equal ¶
func (v *SyntheticDepositTokens) Equal(u *SyntheticDepositTokens) bool
func (*SyntheticDepositTokens) GetCause ¶
func (tx *SyntheticDepositTokens) GetCause() [32]byte
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 SyntheticForwardTransaction ¶ added in v0.6.0
type SyntheticForwardTransaction struct { Signatures []ForwardedSignature `json:"signatures,omitempty" form:"signatures" query:"signatures" validate:"required"` Transaction *Transaction `json:"transaction,omitempty" form:"transaction" query:"transaction"` // contains filtered or unexported fields }
func (*SyntheticForwardTransaction) Copy ¶ added in v0.6.0
func (v *SyntheticForwardTransaction) Copy() *SyntheticForwardTransaction
func (*SyntheticForwardTransaction) CopyAsInterface ¶ added in v0.6.0
func (v *SyntheticForwardTransaction) CopyAsInterface() interface{}
func (*SyntheticForwardTransaction) Equal ¶ added in v0.6.0
func (v *SyntheticForwardTransaction) Equal(u *SyntheticForwardTransaction) bool
func (*SyntheticForwardTransaction) IsValid ¶ added in v0.6.0
func (v *SyntheticForwardTransaction) IsValid() error
func (*SyntheticForwardTransaction) MarshalBinary ¶ added in v0.6.0
func (v *SyntheticForwardTransaction) MarshalBinary() ([]byte, error)
func (*SyntheticForwardTransaction) MarshalJSON ¶ added in v0.6.0
func (v *SyntheticForwardTransaction) MarshalJSON() ([]byte, error)
func (*SyntheticForwardTransaction) Type ¶ added in v0.6.0
func (*SyntheticForwardTransaction) Type() TransactionType
func (*SyntheticForwardTransaction) UnmarshalBinary ¶ added in v0.6.0
func (v *SyntheticForwardTransaction) UnmarshalBinary(data []byte) error
func (*SyntheticForwardTransaction) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *SyntheticForwardTransaction) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticForwardTransaction) UnmarshalJSON ¶ added in v0.6.0
func (v *SyntheticForwardTransaction) UnmarshalJSON(data []byte) error
type SyntheticLedger ¶
type SyntheticLedger struct { Nonce uint64 `json:"nonce,omitempty" form:"nonce" query:"nonce" 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) Copy ¶ added in v0.5.1
func (v *SyntheticLedger) Copy() *SyntheticLedger
func (*SyntheticLedger) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticLedger) CopyAsInterface() interface{}
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 SyntheticLedgerEntry ¶ added in v0.5.1
type SyntheticLedgerEntry struct { // TransactionHash is the hash of the synthetic transaction. TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash" validate:"required"` // RootAnchor is the anchor of the root chain from the block. RootAnchor [32]byte `json:"rootAnchor,omitempty" form:"rootAnchor" query:"rootAnchor" validate:"required"` // SynthIndex is the index of the transaction in the synthetic transaction chain. SynthIndex uint64 `json:"synthIndex,omitempty" form:"synthIndex" query:"synthIndex" validate:"required"` // SynthIndexIndex is the index of the synthetic transaction index chain entry from the block. SynthIndexIndex uint64 `json:"synthIndexIndex,omitempty" form:"synthIndexIndex" query:"synthIndexIndex" validate:"required"` // RootIndexIndex is the index of the root index chain entry from the block. RootIndexIndex uint64 `json:"rootIndexIndex,omitempty" form:"rootIndexIndex" query:"rootIndexIndex" validate:"required"` // NeedsReceipt indicates whether the synthetic transaction is waiting for a receipt. NeedsReceipt bool `json:"needsReceipt,omitempty" form:"needsReceipt" query:"needsReceipt" validate:"required"` // contains filtered or unexported fields }
SyntheticLedgerEntry contains the information needed to produce a receipt for a synthetic transaction that was produced in some block.
func (*SyntheticLedgerEntry) Copy ¶ added in v0.5.1
func (v *SyntheticLedgerEntry) Copy() *SyntheticLedgerEntry
func (*SyntheticLedgerEntry) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticLedgerEntry) CopyAsInterface() interface{}
func (*SyntheticLedgerEntry) Equal ¶ added in v0.5.1
func (v *SyntheticLedgerEntry) Equal(u *SyntheticLedgerEntry) bool
func (*SyntheticLedgerEntry) IsValid ¶ added in v0.5.1
func (v *SyntheticLedgerEntry) IsValid() error
func (*SyntheticLedgerEntry) MarshalBinary ¶ added in v0.5.1
func (v *SyntheticLedgerEntry) MarshalBinary() ([]byte, error)
func (*SyntheticLedgerEntry) MarshalJSON ¶ added in v0.5.1
func (v *SyntheticLedgerEntry) MarshalJSON() ([]byte, error)
func (*SyntheticLedgerEntry) UnmarshalBinary ¶ added in v0.5.1
func (v *SyntheticLedgerEntry) UnmarshalBinary(data []byte) error
func (*SyntheticLedgerEntry) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *SyntheticLedgerEntry) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticLedgerEntry) UnmarshalJSON ¶ added in v0.5.1
func (v *SyntheticLedgerEntry) 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) Copy ¶ added in v0.5.1
func (v *SyntheticMirror) Copy() *SyntheticMirror
func (*SyntheticMirror) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticMirror) CopyAsInterface() interface{}
func (*SyntheticMirror) Equal ¶
func (v *SyntheticMirror) Equal(u *SyntheticMirror) bool
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 SyntheticOrigin ¶ added in v0.5.1
type SyntheticOrigin struct { // Source is the principal of the transaction that produced this transaction. Source *url.URL `json:"source,omitempty" form:"source" query:"source" validate:"required"` Cause [32]byte `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticOrigin) Copy ¶ added in v0.5.1
func (v *SyntheticOrigin) Copy() *SyntheticOrigin
func (*SyntheticOrigin) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticOrigin) CopyAsInterface() interface{}
func (*SyntheticOrigin) Equal ¶ added in v0.5.1
func (v *SyntheticOrigin) Equal(u *SyntheticOrigin) bool
func (*SyntheticOrigin) GetSyntheticOrigin ¶ added in v0.5.1
func (so *SyntheticOrigin) GetSyntheticOrigin() (cause []byte, source *url.URL)
func (*SyntheticOrigin) IsValid ¶ added in v0.5.1
func (v *SyntheticOrigin) IsValid() error
func (*SyntheticOrigin) MarshalBinary ¶ added in v0.5.1
func (v *SyntheticOrigin) MarshalBinary() ([]byte, error)
func (*SyntheticOrigin) MarshalJSON ¶ added in v0.5.1
func (v *SyntheticOrigin) MarshalJSON() ([]byte, error)
func (*SyntheticOrigin) SetSyntheticOrigin ¶ added in v0.5.1
func (so *SyntheticOrigin) SetSyntheticOrigin(cause []byte, source *url.URL)
func (*SyntheticOrigin) UnmarshalBinary ¶ added in v0.5.1
func (v *SyntheticOrigin) UnmarshalBinary(data []byte) error
func (*SyntheticOrigin) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *SyntheticOrigin) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticOrigin) UnmarshalJSON ¶ added in v0.5.1
func (v *SyntheticOrigin) UnmarshalJSON(data []byte) error
type SyntheticReceipt ¶ added in v0.5.1
type SyntheticReceipt struct { SyntheticOrigin SynthTxHash [32]byte `json:"synthTxHash,omitempty" form:"synthTxHash" query:"synthTxHash" validate:"required"` Status *TransactionStatus `json:"status,omitempty" form:"status" query:"status" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticReceipt) Copy ¶ added in v0.5.1
func (v *SyntheticReceipt) Copy() *SyntheticReceipt
func (*SyntheticReceipt) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticReceipt) CopyAsInterface() interface{}
func (*SyntheticReceipt) Equal ¶ added in v0.5.1
func (v *SyntheticReceipt) Equal(u *SyntheticReceipt) bool
func (*SyntheticReceipt) IsValid ¶ added in v0.5.1
func (v *SyntheticReceipt) IsValid() error
func (*SyntheticReceipt) MarshalBinary ¶ added in v0.5.1
func (v *SyntheticReceipt) MarshalBinary() ([]byte, error)
func (*SyntheticReceipt) MarshalJSON ¶ added in v0.5.1
func (v *SyntheticReceipt) MarshalJSON() ([]byte, error)
func (*SyntheticReceipt) Type ¶ added in v0.5.1
func (*SyntheticReceipt) Type() TransactionType
func (*SyntheticReceipt) UnmarshalBinary ¶ added in v0.5.1
func (v *SyntheticReceipt) UnmarshalBinary(data []byte) error
func (*SyntheticReceipt) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *SyntheticReceipt) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticReceipt) UnmarshalJSON ¶ added in v0.5.1
func (v *SyntheticReceipt) UnmarshalJSON(data []byte) error
type SyntheticSignature ¶ added in v0.5.1
type SyntheticSignature struct { // SourceNetwork is the network that produced the transaction. SourceNetwork *url.URL `json:"sourceNetwork,omitempty" form:"sourceNetwork" query:"sourceNetwork" validate:"required"` // DestinationNetwork is the network that the transaction is sent to. DestinationNetwork *url.URL `json:"destinationNetwork,omitempty" form:"destinationNetwork" query:"destinationNetwork" validate:"required"` // SequenceNumber is the sequence number of the transaction. SequenceNumber uint64 `json:"sequenceNumber,omitempty" form:"sequenceNumber" query:"sequenceNumber" validate:"required"` TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash"` // contains filtered or unexported fields }
SyntheticSignature is used to initiate transactions between BVNs.
func (*SyntheticSignature) Copy ¶ added in v0.5.1
func (v *SyntheticSignature) Copy() *SyntheticSignature
func (*SyntheticSignature) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticSignature) CopyAsInterface() interface{}
func (*SyntheticSignature) Equal ¶ added in v0.5.1
func (v *SyntheticSignature) Equal(u *SyntheticSignature) bool
func (*SyntheticSignature) GetPublicKeyHash ¶ added in v0.6.0
func (s *SyntheticSignature) GetPublicKeyHash() []byte
GetPublicKey returns nil.
func (*SyntheticSignature) GetSignature ¶ added in v0.5.1
func (s *SyntheticSignature) GetSignature() []byte
GetSignature returns nil.
func (*SyntheticSignature) GetSigner ¶ added in v0.5.1
func (s *SyntheticSignature) GetSigner() *url.URL
GetSigner returns the URL of the destination network's validator key page.
func (*SyntheticSignature) GetSignerVersion ¶ added in v0.5.1
func (s *SyntheticSignature) GetSignerVersion() uint64
GetSignerVersion returns 1.
func (*SyntheticSignature) GetTimestamp ¶ added in v0.5.1
func (s *SyntheticSignature) GetTimestamp() uint64
GetTimestamp returns 1.
func (*SyntheticSignature) GetTransactionHash ¶ added in v0.6.0
func (s *SyntheticSignature) GetTransactionHash() [32]byte
GetTransactionHash returns TransactionHash.
func (*SyntheticSignature) GetVote ¶ added in v0.6.0
func (s *SyntheticSignature) GetVote() VoteType
GetVote returns how the signer votes on a particular transaction
func (*SyntheticSignature) Hash ¶ added in v0.5.1
func (s *SyntheticSignature) Hash() []byte
Hash returns the hash of the signature.
func (*SyntheticSignature) InitiatorHash ¶ added in v0.5.1
func (s *SyntheticSignature) InitiatorHash() ([]byte, error)
InitiatorHash calculates the Merkle hash of the signature.
func (*SyntheticSignature) IsValid ¶ added in v0.5.1
func (v *SyntheticSignature) IsValid() error
func (*SyntheticSignature) MarshalBinary ¶ added in v0.5.1
func (v *SyntheticSignature) MarshalBinary() ([]byte, error)
func (*SyntheticSignature) MarshalJSON ¶ added in v0.5.1
func (v *SyntheticSignature) MarshalJSON() ([]byte, error)
func (*SyntheticSignature) MetadataHash ¶ added in v0.5.1
func (s *SyntheticSignature) MetadataHash() []byte
MetadataHash hashes the signature metadata.
func (*SyntheticSignature) Type ¶ added in v0.5.1
func (*SyntheticSignature) Type() SignatureType
func (*SyntheticSignature) UnmarshalBinary ¶ added in v0.5.1
func (v *SyntheticSignature) UnmarshalBinary(data []byte) error
func (*SyntheticSignature) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *SyntheticSignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticSignature) UnmarshalJSON ¶ added in v0.5.1
func (v *SyntheticSignature) UnmarshalJSON(data []byte) error
func (*SyntheticSignature) Verify ¶ added in v0.5.1
func (s *SyntheticSignature) Verify(hash []byte) bool
Verify returns true.
type SyntheticTransaction ¶
type SyntheticTransaction interface { TransactionBody GetCause() [32]byte }
type SyntheticWriteData ¶
type SyntheticWriteData struct { SyntheticOrigin Entry DataEntry `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticWriteData) Copy ¶ added in v0.5.1
func (v *SyntheticWriteData) Copy() *SyntheticWriteData
func (*SyntheticWriteData) CopyAsInterface ¶ added in v0.5.1
func (v *SyntheticWriteData) CopyAsInterface() interface{}
func (*SyntheticWriteData) Equal ¶
func (v *SyntheticWriteData) Equal(u *SyntheticWriteData) bool
func (*SyntheticWriteData) GetCause ¶
func (tx *SyntheticWriteData) GetCause() [32]byte
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 { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` AccountAuth 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) Copy ¶ added in v0.5.1
func (v *TokenAccount) Copy() *TokenAccount
func (*TokenAccount) CopyAsInterface ¶ added in v0.5.1
func (v *TokenAccount) CopyAsInterface() interface{}
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) GetAuth ¶ added in v0.6.0
func (a *TokenAccount) GetAuth() *AccountAuth
func (*TokenAccount) GetTokenUrl ¶ added in v0.5.1
func (acct *TokenAccount) GetTokenUrl() *url.URL
func (*TokenAccount) GetUrl ¶ added in v0.6.0
func (a *TokenAccount) GetUrl() *url.URL
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) 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 TokenIssuer ¶
type TokenIssuer struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` AccountAuth 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"` Issued big.Int `json:"issued,omitempty" form:"issued" query:"issued" validate:"required"` SupplyLimit *big.Int `json:"supplyLimit,omitempty" form:"supplyLimit" query:"supplyLimit"` // contains filtered or unexported fields }
func (*TokenIssuer) Copy ¶ added in v0.5.1
func (v *TokenIssuer) Copy() *TokenIssuer
func (*TokenIssuer) CopyAsInterface ¶ added in v0.5.1
func (v *TokenIssuer) CopyAsInterface() interface{}
func (*TokenIssuer) Equal ¶
func (v *TokenIssuer) Equal(u *TokenIssuer) bool
func (*TokenIssuer) GetAuth ¶ added in v0.6.0
func (a *TokenIssuer) GetAuth() *AccountAuth
func (*TokenIssuer) GetUrl ¶ added in v0.6.0
func (a *TokenIssuer) GetUrl() *url.URL
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) Copy ¶ added in v0.5.1
func (v *TokenRecipient) Copy() *TokenRecipient
func (*TokenRecipient) CopyAsInterface ¶ added in v0.5.1
func (v *TokenRecipient) CopyAsInterface() interface{}
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 { Header TransactionHeader `json:"header,omitempty" form:"header" query:"header" validate:"required"` Body TransactionBody `json:"body,omitempty" form:"body" query:"body" validate:"required"` // contains filtered or unexported fields }
func (*Transaction) Copy ¶ added in v0.5.1
func (v *Transaction) Copy() *Transaction
func (*Transaction) CopyAsInterface ¶ added in v0.5.1
func (v *Transaction) CopyAsInterface() interface{}
func (*Transaction) Equal ¶
func (v *Transaction) Equal(u *Transaction) bool
func (*Transaction) GetHash ¶ added in v0.5.1
func (t *Transaction) GetHash() []byte
Hash calculates the hash of the transaction as H(H(header) + H(body)).
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) SetHash ¶ added in v0.6.0
func (t *Transaction) SetHash(hash []byte) error
SetHash sets the hash returned by GetHash. This will return an error if the body type is not Remote.
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 Type() TransactionType }
func NewTransactionBody ¶
func NewTransactionBody(typ TransactionType) (TransactionBody, error)
NewTransactionBody creates a new TransactionBody for the specified TransactionType.
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.
type TransactionHeader ¶
type TransactionHeader struct { Principal *url.URL `json:"principal,omitempty" form:"principal" query:"principal" validate:"required"` Initiator [32]byte `json:"initiator,omitempty" form:"initiator" query:"initiator" validate:"required"` Memo string `json:"memo,omitempty" form:"memo" query:"memo"` Metadata []byte `json:"metadata,omitempty" form:"metadata" query:"metadata"` // contains filtered or unexported fields }
func (*TransactionHeader) Copy ¶ added in v0.5.1
func (v *TransactionHeader) Copy() *TransactionHeader
func (*TransactionHeader) CopyAsInterface ¶ added in v0.5.1
func (v *TransactionHeader) CopyAsInterface() interface{}
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) MarshalJSON ¶ added in v0.5.1
func (v *TransactionHeader) MarshalJSON() ([]byte, error)
func (*TransactionHeader) UnmarshalBinary ¶
func (v *TransactionHeader) UnmarshalBinary(data []byte) error
func (*TransactionHeader) UnmarshalBinaryFrom ¶
func (v *TransactionHeader) UnmarshalBinaryFrom(rd io.Reader) error
func (*TransactionHeader) UnmarshalJSON ¶ added in v0.5.1
func (v *TransactionHeader) UnmarshalJSON(data []byte) 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 = 48
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) GetEnumValue ¶ added in v0.5.1
func (v TransactionMax) GetEnumValue() uint64
GetEnumValue returns the value of the Transaction Max
func (TransactionMax) MarshalJSON ¶
func (v TransactionMax) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Transaction Max to JSON as a string.
func (*TransactionMax) SetEnumValue ¶ added in v0.5.1
func (v *TransactionMax) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue 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) UnmarshalJSON ¶
func (v *TransactionMax) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Transaction Max from JSON as a string.
type TransactionResult ¶
type TransactionResult interface { 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 TransactionResultSet ¶ added in v0.5.1
type TransactionResultSet struct { Results []*TransactionStatus `json:"results,omitempty" form:"results" query:"results" validate:"required"` // contains filtered or unexported fields }
func (*TransactionResultSet) Copy ¶ added in v0.5.1
func (v *TransactionResultSet) Copy() *TransactionResultSet
func (*TransactionResultSet) CopyAsInterface ¶ added in v0.5.1
func (v *TransactionResultSet) CopyAsInterface() interface{}
func (*TransactionResultSet) Equal ¶ added in v0.5.1
func (v *TransactionResultSet) Equal(u *TransactionResultSet) bool
func (*TransactionResultSet) IsValid ¶ added in v0.5.1
func (v *TransactionResultSet) IsValid() error
func (*TransactionResultSet) MarshalBinary ¶ added in v0.5.1
func (v *TransactionResultSet) MarshalBinary() ([]byte, error)
func (*TransactionResultSet) MarshalJSON ¶ added in v0.6.0
func (v *TransactionResultSet) MarshalJSON() ([]byte, error)
func (*TransactionResultSet) UnmarshalBinary ¶ added in v0.5.1
func (v *TransactionResultSet) UnmarshalBinary(data []byte) error
func (*TransactionResultSet) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *TransactionResultSet) UnmarshalBinaryFrom(rd io.Reader) error
func (*TransactionResultSet) UnmarshalJSON ¶ added in v0.6.0
func (v *TransactionResultSet) UnmarshalJSON(data []byte) 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) Copy ¶ added in v0.5.1
func (v *TransactionSignature) Copy() *TransactionSignature
func (*TransactionSignature) CopyAsInterface ¶ added in v0.5.1
func (v *TransactionSignature) CopyAsInterface() interface{}
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 TransactionStatus ¶
type TransactionStatus struct { // For is the transaction this status is for. For [32]byte 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"` Error *errors2.Error `json:"error,omitempty" form:"error" query:"error" validate:"required"` Result TransactionResult `json:"result,omitempty" form:"result" query:"result" validate:"required"` // Initiator is the signer that initiated the transaction. Initiator *url.URL `json:"initiator,omitempty" form:"initiator" query:"initiator" validate:"required"` // Signers lists accounts that have signed the transaction. Signers []Signer `json:"signers,omitempty" form:"signers" query:"signers" validate:"required"` // contains filtered or unexported fields }
func (*TransactionStatus) AddSigner ¶ added in v0.5.1
func (s *TransactionStatus) AddSigner(signer Signer)
AddSigner adds a signer to the object's list of signer using a binary search to ensure ordering.
func (*TransactionStatus) Copy ¶ added in v0.5.1
func (v *TransactionStatus) Copy() *TransactionStatus
func (*TransactionStatus) CopyAsInterface ¶ added in v0.5.1
func (v *TransactionStatus) CopyAsInterface() interface{}
func (*TransactionStatus) Equal ¶
func (v *TransactionStatus) Equal(u *TransactionStatus) bool
func (*TransactionStatus) FindSigners ¶ added in v0.6.0
func (s *TransactionStatus) FindSigners(authority *url.URL) []Signer
func (*TransactionStatus) GetSigner ¶ added in v0.6.0
func (s *TransactionStatus) GetSigner(entry *url.URL) (Signer, 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 TransactionTypeAddValidator TransactionType = 18
TransactionTypeAddValidator add a validator.
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 TransactionTypeRemote TransactionType = 48
TransactionTypeRemote is used to sign a remote transaction.
const TransactionTypeRemoveValidator TransactionType = 19
TransactionTypeRemoveValidator remove a validator.
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 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 TransactionTypeSyntheticForwardTransaction TransactionType = 55
TransactionTypeSyntheticForwardTransaction forwards a transaction from one subnet to another.
const TransactionTypeSyntheticMirror TransactionType = 56
TransactionTypeSyntheticMirror mirrors records from one network to another.
const TransactionTypeSyntheticReceipt TransactionType = 64
TransactionTypeSyntheticReceipt notifies the sender of synthetic transactions when a transaction has failed..
const TransactionTypeSyntheticWriteData TransactionType = 50
TransactionTypeSyntheticWriteData writes data to a data account.
const TransactionTypeUnknown TransactionType = 0
TransactionTypeUnknown represents an unknown transaction type.
const TransactionTypeUpdateAccountAuth TransactionType = 21
TransactionTypeUpdateAccountAuth updates authorization for an account.
const TransactionTypeUpdateKey TransactionType = 22
TransactionTypeUpdateKey update key for existing keys.
const TransactionTypeUpdateKeyPage TransactionType = 15
TransactionTypeUpdateKeyPage adds, removes, or updates keys in a key page, which *does not* produce a synthetic transaction.
const TransactionTypeUpdateValidatorKey TransactionType = 20
TransactionTypeUpdateValidatorKey update a validator key.
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) AllowedTransactionBit ¶ added in v0.5.1
func (typ TransactionType) AllowedTransactionBit() (AllowedTransactionBit, bool)
AllowedTransactionBit returns the AllowedTransactionBit associated with this transaction type.
func (TransactionType) GetEnumValue ¶ added in v0.5.1
func (v TransactionType) GetEnumValue() uint64
GetEnumValue returns the value 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) MarshalJSON ¶
func (v TransactionType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Transaction Type to JSON as a string.
func (TransactionType) RequireAuthorization ¶ added in v0.6.0
func (typ TransactionType) RequireAuthorization() bool
RequireAuthorization returns true if the transaction type always requires authorization even if the account allows unauthorized signers.
func (*TransactionType) SetEnumValue ¶ added in v0.5.1
func (v *TransactionType) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue 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) UnmarshalJSON ¶
func (v *TransactionType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Transaction Type from JSON as a string.
type UnknownAccount ¶ added in v0.5.1
type UnknownAccount struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` // contains filtered or unexported fields }
func (*UnknownAccount) Copy ¶ added in v0.5.1
func (v *UnknownAccount) Copy() *UnknownAccount
func (*UnknownAccount) CopyAsInterface ¶ added in v0.5.1
func (v *UnknownAccount) CopyAsInterface() interface{}
func (*UnknownAccount) Equal ¶ added in v0.5.1
func (v *UnknownAccount) Equal(u *UnknownAccount) bool
func (*UnknownAccount) GetUrl ¶ added in v0.6.0
func (a *UnknownAccount) GetUrl() *url.URL
func (*UnknownAccount) IsValid ¶ added in v0.5.1
func (v *UnknownAccount) IsValid() error
func (*UnknownAccount) MarshalBinary ¶ added in v0.5.1
func (v *UnknownAccount) MarshalBinary() ([]byte, error)
func (*UnknownAccount) MarshalJSON ¶ added in v0.5.1
func (v *UnknownAccount) MarshalJSON() ([]byte, error)
func (*UnknownAccount) Type ¶ added in v0.5.1
func (*UnknownAccount) Type() AccountType
func (*UnknownAccount) UnmarshalBinary ¶ added in v0.5.1
func (v *UnknownAccount) UnmarshalBinary(data []byte) error
func (*UnknownAccount) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *UnknownAccount) UnmarshalBinaryFrom(rd io.Reader) error
func (*UnknownAccount) UnmarshalJSON ¶ added in v0.5.1
func (v *UnknownAccount) UnmarshalJSON(data []byte) error
type UnknownSigner ¶ added in v0.6.0
type UnknownSigner struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` Version uint64 `json:"version,omitempty" form:"version" query:"version" validate:"required"` // contains filtered or unexported fields }
func (*UnknownSigner) CanDebitCredits ¶ added in v0.6.0
func (*UnknownSigner) CanDebitCredits(amount uint64) bool
func (*UnknownSigner) Copy ¶ added in v0.6.0
func (v *UnknownSigner) Copy() *UnknownSigner
func (*UnknownSigner) CopyAsInterface ¶ added in v0.6.0
func (v *UnknownSigner) CopyAsInterface() interface{}
func (*UnknownSigner) CreditCredits ¶ added in v0.6.0
func (*UnknownSigner) CreditCredits(amount uint64)
func (*UnknownSigner) DebitCredits ¶ added in v0.6.0
func (*UnknownSigner) DebitCredits(amount uint64) bool
func (*UnknownSigner) EntryByKey ¶ added in v0.6.0
func (*UnknownSigner) EntryByKey(key []byte) (int, KeyEntry, bool)
func (*UnknownSigner) EntryByKeyHash ¶ added in v0.6.0
func (*UnknownSigner) EntryByKeyHash(keyHash []byte) (int, KeyEntry, bool)
func (*UnknownSigner) Equal ¶ added in v0.6.0
func (v *UnknownSigner) Equal(u *UnknownSigner) bool
func (*UnknownSigner) GetCreditBalance ¶ added in v0.6.0
func (*UnknownSigner) GetCreditBalance() uint64
func (*UnknownSigner) GetSignatureThreshold ¶ added in v0.6.0
func (*UnknownSigner) GetSignatureThreshold() uint64
func (*UnknownSigner) GetUrl ¶ added in v0.6.0
func (s *UnknownSigner) GetUrl() *url.URL
func (*UnknownSigner) GetVersion ¶ added in v0.6.0
func (s *UnknownSigner) GetVersion() uint64
func (*UnknownSigner) IsValid ¶ added in v0.6.0
func (v *UnknownSigner) IsValid() error
func (*UnknownSigner) MarshalBinary ¶ added in v0.6.0
func (v *UnknownSigner) MarshalBinary() ([]byte, error)
func (*UnknownSigner) MarshalJSON ¶ added in v0.6.0
func (v *UnknownSigner) MarshalJSON() ([]byte, error)
func (*UnknownSigner) Type ¶ added in v0.6.0
func (*UnknownSigner) Type() AccountType
func (*UnknownSigner) UnmarshalBinary ¶ added in v0.6.0
func (v *UnknownSigner) UnmarshalBinary(data []byte) error
func (*UnknownSigner) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *UnknownSigner) UnmarshalBinaryFrom(rd io.Reader) error
func (*UnknownSigner) UnmarshalJSON ¶ added in v0.6.0
func (v *UnknownSigner) UnmarshalJSON(data []byte) error
type UpdateAccountAuth ¶ added in v0.6.0
type UpdateAccountAuth struct { Operations []AccountAuthOperation `json:"operations,omitempty" form:"operations" query:"operations" validate:"required"` // contains filtered or unexported fields }
func (*UpdateAccountAuth) Copy ¶ added in v0.6.0
func (v *UpdateAccountAuth) Copy() *UpdateAccountAuth
func (*UpdateAccountAuth) CopyAsInterface ¶ added in v0.6.0
func (v *UpdateAccountAuth) CopyAsInterface() interface{}
func (*UpdateAccountAuth) Equal ¶ added in v0.6.0
func (v *UpdateAccountAuth) Equal(u *UpdateAccountAuth) bool
func (*UpdateAccountAuth) IsValid ¶ added in v0.6.0
func (v *UpdateAccountAuth) IsValid() error
func (*UpdateAccountAuth) MarshalBinary ¶ added in v0.6.0
func (v *UpdateAccountAuth) MarshalBinary() ([]byte, error)
func (*UpdateAccountAuth) MarshalJSON ¶ added in v0.6.0
func (v *UpdateAccountAuth) MarshalJSON() ([]byte, error)
func (*UpdateAccountAuth) Type ¶ added in v0.6.0
func (*UpdateAccountAuth) Type() TransactionType
func (*UpdateAccountAuth) UnmarshalBinary ¶ added in v0.6.0
func (v *UpdateAccountAuth) UnmarshalBinary(data []byte) error
func (*UpdateAccountAuth) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *UpdateAccountAuth) UnmarshalBinaryFrom(rd io.Reader) error
func (*UpdateAccountAuth) UnmarshalJSON ¶ added in v0.6.0
func (v *UpdateAccountAuth) UnmarshalJSON(data []byte) error
type UpdateAllowedKeyPageOperation ¶ added in v0.5.1
type UpdateAllowedKeyPageOperation struct { Allow []TransactionType `json:"allow,omitempty" form:"allow" query:"allow"` Deny []TransactionType `json:"deny,omitempty" form:"deny" query:"deny"` // contains filtered or unexported fields }
func (*UpdateAllowedKeyPageOperation) Copy ¶ added in v0.5.1
func (v *UpdateAllowedKeyPageOperation) Copy() *UpdateAllowedKeyPageOperation
func (*UpdateAllowedKeyPageOperation) CopyAsInterface ¶ added in v0.5.1
func (v *UpdateAllowedKeyPageOperation) CopyAsInterface() interface{}
func (*UpdateAllowedKeyPageOperation) Equal ¶ added in v0.5.1
func (v *UpdateAllowedKeyPageOperation) Equal(u *UpdateAllowedKeyPageOperation) bool
func (*UpdateAllowedKeyPageOperation) IsValid ¶ added in v0.5.1
func (v *UpdateAllowedKeyPageOperation) IsValid() error
func (*UpdateAllowedKeyPageOperation) MarshalBinary ¶ added in v0.5.1
func (v *UpdateAllowedKeyPageOperation) MarshalBinary() ([]byte, error)
func (*UpdateAllowedKeyPageOperation) MarshalJSON ¶ added in v0.5.1
func (v *UpdateAllowedKeyPageOperation) MarshalJSON() ([]byte, error)
func (*UpdateAllowedKeyPageOperation) Type ¶ added in v0.5.1
func (*UpdateAllowedKeyPageOperation) Type() KeyPageOperationType
func (*UpdateAllowedKeyPageOperation) UnmarshalBinary ¶ added in v0.5.1
func (v *UpdateAllowedKeyPageOperation) UnmarshalBinary(data []byte) error
func (*UpdateAllowedKeyPageOperation) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *UpdateAllowedKeyPageOperation) UnmarshalBinaryFrom(rd io.Reader) error
func (*UpdateAllowedKeyPageOperation) UnmarshalJSON ¶ added in v0.5.1
func (v *UpdateAllowedKeyPageOperation) UnmarshalJSON(data []byte) error
type UpdateKey ¶ added in v0.6.0
type UpdateKey struct { NewKeyHash []byte `json:"newKeyHash,omitempty" form:"newKeyHash" query:"newKeyHash" validate:"required"` // contains filtered or unexported fields }
func (*UpdateKey) CopyAsInterface ¶ added in v0.6.0
func (v *UpdateKey) CopyAsInterface() interface{}
func (*UpdateKey) MarshalBinary ¶ added in v0.6.0
func (*UpdateKey) MarshalJSON ¶ added in v0.6.0
func (*UpdateKey) Type ¶ added in v0.6.0
func (*UpdateKey) Type() TransactionType
func (*UpdateKey) UnmarshalBinary ¶ added in v0.6.0
func (*UpdateKey) UnmarshalBinaryFrom ¶ added in v0.6.0
func (*UpdateKey) UnmarshalJSON ¶ added in v0.6.0
type UpdateKeyOperation ¶ added in v0.5.1
type UpdateKeyOperation struct { OldEntry KeySpecParams `json:"oldEntry,omitempty" form:"oldEntry" query:"oldEntry" validate:"required"` NewEntry KeySpecParams `json:"newEntry,omitempty" form:"newEntry" query:"newEntry" validate:"required"` // contains filtered or unexported fields }
func (*UpdateKeyOperation) Copy ¶ added in v0.5.1
func (v *UpdateKeyOperation) Copy() *UpdateKeyOperation
func (*UpdateKeyOperation) CopyAsInterface ¶ added in v0.5.1
func (v *UpdateKeyOperation) CopyAsInterface() interface{}
func (*UpdateKeyOperation) Equal ¶ added in v0.5.1
func (v *UpdateKeyOperation) Equal(u *UpdateKeyOperation) bool
func (*UpdateKeyOperation) IsValid ¶ added in v0.5.1
func (v *UpdateKeyOperation) IsValid() error
func (*UpdateKeyOperation) MarshalBinary ¶ added in v0.5.1
func (v *UpdateKeyOperation) MarshalBinary() ([]byte, error)
func (*UpdateKeyOperation) MarshalJSON ¶ added in v0.5.1
func (v *UpdateKeyOperation) MarshalJSON() ([]byte, error)
func (*UpdateKeyOperation) Type ¶ added in v0.5.1
func (*UpdateKeyOperation) Type() KeyPageOperationType
func (*UpdateKeyOperation) UnmarshalBinary ¶ added in v0.5.1
func (v *UpdateKeyOperation) UnmarshalBinary(data []byte) error
func (*UpdateKeyOperation) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *UpdateKeyOperation) UnmarshalBinaryFrom(rd io.Reader) error
func (*UpdateKeyOperation) UnmarshalJSON ¶ added in v0.5.1
func (v *UpdateKeyOperation) UnmarshalJSON(data []byte) error
type UpdateKeyPage ¶
type UpdateKeyPage struct { Operation []KeyPageOperation `json:"operation,omitempty" form:"operation" query:"operation" validate:"required"` // contains filtered or unexported fields }
func (*UpdateKeyPage) Copy ¶ added in v0.5.1
func (v *UpdateKeyPage) Copy() *UpdateKeyPage
func (*UpdateKeyPage) CopyAsInterface ¶ added in v0.5.1
func (v *UpdateKeyPage) CopyAsInterface() interface{}
func (*UpdateKeyPage) Equal ¶
func (v *UpdateKeyPage) Equal(u *UpdateKeyPage) bool
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 UpdateValidatorKey ¶ added in v0.5.1
type UpdateValidatorKey struct { PubKey []byte `json:"pubKey,omitempty" form:"pubKey" query:"pubKey" validate:"required"` NewPubKey []byte `json:"newPubKey,omitempty" form:"newPubKey" query:"newPubKey" validate:"required"` // contains filtered or unexported fields }
func (*UpdateValidatorKey) Copy ¶ added in v0.5.1
func (v *UpdateValidatorKey) Copy() *UpdateValidatorKey
func (*UpdateValidatorKey) CopyAsInterface ¶ added in v0.5.1
func (v *UpdateValidatorKey) CopyAsInterface() interface{}
func (*UpdateValidatorKey) Equal ¶ added in v0.5.1
func (v *UpdateValidatorKey) Equal(u *UpdateValidatorKey) bool
func (*UpdateValidatorKey) IsValid ¶ added in v0.5.1
func (v *UpdateValidatorKey) IsValid() error
func (*UpdateValidatorKey) MarshalBinary ¶ added in v0.5.1
func (v *UpdateValidatorKey) MarshalBinary() ([]byte, error)
func (*UpdateValidatorKey) MarshalJSON ¶ added in v0.5.1
func (v *UpdateValidatorKey) MarshalJSON() ([]byte, error)
func (*UpdateValidatorKey) Type ¶ added in v0.5.1
func (*UpdateValidatorKey) Type() TransactionType
func (*UpdateValidatorKey) UnmarshalBinary ¶ added in v0.5.1
func (v *UpdateValidatorKey) UnmarshalBinary(data []byte) error
func (*UpdateValidatorKey) UnmarshalBinaryFrom ¶ added in v0.5.1
func (v *UpdateValidatorKey) UnmarshalBinaryFrom(rd io.Reader) error
func (*UpdateValidatorKey) UnmarshalJSON ¶ added in v0.5.1
func (v *UpdateValidatorKey) UnmarshalJSON(data []byte) error
type VoteType ¶ added in v0.6.0
type VoteType uint64
VoteType specifies how the user wants to vote on a proposal (e.g. transaction, initiative, etc)
const VoteTypeAbstain VoteType = 2
VoteTypeAbstain chose not to vote on a proposal.
const VoteTypeAccept VoteType = 0
VoteTypeAccept vote yea in favor of proposal.
const VoteTypeReject VoteType = 1
VoteTypeReject vote nay against a proposal.
const VoteTypeSuggest VoteType = 3
VoteTypeSuggest put forth a proposal.
func VoteTypeByName ¶ added in v0.6.0
VoteTypeByName returns the named Vote Type.
func (VoteType) GetEnumValue ¶ added in v0.6.0
GetEnumValue returns the value of the Vote Type
func (VoteType) MarshalJSON ¶ added in v0.6.0
MarshalJSON marshals the Vote Type to JSON as a string.
func (*VoteType) SetEnumValue ¶ added in v0.6.0
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (*VoteType) UnmarshalJSON ¶ added in v0.6.0
UnmarshalJSON unmarshals the Vote Type from JSON as a string.
type WriteData ¶
type WriteData struct { Entry DataEntry `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` // contains filtered or unexported fields }
func (*WriteData) CopyAsInterface ¶ added in v0.5.1
func (v *WriteData) CopyAsInterface() interface{}
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) Copy ¶ added in v0.5.1
func (v *WriteDataResult) Copy() *WriteDataResult
func (*WriteDataResult) CopyAsInterface ¶ added in v0.5.1
func (v *WriteDataResult) CopyAsInterface() interface{}
func (*WriteDataResult) Equal ¶
func (v *WriteDataResult) Equal(u *WriteDataResult) bool
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) Copy ¶ added in v0.5.1
func (v *WriteDataTo) Copy() *WriteDataTo
func (*WriteDataTo) CopyAsInterface ¶ added in v0.5.1
func (v *WriteDataTo) CopyAsInterface() interface{}
func (*WriteDataTo) Equal ¶
func (v *WriteDataTo) Equal(u *WriteDataTo) bool
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 ¶
- 2_testnet.go
- access_control.go
- account_auth.go
- accounts.go
- authority.go
- data_entry.go
- enums_gen.go
- envelope.go
- errors.go
- factoid.go
- faucet.go
- fee_schedule.go
- format.go
- hash_set.go
- keys.go
- lite_data_account.go
- lite_data_entry.go
- object.go
- protocol.go
- receipt.go
- signature.go
- synthetic_origin.go
- token_account.go
- transaction.go
- tx_result.go
- types.go
- types_gen.go
- unions.go
- unions_gen.go