Documentation ¶
Index ¶
- Constants
- Variables
- func AccountUrl(rootIdentity string, path ...string) *url.URL
- func AcmeUrl() *url.URL
- func BTCHash(pubKey []byte) []byte
- func BTCaddress(pubKey []byte) string
- func BelongsToDn(u *url.URL) bool
- func BvnNameFromPartitionId(partition string) string
- func CheckDataEntrySize(e DataEntry) (int, error)
- func ComputeFactomEntryHash(data []byte) []byte
- func ComputeFactomEntryHashForAccount(accountId []byte, entry [][]byte) ([]byte, error)
- func ComputeLiteDataAccountId(firstEntry DataEntry) []byte
- func DataEntryCost(e DataEntry) (uint64, error)
- func DnUrl() *url.URL
- func ETHaddress(pubKey []byte) (string, error)
- func ETHhash(pubKey []byte) []byte
- func EqualAccount(a, b Account) bool
- func EqualAccountAuthOperation(a, b AccountAuthOperation) bool
- func EqualAnchorBody(a, b AnchorBody) bool
- func EqualDataEntry(a, b DataEntry) bool
- func EqualKeyPageOperation(a, b KeyPageOperation) bool
- func EqualKeySignature(a, b KeySignature) bool
- func EqualSignature(a, b Signature) bool
- func EqualSigner(a, b Signer) bool
- func EqualTransactionBody(a, b TransactionBody) bool
- func EqualTransactionResult(a, b TransactionResult) bool
- 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 GetMOfN(count int, ratio float64) uint64
- func GetRCDFromFactoidAddress(fa string) ([]byte, error)
- func GetRCDHashFromPublicKey(pubKey []byte, version byte) []byte
- func IsBvnUrl(u *url.URL) bool
- func IsDnUrl(u *url.URL) bool
- func IsReserved(u *url.URL) bool
- func IsUnknown(u *url.URL) bool
- func IsValidAccountPath(s string) error
- func IsValidAdiUrl(u *url.URL, allowReserved bool) error
- func LiteAuthorityForHash(pubKeyHash []byte) *url.URL
- func LiteAuthorityForKey(pubKey []byte, signatureType SignatureType) *url.URL
- 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 ParseKeyPageUrl(keyPage *url.URL) (*url.URL, uint64, bool)
- func ParseLiteAddress(u *url.URL) ([]byte, error)
- func ParseLiteDataAddress(u *url.URL) ([]byte, error)
- func ParseLiteIdentity(u *url.URL) ([]byte, error)
- func ParseLiteTokenAddress(u *url.URL) ([]byte, *url.URL, error)
- func ParsePartitionUrl(u *url.URL) (string, bool)
- func PartitionUrl(partition string) *url.URL
- func PriceOracle() *url.URL
- func PublicKeyHash(key []byte, typ SignatureType) ([]byte, error)
- func SECP256K1Keypair() (privKey []byte, pubKey []byte)
- func SECP256K1UncompressedKeypair() (privKey []byte, pubKey []byte)
- func SignBTC(sig *BTCSignature, privateKey, sigMdHash, txnHash []byte) error
- func SignBTCLegacy(sig *BTCLegacySignature, privateKey, sigMdHash, txnHash []byte) error
- func SignED25519(sig *ED25519Signature, privateKey, sigMdHash, txnHash []byte)
- func SignETH(sig *ETHSignature, privateKey, sigMdHash, txnHash []byte) error
- func SignLegacyED25519(sig *LegacyED25519Signature, privateKey, sigMdHash, txnHash []byte)
- func SignRCD1(sig *RCD1Signature, privateKey, sigMdHash, txnHash []byte)
- func SignatureDidInitiate(sig Signature, txnInitHash []byte, initiator *Signature) bool
- func UnknownUrl() *url.URL
- func VerifyUserSignature(sig UserSignature, message []byte) bool
- 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 (a *ADI) StripUrl()
- func (*ADI) Type() AccountType
- func (v *ADI) UnmarshalBinary(data []byte) error
- func (v *ADI) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ADI) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *ADI) UnmarshalJSON(data []byte) error
- type Account
- type AccountAuth
- func (a *AccountAuth) AddAuthority(entry *url.URL) (*AuthorityEntry, bool)
- func (a *AccountAuth) AllAuthoritiesAreDisabled() 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 CopyAccountAuthOperation(v AccountAuthOperation) AccountAuthOperation
- func NewAccountAuthOperation(typ AccountAuthOperationType) (AccountAuthOperation, error)
- func UnmarshalAccountAuthOperation(data []byte) (AccountAuthOperation, error)
- func UnmarshalAccountAuthOperationFrom(rd io.Reader) (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 AccumulateDataEntry
- func (v *AccumulateDataEntry) Copy() *AccumulateDataEntry
- func (v *AccumulateDataEntry) CopyAsInterface() interface{}
- func (v *AccumulateDataEntry) Equal(u *AccumulateDataEntry) bool
- func (e *AccumulateDataEntry) GetData() [][]byte
- func (e *AccumulateDataEntry) Hash() []byte
- func (v *AccumulateDataEntry) IsValid() error
- func (v *AccumulateDataEntry) MarshalBinary() ([]byte, error)
- func (v *AccumulateDataEntry) MarshalJSON() ([]byte, error)
- func (*AccumulateDataEntry) Type() DataEntryType
- func (v *AccumulateDataEntry) UnmarshalBinary(data []byte) error
- func (v *AccumulateDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AccumulateDataEntry) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *AccumulateDataEntry) UnmarshalJSON(data []byte) error
- 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) UnmarshalFieldsFrom(reader *encoding.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 ActivateProtocolVersion
- func (v *ActivateProtocolVersion) Copy() *ActivateProtocolVersion
- func (v *ActivateProtocolVersion) CopyAsInterface() interface{}
- func (v *ActivateProtocolVersion) Equal(u *ActivateProtocolVersion) bool
- func (v *ActivateProtocolVersion) IsValid() error
- func (v *ActivateProtocolVersion) MarshalBinary() ([]byte, error)
- func (v *ActivateProtocolVersion) MarshalJSON() ([]byte, error)
- func (*ActivateProtocolVersion) Type() TransactionType
- func (v *ActivateProtocolVersion) UnmarshalBinary(data []byte) error
- func (v *ActivateProtocolVersion) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ActivateProtocolVersion) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *ActivateProtocolVersion) UnmarshalJSON(data []byte) 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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *AddKeyOperation) 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) MarshalJSON() ([]byte, error)
- func (v *AllowedTransactions) Set(bit AllowedTransactionBit)
- func (v *AllowedTransactions) SetEnumValue(u uint64) bool
- func (v *AllowedTransactions) UnmarshalJSON(b []byte) error
- func (v *AllowedTransactions) Unpack() []AllowedTransactionBit
- type AnchorBody
- type AnchorLedger
- func (s *AnchorLedger) Anchor(url *url.URL) *PartitionSyntheticLedger
- func (v *AnchorLedger) Copy() *AnchorLedger
- func (v *AnchorLedger) CopyAsInterface() interface{}
- func (v *AnchorLedger) Equal(u *AnchorLedger) bool
- func (a *AnchorLedger) GetUrl() *url.URL
- func (v *AnchorLedger) IsValid() error
- func (v *AnchorLedger) MarshalBinary() ([]byte, error)
- func (v *AnchorLedger) MarshalJSON() ([]byte, error)
- func (s *AnchorLedger) Partition(url *url.URL) *PartitionSyntheticLedger
- func (a *AnchorLedger) StripUrl()
- func (*AnchorLedger) Type() AccountType
- func (v *AnchorLedger) UnmarshalBinary(data []byte) error
- func (v *AnchorLedger) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AnchorLedger) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *AnchorLedger) 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 AnnotatedReceipt
- func (v *AnnotatedReceipt) Copy() *AnnotatedReceipt
- func (v *AnnotatedReceipt) CopyAsInterface() interface{}
- func (v *AnnotatedReceipt) Equal(u *AnnotatedReceipt) bool
- func (v *AnnotatedReceipt) IsValid() error
- func (v *AnnotatedReceipt) MarshalBinary() ([]byte, error)
- func (v *AnnotatedReceipt) UnmarshalBinary(data []byte) error
- func (v *AnnotatedReceipt) UnmarshalBinaryFrom(rd io.Reader) 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 AuthoritySignature
- func (v *AuthoritySignature) Copy() *AuthoritySignature
- func (v *AuthoritySignature) CopyAsInterface() interface{}
- func (v *AuthoritySignature) Equal(u *AuthoritySignature) bool
- func (s *AuthoritySignature) GetSigner() *url.URL
- func (s *AuthoritySignature) GetTransactionHash() [32]byte
- func (s *AuthoritySignature) GetVote() VoteType
- func (s *AuthoritySignature) Hash() []byte
- func (v *AuthoritySignature) IsValid() error
- func (v *AuthoritySignature) MarshalBinary() ([]byte, error)
- func (v *AuthoritySignature) MarshalJSON() ([]byte, error)
- func (s *AuthoritySignature) Metadata() Signature
- func (s *AuthoritySignature) RoutingLocation() *url.URL
- func (*AuthoritySignature) Type() SignatureType
- func (v *AuthoritySignature) UnmarshalBinary(data []byte) error
- func (v *AuthoritySignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AuthoritySignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *AuthoritySignature) UnmarshalJSON(data []byte) 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) Initiator() (hash.Hasher, error)
- func (v *BTCLegacySignature) IsValid() error
- func (v *BTCLegacySignature) MarshalBinary() ([]byte, error)
- func (v *BTCLegacySignature) MarshalJSON() ([]byte, error)
- func (s *BTCLegacySignature) Metadata() Signature
- func (s *BTCLegacySignature) RoutingLocation() *url.URL
- func (*BTCLegacySignature) Type() SignatureType
- func (v *BTCLegacySignature) UnmarshalBinary(data []byte) error
- func (v *BTCLegacySignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *BTCLegacySignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *BTCLegacySignature) UnmarshalJSON(data []byte) error
- func (e *BTCLegacySignature) Verify(sigMdHash, 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) Initiator() (hash.Hasher, error)
- func (v *BTCSignature) IsValid() error
- func (v *BTCSignature) MarshalBinary() ([]byte, error)
- func (v *BTCSignature) MarshalJSON() ([]byte, error)
- func (s *BTCSignature) Metadata() Signature
- func (s *BTCSignature) RoutingLocation() *url.URL
- func (*BTCSignature) Type() SignatureType
- func (v *BTCSignature) UnmarshalBinary(data []byte) error
- func (v *BTCSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *BTCSignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *BTCSignature) UnmarshalJSON(data []byte) error
- func (e *BTCSignature) Verify(sigMdHash, txnHash []byte) bool
- type BlockEntry
- func (e *BlockEntry) Compare(f *BlockEntry) int
- func (v *BlockEntry) Copy() *BlockEntry
- func (v *BlockEntry) CopyAsInterface() interface{}
- func (v *BlockEntry) Equal(u *BlockEntry) bool
- func (v *BlockEntry) IsValid() error
- func (v *BlockEntry) MarshalBinary() ([]byte, error)
- func (v *BlockEntry) UnmarshalBinary(data []byte) error
- func (v *BlockEntry) UnmarshalBinaryFrom(rd io.Reader) error
- type BlockLedger
- func (v *BlockLedger) Copy() *BlockLedger
- func (v *BlockLedger) CopyAsInterface() interface{}
- func (v *BlockLedger) Equal(u *BlockLedger) bool
- func (a *BlockLedger) GetUrl() *url.URL
- func (v *BlockLedger) IsValid() error
- func (v *BlockLedger) MarshalBinary() ([]byte, error)
- func (v *BlockLedger) MarshalJSON() ([]byte, error)
- func (a *BlockLedger) StripUrl()
- func (*BlockLedger) Type() AccountType
- func (v *BlockLedger) UnmarshalBinary(data []byte) error
- func (v *BlockLedger) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *BlockLedger) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *BlockLedger) UnmarshalJSON(data []byte) error
- type BlockThreshold
- func (v *BlockThreshold) Copy() *BlockThreshold
- func (v *BlockThreshold) CopyAsInterface() interface{}
- func (v *BlockThreshold) Equal(u *BlockThreshold) bool
- func (v *BlockThreshold) IsValid() error
- func (v *BlockThreshold) MarshalBinary() ([]byte, error)
- func (v *BlockThreshold) UnmarshalBinary(data []byte) error
- func (v *BlockThreshold) UnmarshalBinaryFrom(rd io.Reader) error
- type BlockValidatorAnchor
- func (v *BlockValidatorAnchor) Copy() *BlockValidatorAnchor
- func (v *BlockValidatorAnchor) CopyAsInterface() interface{}
- func (v *BlockValidatorAnchor) Equal(u *BlockValidatorAnchor) bool
- func (a *BlockValidatorAnchor) GetPartitionAnchor() *PartitionAnchor
- func (v *BlockValidatorAnchor) IsValid() error
- func (v *BlockValidatorAnchor) MarshalBinary() ([]byte, error)
- func (v *BlockValidatorAnchor) MarshalJSON() ([]byte, error)
- func (*BlockValidatorAnchor) Type() TransactionType
- func (v *BlockValidatorAnchor) UnmarshalBinary(data []byte) error
- func (v *BlockValidatorAnchor) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *BlockValidatorAnchor) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *BlockValidatorAnchor) UnmarshalJSON(data []byte) error
- type BookType
- type BurnCredits
- func (v *BurnCredits) Copy() *BurnCredits
- func (v *BurnCredits) CopyAsInterface() interface{}
- func (v *BurnCredits) Equal(u *BurnCredits) bool
- func (v *BurnCredits) IsValid() error
- func (v *BurnCredits) MarshalBinary() ([]byte, error)
- func (v *BurnCredits) MarshalJSON() ([]byte, error)
- func (*BurnCredits) Type() TransactionType
- func (v *BurnCredits) UnmarshalBinary(data []byte) error
- func (v *BurnCredits) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *BurnCredits) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *BurnCredits) UnmarshalJSON(data []byte) error
- 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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *BurnTokens) UnmarshalJSON(data []byte) error
- type ChainMetadata
- func (c *ChainMetadata) Compare(d *ChainMetadata) int
- 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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *CreateKeyPage) UnmarshalJSON(data []byte) error
- type CreateLiteTokenAccount
- func (v *CreateLiteTokenAccount) Copy() *CreateLiteTokenAccount
- func (v *CreateLiteTokenAccount) CopyAsInterface() interface{}
- func (v *CreateLiteTokenAccount) Equal(u *CreateLiteTokenAccount) bool
- func (v *CreateLiteTokenAccount) IsValid() error
- func (v *CreateLiteTokenAccount) MarshalBinary() ([]byte, error)
- func (v *CreateLiteTokenAccount) MarshalJSON() ([]byte, error)
- func (*CreateLiteTokenAccount) Type() TransactionType
- func (v *CreateLiteTokenAccount) UnmarshalBinary(data []byte) error
- func (v *CreateLiteTokenAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *CreateLiteTokenAccount) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *CreateLiteTokenAccount) 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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *CreateTokenAccount) UnmarshalJSON(data []byte) error
- type CreditRecipient
- func (v *CreditRecipient) Copy() *CreditRecipient
- func (v *CreditRecipient) CopyAsInterface() interface{}
- func (v *CreditRecipient) Equal(u *CreditRecipient) bool
- func (v *CreditRecipient) IsValid() error
- func (v *CreditRecipient) MarshalBinary() ([]byte, error)
- func (v *CreditRecipient) UnmarshalBinary(data []byte) error
- func (v *CreditRecipient) UnmarshalBinaryFrom(rd io.Reader) 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 (a *DataAccount) StripUrl()
- func (*DataAccount) Type() AccountType
- func (v *DataAccount) UnmarshalBinary(data []byte) error
- func (v *DataAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *DataAccount) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *DataAccount) UnmarshalJSON(data []byte) error
- type DataEntry
- type DataEntryType
- type DelegatedSignature
- func (v *DelegatedSignature) Copy() *DelegatedSignature
- func (v *DelegatedSignature) CopyAsInterface() interface{}
- func (v *DelegatedSignature) Equal(u *DelegatedSignature) bool
- func (s *DelegatedSignature) GetSigner() *url.URL
- func (s *DelegatedSignature) GetTransactionHash() [32]byte
- func (s *DelegatedSignature) GetVote() VoteType
- func (s *DelegatedSignature) Hash() []byte
- func (s *DelegatedSignature) Initiator() (hash.Hasher, error)
- func (v *DelegatedSignature) IsValid() error
- func (v *DelegatedSignature) MarshalBinary() ([]byte, error)
- func (v *DelegatedSignature) MarshalJSON() ([]byte, error)
- func (s *DelegatedSignature) Metadata() Signature
- func (s *DelegatedSignature) RoutingLocation() *url.URL
- func (*DelegatedSignature) Type() SignatureType
- func (v *DelegatedSignature) UnmarshalBinary(data []byte) error
- func (v *DelegatedSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *DelegatedSignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *DelegatedSignature) UnmarshalJSON(data []byte) error
- func (s *DelegatedSignature) Verify(sigMdHash, hash []byte) bool
- type DirectoryAnchor
- func (v *DirectoryAnchor) Copy() *DirectoryAnchor
- func (v *DirectoryAnchor) CopyAsInterface() interface{}
- func (v *DirectoryAnchor) Equal(u *DirectoryAnchor) bool
- func (a *DirectoryAnchor) GetPartitionAnchor() *PartitionAnchor
- func (v *DirectoryAnchor) IsValid() error
- func (v *DirectoryAnchor) MarshalBinary() ([]byte, error)
- func (v *DirectoryAnchor) MarshalJSON() ([]byte, error)
- func (*DirectoryAnchor) Type() TransactionType
- func (v *DirectoryAnchor) UnmarshalBinary(data []byte) error
- func (v *DirectoryAnchor) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *DirectoryAnchor) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *DirectoryAnchor) UnmarshalJSON(data []byte) 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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *DisableAccountAuthOperation) UnmarshalJSON(data []byte) error
- type DoubleHashDataEntry
- func (v *DoubleHashDataEntry) Copy() *DoubleHashDataEntry
- func (v *DoubleHashDataEntry) CopyAsInterface() interface{}
- func (v *DoubleHashDataEntry) Equal(u *DoubleHashDataEntry) bool
- func (e *DoubleHashDataEntry) GetData() [][]byte
- func (e *DoubleHashDataEntry) Hash() []byte
- func (v *DoubleHashDataEntry) IsValid() error
- func (v *DoubleHashDataEntry) MarshalBinary() ([]byte, error)
- func (v *DoubleHashDataEntry) MarshalJSON() ([]byte, error)
- func (*DoubleHashDataEntry) Type() DataEntryType
- func (v *DoubleHashDataEntry) UnmarshalBinary(data []byte) error
- func (v *DoubleHashDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *DoubleHashDataEntry) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *DoubleHashDataEntry) 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) Initiator() (hash.Hasher, error)
- func (v *ED25519Signature) IsValid() error
- func (v *ED25519Signature) MarshalBinary() ([]byte, error)
- func (v *ED25519Signature) MarshalJSON() ([]byte, error)
- func (s *ED25519Signature) Metadata() Signature
- func (s *ED25519Signature) RoutingLocation() *url.URL
- func (*ED25519Signature) Type() SignatureType
- func (v *ED25519Signature) UnmarshalBinary(data []byte) error
- func (v *ED25519Signature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ED25519Signature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *ED25519Signature) UnmarshalJSON(data []byte) error
- func (e *ED25519Signature) Verify(sigMdHash, 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) Initiator() (hash.Hasher, error)
- func (v *ETHSignature) IsValid() error
- func (v *ETHSignature) MarshalBinary() ([]byte, error)
- func (v *ETHSignature) MarshalJSON() ([]byte, error)
- func (s *ETHSignature) Metadata() Signature
- func (s *ETHSignature) RoutingLocation() *url.URL
- func (*ETHSignature) Type() SignatureType
- func (v *ETHSignature) UnmarshalBinary(data []byte) error
- func (v *ETHSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ETHSignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *ETHSignature) UnmarshalJSON(data []byte) error
- func (e *ETHSignature) Verify(sigMdHash, 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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *EnableAccountAuthOperation) UnmarshalJSON(data []byte) error
- type ErrorCode
- type ExecutorVersion
- func (v ExecutorVersion) DoubleHashEntriesEnabled() bool
- func (v ExecutorVersion) GetEnumValue() uint64
- func (v ExecutorVersion) HaltV1() bool
- func (v ExecutorVersion) MarshalJSON() ([]byte, error)
- func (v *ExecutorVersion) SetEnumValue(id uint64) bool
- func (v ExecutorVersion) SignatureAnchoringEnabled() bool
- func (v ExecutorVersion) String() string
- func (v *ExecutorVersion) UnmarshalJSON(data []byte) error
- func (v ExecutorVersion) V2Enabled() bool
- type FactomDataEntry
- func (v *FactomDataEntry) Copy() *FactomDataEntry
- func (v *FactomDataEntry) CopyAsInterface() interface{}
- func (v *FactomDataEntry) Equal(u *FactomDataEntry) bool
- func (e *FactomDataEntry) Hash() []byte
- func (e *FactomDataEntry) IsValid() error
- func (e *FactomDataEntry) MarshalBinary() ([]byte, error)
- func (v *FactomDataEntry) MarshalJSON() ([]byte, error)
- func (e *FactomDataEntry) UnmarshalBinary(data []byte) error
- func (e *FactomDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *FactomDataEntry) UnmarshalJSON(data []byte) error
- func (e *FactomDataEntry) Wrap() DataEntry
- type FactomDataEntryWrapper
- func (v *FactomDataEntryWrapper) Copy() *FactomDataEntryWrapper
- func (v *FactomDataEntryWrapper) CopyAsInterface() interface{}
- func (v *FactomDataEntryWrapper) Equal(u *FactomDataEntryWrapper) bool
- func (e *FactomDataEntryWrapper) GetData() [][]byte
- func (v *FactomDataEntryWrapper) IsValid() error
- func (v *FactomDataEntryWrapper) MarshalBinary() ([]byte, error)
- func (v *FactomDataEntryWrapper) MarshalJSON() ([]byte, error)
- func (*FactomDataEntryWrapper) Type() DataEntryType
- func (v *FactomDataEntryWrapper) UnmarshalBinary(data []byte) error
- func (v *FactomDataEntryWrapper) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *FactomDataEntryWrapper) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *FactomDataEntryWrapper) UnmarshalJSON(data []byte) error
- type Fee
- type FeeSchedule
- func (s *FeeSchedule) ComputeSignatureFee(sig Signature) (Fee, error)
- func (s *FeeSchedule) ComputeSyntheticRefund(txn *Transaction, synthCount int) (Fee, error)
- func (s *FeeSchedule) ComputeTransactionFee(tx *Transaction) (Fee, error)
- func (v *FeeSchedule) Copy() *FeeSchedule
- func (v *FeeSchedule) CopyAsInterface() interface{}
- func (v *FeeSchedule) Equal(u *FeeSchedule) bool
- func (v *FeeSchedule) IsValid() error
- func (v *FeeSchedule) MarshalBinary() ([]byte, error)
- func (v *FeeSchedule) MarshalJSON() ([]byte, error)
- func (v *FeeSchedule) UnmarshalBinary(data []byte) error
- func (v *FeeSchedule) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *FeeSchedule) UnmarshalJSON(data []byte) error
- type FullAccount
- 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 InternalSignature
- func (v *InternalSignature) Copy() *InternalSignature
- func (v *InternalSignature) CopyAsInterface() interface{}
- func (v *InternalSignature) Equal(u *InternalSignature) bool
- func (s *InternalSignature) GetSigner() *url.URL
- func (s *InternalSignature) GetTransactionHash() [32]byte
- func (s *InternalSignature) GetVote() VoteType
- func (s *InternalSignature) Hash() []byte
- func (v *InternalSignature) IsValid() error
- func (v *InternalSignature) MarshalBinary() ([]byte, error)
- func (v *InternalSignature) MarshalJSON() ([]byte, error)
- func (s *InternalSignature) Metadata() Signature
- func (s *InternalSignature) RoutingLocation() *url.URL
- func (*InternalSignature) Type() SignatureType
- func (v *InternalSignature) UnmarshalBinary(data []byte) error
- func (v *InternalSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *InternalSignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *InternalSignature) 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) UnmarshalFieldsFrom(reader *encoding.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 (a *KeyBook) StripUrl()
- func (*KeyBook) Type() AccountType
- func (v *KeyBook) UnmarshalBinary(data []byte) error
- func (v *KeyBook) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *KeyBook) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *KeyBook) UnmarshalJSON(data []byte) error
- type KeyEntry
- type KeyPage
- func (p *KeyPage) AddKeySpec(k *KeySpec)
- 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) EntryByDelegate(owner *url.URL) (int, KeyEntry, bool)
- func (p *KeyPage) EntryByKey(key []byte) (int, KeyEntry, bool)
- func (p *KeyPage) EntryByKeyHash(keyHash []byte) (int, KeyEntry, bool)
- func (v *KeyPage) Equal(u *KeyPage) bool
- func (p *KeyPage) GetAuthority() *url.URL
- 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 (p *KeyPage) RemoveKeySpecAt(i int)
- func (ms *KeyPage) SetThreshold(m uint64) error
- func (a *KeyPage) StripUrl()
- func (*KeyPage) Type() AccountType
- func (v *KeyPage) UnmarshalBinary(data []byte) error
- func (v *KeyPage) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *KeyPage) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *KeyPage) UnmarshalJSON(data []byte) error
- type KeyPageOperation
- func CopyKeyPageOperation(v KeyPageOperation) KeyPageOperation
- func NewKeyPageOperation(typ KeyPageOperationType) (KeyPageOperation, error)
- func UnmarshalKeyPageOperation(data []byte) (KeyPageOperation, error)
- func UnmarshalKeyPageOperationFrom(rd io.Reader) (KeyPageOperation, error)
- func UnmarshalKeyPageOperationJSON(data []byte) (KeyPageOperation, error)
- 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) Initiator() (hash.Hasher, error)
- func (v *LegacyED25519Signature) IsValid() error
- func (v *LegacyED25519Signature) MarshalBinary() ([]byte, error)
- func (v *LegacyED25519Signature) MarshalJSON() ([]byte, error)
- func (s *LegacyED25519Signature) Metadata() Signature
- func (s *LegacyED25519Signature) RoutingLocation() *url.URL
- func (*LegacyED25519Signature) Type() SignatureType
- func (v *LegacyED25519Signature) UnmarshalBinary(data []byte) error
- func (v *LegacyED25519Signature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *LegacyED25519Signature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *LegacyED25519Signature) UnmarshalJSON(data []byte) error
- func (e *LegacyED25519Signature) Verify(sigMdHash, 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 (a *LiteDataAccount) StripUrl()
- func (*LiteDataAccount) Type() AccountType
- func (v *LiteDataAccount) UnmarshalBinary(data []byte) error
- func (v *LiteDataAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *LiteDataAccount) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *LiteDataAccount) UnmarshalJSON(data []byte) error
- type LiteIdentity
- func (li *LiteIdentity) CanDebitCredits(amount uint64) bool
- func (v *LiteIdentity) Copy() *LiteIdentity
- func (v *LiteIdentity) CopyAsInterface() interface{}
- func (li *LiteIdentity) CreditCredits(amount uint64)
- func (li *LiteIdentity) DebitCredits(amount uint64) bool
- func (*LiteIdentity) EntryByDelegate(owner *url.URL) (int, KeyEntry, bool)
- func (li *LiteIdentity) EntryByKey(key []byte) (int, KeyEntry, bool)
- func (li *LiteIdentity) EntryByKeyHash(keyHash []byte) (int, KeyEntry, bool)
- func (v *LiteIdentity) Equal(u *LiteIdentity) bool
- func (li *LiteIdentity) GetAuthority() *url.URL
- func (li *LiteIdentity) GetCreditBalance() uint64
- func (li *LiteIdentity) GetLastUsedOn() uint64
- func (li *LiteIdentity) GetSignatureThreshold() uint64
- func (l *LiteIdentity) GetSigners() []*url.URL
- func (a *LiteIdentity) GetUrl() *url.URL
- func (li *LiteIdentity) GetVersion() uint64
- func (v *LiteIdentity) IsValid() error
- func (v *LiteIdentity) MarshalBinary() ([]byte, error)
- func (v *LiteIdentity) MarshalJSON() ([]byte, error)
- func (li *LiteIdentity) SetLastUsedOn(timestamp uint64)
- func (a *LiteIdentity) StripUrl()
- func (*LiteIdentity) Type() AccountType
- func (v *LiteIdentity) UnmarshalBinary(data []byte) error
- func (v *LiteIdentity) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *LiteIdentity) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *LiteIdentity) UnmarshalJSON(data []byte) error
- type LiteTokenAccount
- func (acct *LiteTokenAccount) CanDebitTokens(amount *big.Int) bool
- func (v *LiteTokenAccount) Copy() *LiteTokenAccount
- func (v *LiteTokenAccount) CopyAsInterface() interface{}
- func (acct *LiteTokenAccount) CreditTokens(amount *big.Int) bool
- func (acct *LiteTokenAccount) DebitTokens(amount *big.Int) bool
- func (v *LiteTokenAccount) Equal(u *LiteTokenAccount) bool
- func (l *LiteTokenAccount) GetLockHeight() uint64
- func (acct *LiteTokenAccount) GetTokenUrl() *url.URL
- func (a *LiteTokenAccount) GetUrl() *url.URL
- func (v *LiteTokenAccount) IsValid() error
- func (v *LiteTokenAccount) MarshalBinary() ([]byte, error)
- func (v *LiteTokenAccount) MarshalJSON() ([]byte, error)
- func (l *LiteTokenAccount) SetLockHeight(v uint64) error
- func (a *LiteTokenAccount) StripUrl()
- 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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *LiteTokenAccount) UnmarshalJSON(data []byte) error
- type LockAccount
- func (v *LockAccount) Copy() *LockAccount
- func (v *LockAccount) CopyAsInterface() interface{}
- func (v *LockAccount) Equal(u *LockAccount) bool
- func (v *LockAccount) IsValid() error
- func (v *LockAccount) MarshalBinary() ([]byte, error)
- func (v *LockAccount) MarshalJSON() ([]byte, error)
- func (*LockAccount) Type() TransactionType
- func (v *LockAccount) UnmarshalBinary(data []byte) error
- func (v *LockAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *LockAccount) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *LockAccount) UnmarshalJSON(data []byte) error
- type LockableAccount
- 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 NetworkAccountUpdate
- func (v *NetworkAccountUpdate) Copy() *NetworkAccountUpdate
- func (v *NetworkAccountUpdate) CopyAsInterface() interface{}
- func (v *NetworkAccountUpdate) Equal(u *NetworkAccountUpdate) bool
- func (v *NetworkAccountUpdate) IsValid() error
- func (v *NetworkAccountUpdate) MarshalBinary() ([]byte, error)
- func (v *NetworkAccountUpdate) MarshalJSON() ([]byte, error)
- func (v *NetworkAccountUpdate) UnmarshalBinary(data []byte) error
- func (v *NetworkAccountUpdate) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *NetworkAccountUpdate) UnmarshalJSON(data []byte) error
- type NetworkDefinition
- func (n *NetworkDefinition) AddPartition(id string, typ PartitionType) bool
- func (n *NetworkDefinition) AddValidator(key []byte, partition string, active bool)
- func (v *NetworkDefinition) Copy() *NetworkDefinition
- func (v *NetworkDefinition) CopyAsInterface() interface{}
- func (v *NetworkDefinition) Equal(u *NetworkDefinition) bool
- func (v *NetworkDefinition) IsValid() error
- func (v *NetworkDefinition) MarshalBinary() ([]byte, error)
- func (v *NetworkDefinition) MarshalJSON() ([]byte, error)
- func (n *NetworkDefinition) RemoveValidator(key []byte)
- func (v *NetworkDefinition) UnmarshalBinary(data []byte) error
- func (v *NetworkDefinition) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *NetworkDefinition) UnmarshalJSON(data []byte) error
- func (n *NetworkDefinition) UpdateValidatorKey(oldKey, newKey []byte) error
- func (n *NetworkDefinition) ValidatorByHash(hash []byte) (int, *ValidatorInfo, bool)
- func (n *NetworkDefinition) ValidatorByKey(key []byte) (int, *ValidatorInfo, bool)
- type NetworkGlobals
- func (v *NetworkGlobals) Copy() *NetworkGlobals
- func (v *NetworkGlobals) CopyAsInterface() interface{}
- func (v *NetworkGlobals) Equal(u *NetworkGlobals) bool
- func (v *NetworkGlobals) IsValid() error
- func (v *NetworkGlobals) MarshalBinary() ([]byte, error)
- func (v *NetworkGlobals) UnmarshalBinary(data []byte) error
- func (v *NetworkGlobals) UnmarshalBinaryFrom(rd io.Reader) error
- type NetworkLimits
- func (v *NetworkLimits) Copy() *NetworkLimits
- func (v *NetworkLimits) CopyAsInterface() interface{}
- func (v *NetworkLimits) Equal(u *NetworkLimits) bool
- func (v *NetworkLimits) IsValid() error
- func (v *NetworkLimits) MarshalBinary() ([]byte, error)
- func (v *NetworkLimits) UnmarshalBinary(data []byte) error
- func (v *NetworkLimits) UnmarshalBinaryFrom(rd io.Reader) error
- 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 PartitionAnchor
- func (v *PartitionAnchor) Copy() *PartitionAnchor
- func (v *PartitionAnchor) CopyAsInterface() interface{}
- func (v *PartitionAnchor) Equal(u *PartitionAnchor) bool
- func (v *PartitionAnchor) IsValid() error
- func (v *PartitionAnchor) MarshalBinary() ([]byte, error)
- func (v *PartitionAnchor) MarshalJSON() ([]byte, error)
- func (v *PartitionAnchor) UnmarshalBinary(data []byte) error
- func (v *PartitionAnchor) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *PartitionAnchor) UnmarshalJSON(data []byte) error
- type PartitionAnchorReceipt
- func (v *PartitionAnchorReceipt) Copy() *PartitionAnchorReceipt
- func (v *PartitionAnchorReceipt) CopyAsInterface() interface{}
- func (v *PartitionAnchorReceipt) Equal(u *PartitionAnchorReceipt) bool
- func (v *PartitionAnchorReceipt) IsValid() error
- func (v *PartitionAnchorReceipt) MarshalBinary() ([]byte, error)
- func (v *PartitionAnchorReceipt) UnmarshalBinary(data []byte) error
- func (v *PartitionAnchorReceipt) UnmarshalBinaryFrom(rd io.Reader) error
- type PartitionInfo
- func (v *PartitionInfo) Copy() *PartitionInfo
- func (v *PartitionInfo) CopyAsInterface() interface{}
- func (v *PartitionInfo) Equal(u *PartitionInfo) bool
- func (v *PartitionInfo) IsValid() error
- func (v *PartitionInfo) MarshalBinary() ([]byte, error)
- func (v *PartitionInfo) UnmarshalBinary(data []byte) error
- func (v *PartitionInfo) UnmarshalBinaryFrom(rd io.Reader) error
- type PartitionSignature
- func (v *PartitionSignature) Copy() *PartitionSignature
- func (v *PartitionSignature) CopyAsInterface() interface{}
- func (v *PartitionSignature) Equal(u *PartitionSignature) bool
- func (s *PartitionSignature) GetPublicKeyHash() []byte
- func (s *PartitionSignature) GetSignature() []byte
- func (s *PartitionSignature) GetSigner() *url.URL
- func (s *PartitionSignature) GetSignerVersion() uint64
- func (s *PartitionSignature) GetTimestamp() uint64
- func (s *PartitionSignature) GetTransactionHash() [32]byte
- func (s *PartitionSignature) GetVote() VoteType
- func (s *PartitionSignature) Hash() []byte
- func (v *PartitionSignature) IsValid() error
- func (v *PartitionSignature) MarshalBinary() ([]byte, error)
- func (v *PartitionSignature) MarshalJSON() ([]byte, error)
- func (s *PartitionSignature) Metadata() Signature
- func (s *PartitionSignature) RoutingLocation() *url.URL
- func (*PartitionSignature) Type() SignatureType
- func (v *PartitionSignature) UnmarshalBinary(data []byte) error
- func (v *PartitionSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *PartitionSignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *PartitionSignature) UnmarshalJSON(data []byte) error
- type PartitionSyntheticLedger
- func (s *PartitionSyntheticLedger) Add(delivered bool, sequenceNumber uint64, txid *url.TxID) (dirty bool)
- func (v *PartitionSyntheticLedger) Copy() *PartitionSyntheticLedger
- func (v *PartitionSyntheticLedger) CopyAsInterface() interface{}
- func (v *PartitionSyntheticLedger) Equal(u *PartitionSyntheticLedger) bool
- func (s *PartitionSyntheticLedger) Get(sequenceNumber uint64) (*url.TxID, bool)
- func (v *PartitionSyntheticLedger) IsValid() error
- func (v *PartitionSyntheticLedger) MarshalBinary() ([]byte, error)
- func (v *PartitionSyntheticLedger) MarshalJSON() ([]byte, error)
- func (v *PartitionSyntheticLedger) UnmarshalBinary(data []byte) error
- func (v *PartitionSyntheticLedger) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *PartitionSyntheticLedger) UnmarshalJSON(data []byte) error
- type PartitionType
- 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) Initiator() (hash.Hasher, error)
- func (v *RCD1Signature) IsValid() error
- func (v *RCD1Signature) MarshalBinary() ([]byte, error)
- func (v *RCD1Signature) MarshalJSON() ([]byte, error)
- func (s *RCD1Signature) Metadata() Signature
- func (s *RCD1Signature) RoutingLocation() *url.URL
- func (*RCD1Signature) Type() SignatureType
- func (v *RCD1Signature) UnmarshalBinary(data []byte) error
- func (v *RCD1Signature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *RCD1Signature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *RCD1Signature) UnmarshalJSON(data []byte) error
- func (e *RCD1Signature) Verify(sigMdHash, txnHash []byte) bool
- type Rational
- func (v *Rational) Copy() *Rational
- func (v *Rational) CopyAsInterface() interface{}
- func (v *Rational) Equal(u *Rational) bool
- func (v *Rational) IsValid() error
- func (v *Rational) MarshalBinary() ([]byte, error)
- func (r *Rational) Set(num, denom uint64)
- func (r *Rational) Threshold(keyCount int) uint64
- func (v *Rational) UnmarshalBinary(data []byte) error
- func (v *Rational) UnmarshalBinaryFrom(rd io.Reader) 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 (v *ReceiptSignature) IsValid() error
- func (v *ReceiptSignature) MarshalBinary() ([]byte, error)
- func (v *ReceiptSignature) MarshalJSON() ([]byte, error)
- func (s *ReceiptSignature) Metadata() Signature
- func (s *ReceiptSignature) RoutingLocation() *url.URL
- func (*ReceiptSignature) Type() SignatureType
- func (v *ReceiptSignature) UnmarshalBinary(data []byte) error
- func (v *ReceiptSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ReceiptSignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *ReceiptSignature) UnmarshalJSON(data []byte) error
- func (s *ReceiptSignature) Verify(hash []byte) bool
- type RemoteSignature
- func (v *RemoteSignature) Copy() *RemoteSignature
- func (v *RemoteSignature) CopyAsInterface() interface{}
- func (v *RemoteSignature) Equal(u *RemoteSignature) bool
- func (s *RemoteSignature) GetSigner() *url.URL
- func (s *RemoteSignature) GetTransactionHash() [32]byte
- func (s *RemoteSignature) GetVote() VoteType
- func (s *RemoteSignature) Hash() []byte
- func (v *RemoteSignature) IsValid() error
- func (v *RemoteSignature) MarshalBinary() ([]byte, error)
- func (v *RemoteSignature) MarshalJSON() ([]byte, error)
- func (s *RemoteSignature) Metadata() Signature
- func (s *RemoteSignature) RoutingLocation() *url.URL
- func (*RemoteSignature) Type() SignatureType
- func (v *RemoteSignature) UnmarshalBinary(data []byte) error
- func (v *RemoteSignature) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *RemoteSignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *RemoteSignature) UnmarshalJSON(data []byte) error
- 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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *RemoveKeyOperation) UnmarshalJSON(data []byte) error
- type Route
- type RouteOverride
- func (v *RouteOverride) Copy() *RouteOverride
- func (v *RouteOverride) CopyAsInterface() interface{}
- func (v *RouteOverride) Equal(u *RouteOverride) bool
- func (v *RouteOverride) IsValid() error
- func (v *RouteOverride) MarshalBinary() ([]byte, error)
- func (v *RouteOverride) UnmarshalBinary(data []byte) error
- func (v *RouteOverride) UnmarshalBinaryFrom(rd io.Reader) error
- type RoutingTable
- func (r *RoutingTable) AddOverride(account *url.URL, partition string)
- func (v *RoutingTable) Copy() *RoutingTable
- func (v *RoutingTable) CopyAsInterface() interface{}
- func (v *RoutingTable) Equal(u *RoutingTable) bool
- func (v *RoutingTable) IsValid() error
- func (v *RoutingTable) MarshalBinary() ([]byte, error)
- func (v *RoutingTable) MarshalJSON() ([]byte, error)
- func (v *RoutingTable) UnmarshalBinary(data []byte) error
- func (v *RoutingTable) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *RoutingTable) 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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SendTokens) UnmarshalJSON(data []byte) error
- type SequenceLedger
- type SetRejectThresholdKeyPageOperation
- func (v *SetRejectThresholdKeyPageOperation) Copy() *SetRejectThresholdKeyPageOperation
- func (v *SetRejectThresholdKeyPageOperation) CopyAsInterface() interface{}
- func (v *SetRejectThresholdKeyPageOperation) Equal(u *SetRejectThresholdKeyPageOperation) bool
- func (v *SetRejectThresholdKeyPageOperation) IsValid() error
- func (v *SetRejectThresholdKeyPageOperation) MarshalBinary() ([]byte, error)
- func (v *SetRejectThresholdKeyPageOperation) MarshalJSON() ([]byte, error)
- func (*SetRejectThresholdKeyPageOperation) Type() KeyPageOperationType
- func (v *SetRejectThresholdKeyPageOperation) UnmarshalBinary(data []byte) error
- func (v *SetRejectThresholdKeyPageOperation) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SetRejectThresholdKeyPageOperation) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SetRejectThresholdKeyPageOperation) UnmarshalJSON(data []byte) error
- type SetResponseThresholdKeyPageOperation
- func (v *SetResponseThresholdKeyPageOperation) Copy() *SetResponseThresholdKeyPageOperation
- func (v *SetResponseThresholdKeyPageOperation) CopyAsInterface() interface{}
- func (v *SetResponseThresholdKeyPageOperation) Equal(u *SetResponseThresholdKeyPageOperation) bool
- func (v *SetResponseThresholdKeyPageOperation) IsValid() error
- func (v *SetResponseThresholdKeyPageOperation) MarshalBinary() ([]byte, error)
- func (v *SetResponseThresholdKeyPageOperation) MarshalJSON() ([]byte, error)
- func (*SetResponseThresholdKeyPageOperation) Type() KeyPageOperationType
- func (v *SetResponseThresholdKeyPageOperation) UnmarshalBinary(data []byte) error
- func (v *SetResponseThresholdKeyPageOperation) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SetResponseThresholdKeyPageOperation) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SetResponseThresholdKeyPageOperation) 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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SetThresholdKeyPageOperation) UnmarshalJSON(data []byte) error
- type Signature
- type SignatureSet
- func (v *SignatureSet) Copy() *SignatureSet
- func (v *SignatureSet) CopyAsInterface() interface{}
- func (v *SignatureSet) Equal(u *SignatureSet) bool
- func (s *SignatureSet) GetSigner() *url.URL
- func (s *SignatureSet) GetTransactionHash() [32]byte
- func (s *SignatureSet) GetVote() VoteType
- func (s *SignatureSet) Hash() []byte
- func (v *SignatureSet) IsValid() error
- func (v *SignatureSet) MarshalBinary() ([]byte, error)
- func (v *SignatureSet) MarshalJSON() ([]byte, error)
- func (s *SignatureSet) Metadata() Signature
- func (s *SignatureSet) RoutingLocation() *url.URL
- func (*SignatureSet) Type() SignatureType
- func (v *SignatureSet) UnmarshalBinary(data []byte) error
- func (v *SignatureSet) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SignatureSet) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SignatureSet) UnmarshalJSON(data []byte) error
- type SignatureType
- type Signer
- type Signer2
- type SynthTxnWithOrigin
- type SyntheticBurnTokens
- func (v *SyntheticBurnTokens) Copy() *SyntheticBurnTokens
- func (v *SyntheticBurnTokens) CopyAsInterface() interface{}
- func (v *SyntheticBurnTokens) Equal(u *SyntheticBurnTokens) bool
- 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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SyntheticBurnTokens) UnmarshalJSON(data []byte) error
- type SyntheticCreateIdentity
- func (v *SyntheticCreateIdentity) Copy() *SyntheticCreateIdentity
- func (v *SyntheticCreateIdentity) CopyAsInterface() interface{}
- func (v *SyntheticCreateIdentity) Equal(u *SyntheticCreateIdentity) bool
- func (v *SyntheticCreateIdentity) IsValid() error
- func (v *SyntheticCreateIdentity) MarshalBinary() ([]byte, error)
- func (v *SyntheticCreateIdentity) MarshalJSON() ([]byte, error)
- func (*SyntheticCreateIdentity) Type() TransactionType
- func (v *SyntheticCreateIdentity) UnmarshalBinary(data []byte) error
- func (v *SyntheticCreateIdentity) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticCreateIdentity) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SyntheticCreateIdentity) UnmarshalJSON(data []byte) error
- type SyntheticDepositCredits
- func (v *SyntheticDepositCredits) Copy() *SyntheticDepositCredits
- func (v *SyntheticDepositCredits) CopyAsInterface() interface{}
- func (v *SyntheticDepositCredits) Equal(u *SyntheticDepositCredits) bool
- 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) UnmarshalFieldsFrom(reader *encoding.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 (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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.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 (a *SyntheticLedger) GetUrl() *url.URL
- func (v *SyntheticLedger) IsValid() error
- func (v *SyntheticLedger) MarshalBinary() ([]byte, error)
- func (v *SyntheticLedger) MarshalJSON() ([]byte, error)
- func (s *SyntheticLedger) Partition(url *url.URL) *PartitionSyntheticLedger
- func (a *SyntheticLedger) StripUrl()
- func (*SyntheticLedger) Type() AccountType
- func (v *SyntheticLedger) UnmarshalBinary(data []byte) error
- func (v *SyntheticLedger) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SyntheticLedger) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SyntheticLedger) 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) GetCause() (cause [32]byte, source *url.URL)
- func (so *SyntheticOrigin) GetRefund() (initiator *url.URL, refund Fee)
- func (v *SyntheticOrigin) IsValid() error
- func (v *SyntheticOrigin) MarshalBinary() ([]byte, error)
- func (so *SyntheticOrigin) SetCause(cause [32]byte, source *url.URL)
- func (so *SyntheticOrigin) SetRefund(initiator *url.URL, refund Fee)
- func (so *SyntheticOrigin) Source() *url.URL
- func (v *SyntheticOrigin) UnmarshalBinary(data []byte) error
- func (v *SyntheticOrigin) UnmarshalBinaryFrom(rd io.Reader) error
- type SyntheticTransaction
- type SyntheticWriteData
- func (v *SyntheticWriteData) Copy() *SyntheticWriteData
- func (v *SyntheticWriteData) CopyAsInterface() interface{}
- func (v *SyntheticWriteData) Equal(u *SyntheticWriteData) bool
- func (w *SyntheticWriteData) GetHash() []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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SyntheticWriteData) UnmarshalJSON(data []byte) error
- type SystemGenesis
- func (v *SystemGenesis) Copy() *SystemGenesis
- func (v *SystemGenesis) CopyAsInterface() interface{}
- func (v *SystemGenesis) Equal(u *SystemGenesis) bool
- func (v *SystemGenesis) IsValid() error
- func (v *SystemGenesis) MarshalBinary() ([]byte, error)
- func (v *SystemGenesis) MarshalJSON() ([]byte, error)
- func (*SystemGenesis) Type() TransactionType
- func (v *SystemGenesis) UnmarshalBinary(data []byte) error
- func (v *SystemGenesis) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SystemGenesis) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SystemGenesis) UnmarshalJSON(data []byte) error
- type SystemLedger
- func (v *SystemLedger) Copy() *SystemLedger
- func (v *SystemLedger) CopyAsInterface() interface{}
- func (v *SystemLedger) Equal(u *SystemLedger) bool
- func (a *SystemLedger) GetUrl() *url.URL
- func (v *SystemLedger) IsValid() error
- func (v *SystemLedger) MarshalBinary() ([]byte, error)
- func (v *SystemLedger) MarshalJSON() ([]byte, error)
- func (a *SystemLedger) StripUrl()
- func (*SystemLedger) Type() AccountType
- func (v *SystemLedger) UnmarshalBinary(data []byte) error
- func (v *SystemLedger) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SystemLedger) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SystemLedger) UnmarshalJSON(data []byte) error
- type SystemWriteData
- func (v *SystemWriteData) Copy() *SystemWriteData
- func (v *SystemWriteData) CopyAsInterface() interface{}
- func (v *SystemWriteData) Equal(u *SystemWriteData) bool
- func (w *SystemWriteData) GetHash() []byte
- func (v *SystemWriteData) IsValid() error
- func (v *SystemWriteData) MarshalBinary() ([]byte, error)
- func (v *SystemWriteData) MarshalJSON() ([]byte, error)
- func (*SystemWriteData) Type() TransactionType
- func (v *SystemWriteData) UnmarshalBinary(data []byte) error
- func (v *SystemWriteData) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SystemWriteData) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SystemWriteData) 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 (a *TokenAccount) StripUrl()
- 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) UnmarshalFieldsFrom(reader *encoding.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 (i *TokenIssuer) Issue(amount *big.Int) bool
- func (v *TokenIssuer) MarshalBinary() ([]byte, error)
- func (v *TokenIssuer) MarshalJSON() ([]byte, error)
- func (a *TokenIssuer) StripUrl()
- func (*TokenIssuer) Type() AccountType
- func (v *TokenIssuer) UnmarshalBinary(data []byte) error
- func (v *TokenIssuer) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TokenIssuer) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *TokenIssuer) UnmarshalJSON(data []byte) error
- type TokenIssuerProof
- func (v *TokenIssuerProof) Copy() *TokenIssuerProof
- func (v *TokenIssuerProof) CopyAsInterface() interface{}
- func (v *TokenIssuerProof) Equal(u *TokenIssuerProof) bool
- func (v *TokenIssuerProof) IsValid() error
- func (v *TokenIssuerProof) MarshalBinary() ([]byte, error)
- func (v *TokenIssuerProof) UnmarshalBinary(data []byte) error
- func (v *TokenIssuerProof) UnmarshalBinaryFrom(rd io.Reader) 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 (t *Transaction) BodyIs64Bytes() bool
- func (v *Transaction) Copy() *Transaction
- func (v *Transaction) CopyAsInterface() interface{}
- func (v *Transaction) Equal(u *Transaction) bool
- func (t *Transaction) GetAdditionalAuthorities() []*url.URL
- func (t *Transaction) GetHash() []byte
- func (t *Transaction) ID() *url.TxID
- func (v *Transaction) IsValid() error
- func (v *Transaction) MarshalBinary() ([]byte, error)
- func (v *Transaction) MarshalJSON() ([]byte, error)
- func (v *Transaction) UnmarshalBinary(data []byte) error
- func (v *Transaction) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *Transaction) UnmarshalJSON(data []byte) error
- type TransactionBody
- func CopyTransactionBody(v TransactionBody) TransactionBody
- func NewTransactionBody(typ TransactionType) (TransactionBody, error)
- func UnmarshalTransactionBody(data []byte) (TransactionBody, error)
- func UnmarshalTransactionBodyFrom(rd io.Reader) (TransactionBody, error)
- func UnmarshalTransactionBodyJSON(data []byte) (TransactionBody, error)
- 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 CopyTransactionResult(v TransactionResult) TransactionResult
- func NewTransactionResult(typ TransactionType) (TransactionResult, error)
- func UnmarshalTransactionResult(data []byte) (TransactionResult, error)
- func UnmarshalTransactionResultFrom(rd io.Reader) (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 TransactionStatus
- func (s *TransactionStatus) AddAnchorSigner(signature KeySignature)
- func (s *TransactionStatus) AddSigner(signer Signer2)
- func (s *TransactionStatus) AsError() error
- func (s *TransactionStatus) CodeNum() uint64
- func (v *TransactionStatus) Copy() *TransactionStatus
- func (v *TransactionStatus) CopyAsInterface() interface{}
- func (s *TransactionStatus) Delivered() bool
- func (v *TransactionStatus) Equal(u *TransactionStatus) bool
- func (s *TransactionStatus) Failed() 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 (s *TransactionStatus) Pending() bool
- func (s *TransactionStatus) Remote() bool
- func (s *TransactionStatus) Set(err error)
- func (v *TransactionStatus) UnmarshalBinary(data []byte) error
- func (v *TransactionStatus) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TransactionStatus) UnmarshalJSON(data []byte) error
- type TransactionStatusError
- type TransactionType
- func (typ TransactionType) AllowedTransactionBit() (AllowedTransactionBit, bool)
- func (v TransactionType) GetEnumValue() uint64
- func (t TransactionType) IsAnchor() bool
- func (t TransactionType) IsSynthetic() bool
- func (t TransactionType) IsSystem() 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 TransferCredits
- func (v *TransferCredits) Copy() *TransferCredits
- func (v *TransferCredits) CopyAsInterface() interface{}
- func (v *TransferCredits) Equal(u *TransferCredits) bool
- func (v *TransferCredits) IsValid() error
- func (v *TransferCredits) MarshalBinary() ([]byte, error)
- func (v *TransferCredits) MarshalJSON() ([]byte, error)
- func (*TransferCredits) Type() TransactionType
- func (v *TransferCredits) UnmarshalBinary(data []byte) error
- func (v *TransferCredits) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TransferCredits) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *TransferCredits) UnmarshalJSON(data []byte) error
- type TxIdSet
- func (s *TxIdSet) Add(txid *url.TxID)
- func (s *TxIdSet) ContainsHash(hash []byte) bool
- func (v *TxIdSet) Copy() *TxIdSet
- func (v *TxIdSet) CopyAsInterface() interface{}
- func (v *TxIdSet) Equal(u *TxIdSet) bool
- func (v *TxIdSet) IsValid() error
- func (v *TxIdSet) MarshalBinary() ([]byte, error)
- func (v *TxIdSet) MarshalJSON() ([]byte, error)
- func (s *TxIdSet) Remove(txid *url.TxID)
- func (v *TxIdSet) UnmarshalBinary(data []byte) error
- func (v *TxIdSet) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TxIdSet) 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 (a *UnknownAccount) StripUrl()
- func (*UnknownAccount) Type() AccountType
- func (v *UnknownAccount) UnmarshalBinary(data []byte) error
- func (v *UnknownAccount) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UnknownAccount) UnmarshalFieldsFrom(reader *encoding.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) EntryByDelegate(owner *url.URL) (int, KeyEntry, 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 (s *UnknownSigner) GetAuthority() *url.URL
- 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 (s *UnknownSigner) StripUrl()
- func (*UnknownSigner) Type() AccountType
- func (v *UnknownSigner) UnmarshalBinary(data []byte) error
- func (v *UnknownSigner) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UnknownSigner) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *UpdateKeyPage) UnmarshalJSON(data []byte) error
- type UserSignature
- type ValidatorInfo
- func (v *ValidatorInfo) Copy() *ValidatorInfo
- func (v *ValidatorInfo) CopyAsInterface() interface{}
- func (v *ValidatorInfo) Equal(u *ValidatorInfo) bool
- func (v *ValidatorInfo) IsActiveOn(partition string) bool
- func (v *ValidatorInfo) IsValid() error
- func (v *ValidatorInfo) MarshalBinary() ([]byte, error)
- func (v *ValidatorInfo) MarshalJSON() ([]byte, error)
- func (v *ValidatorInfo) UnmarshalBinary(data []byte) error
- func (v *ValidatorInfo) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ValidatorInfo) UnmarshalJSON(data []byte) error
- type ValidatorPartitionInfo
- func (v *ValidatorPartitionInfo) Copy() *ValidatorPartitionInfo
- func (v *ValidatorPartitionInfo) CopyAsInterface() interface{}
- func (v *ValidatorPartitionInfo) Equal(u *ValidatorPartitionInfo) bool
- func (v *ValidatorPartitionInfo) IsValid() error
- func (v *ValidatorPartitionInfo) MarshalBinary() ([]byte, error)
- func (v *ValidatorPartitionInfo) UnmarshalBinary(data []byte) error
- func (v *ValidatorPartitionInfo) UnmarshalBinaryFrom(rd io.Reader) error
- type VoteType
- type WriteData
- func (v *WriteData) Copy() *WriteData
- func (v *WriteData) CopyAsInterface() interface{}
- func (v *WriteData) Equal(u *WriteData) bool
- func (w *WriteData) GetHash() []byte
- 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) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom(reader *encoding.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 (w *WriteDataTo) GetHash() []byte
- 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) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *WriteDataTo) UnmarshalJSON(data []byte) error
Constants ¶
const ( // TLD is the top-level domain for ADIs. TLD = ".acme" // ACME is the name of the ACME token. ACME = "ACME" // Unknown is used to indicate that the principal of a transaction is unknown Unknown = "unknown" // Directory is the partition ID of the DN. Directory = "Directory" // Operators is the path to a node's operator key book. Operators = "operators" // Ledger is the path to a node's internal ledger. Ledger = "ledger" // Synthetic is the path to a node's synthetic transaction ledger. Synthetic = "synthetic" // AnchorPool is the path to a node's anchor chain account. AnchorPool = "anchors" // Votes is the path to the scratch data account for partition voting records Votes = "votes" // Evidence is the path to the scratch data account for partition voting records Evidence = "evidence" // Oracle is the path to a node's anchor chain account. Oracle = "oracle" // Network is the path to a node's network definition data account. Network = "network" // Routing is the path to a node's routing table data account. Routing = "routing" // Globals is the path to the Directory network's Mutable Protocol costants data account Globals = "globals" // MainChain is the main transaction chain of a record. MainChain = "main" // GenesisBlock is the block index of the first block. GenesisBlock = 1 // ScratchPrunePeriodDays is the period after which data chain transactions are pruned ScratchPrunePeriodDays = 14 // DefaultMajorBlockSchedule is the default cron schedule of when new major blocks are created DefaultMajorBlockSchedule = "0 */12 * * *" //AccountUrlMaxLength is the maximum size allowed for accumulate adi urls AccountUrlMaxLength = 500 )
Well known strings
const AcmeFaucetAmount = 10
const AcmeFaucetBalance = 200_000_000
const AcmeOraclePrecision = 1e4
AcmeOraclePrecision is the precision of the oracle in 100 * USD of one ACME token.
const AcmeOraclePrecisionPower = 4
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 ChainTypeAnchor = merkle.ChainTypeAnchor
const ChainTypeIndex = merkle.ChainTypeIndex
const ChainTypeTransaction = merkle.ChainTypeTransaction
const ChainTypeUnknown = merkle.ChainTypeUnknown
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 DelegationDepthLimit = 20
DelegationDepthLimit limits the number of layers of delegation.
const ExecutorVersionLatest = ExecutorVersionV2
ExecutorVersionLatest is the latest version of the executor. ExecutorVersionLatest is intended primarily for testing.
const InitialAcmeOracle = 0.50
InitialAcmeOracle is $0.50, the oracle value at activation.
const InitialAcmeOracleValue = InitialAcmeOracle * AcmeOraclePrecision
InitialAcmeOracleValue exists because golanglint-ci is dumb.
const IsTestNet = false
const LiteEntryHeaderSize = 1 + 32 + 2 // total len
LiteEntryHeaderSize is the exact length of an Entry header.
const SignatureSizeMax = 1024
const TransactionSizeMax = 20480 // Must be over 10k to accommodate Factom entries
Variables ¶
var ErrCannotInitiate = errors.BadRequest.With("signature cannot initiate a transaction: values are missing")
var Faucet faucet
var FaucetUrl = LiteAuthorityForKey(Faucet.PublicKey(), SignatureTypeED25519).JoinPath("/ACME")
var PriceOracleAuthority = PriceOracle().String()
Functions ¶
func AccountUrl ¶ added in v1.0.0
AccountUrl returns a URL with the given root identity and path. The .acme TLD is appended to the identity if it is not already present. AccountUrl does not check if the identity is valid.
func BTCaddress ¶ added in v0.6.0
func BelongsToDn ¶
BelongsToDn checks if the give account belongs to the DN.
func BvnNameFromPartitionId ¶ added in v1.0.0
BvnNameFromPartitionId formats a BVN partition name from the configuration to a valid URL hostname.
func CheckDataEntrySize ¶ added in v1.0.0
CheckDataEntrySize is the marshaled size minus the implicit type header, returns error if there is too much or no data
func ComputeFactomEntryHash ¶ added in v1.0.0
ComputeFactomEntryHash returns the Entry hash of data for a Factom data entry https://github.com/FactomProject/FactomDocs/blob/master/factomDataStructureDetails.md#entry-hash
func ComputeFactomEntryHashForAccount ¶ added in v1.0.0
ComputeFactomEntryHashForAccount 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 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 DataEntryCost ¶ added in v1.0.0
Cost will return the number of credits to be used for the data write
func ETHaddress ¶ added in v0.6.0
func EqualAccount ¶ added in v0.6.0
EqualAccount is used to compare the values of the union
func EqualAccountAuthOperation ¶ added in v0.6.0
func EqualAccountAuthOperation(a, b AccountAuthOperation) bool
EqualAccountAuthOperation is used to compare the values of the union
func EqualAnchorBody ¶ added in v1.0.0
func EqualAnchorBody(a, b AnchorBody) bool
func EqualDataEntry ¶ added in v1.0.0
EqualDataEntry is used to compare the values of the union
func EqualKeyPageOperation ¶ added in v0.6.0
func EqualKeyPageOperation(a, b KeyPageOperation) bool
EqualKeyPageOperation is used to compare the values of the union
func EqualKeySignature ¶ added in v0.6.0
func EqualKeySignature(a, b KeySignature) bool
func EqualSignature ¶ added in v0.6.0
EqualSignature is used to compare the values of the union
func EqualSigner ¶ added in v0.6.0
func EqualTransactionBody ¶ added in v0.6.0
func EqualTransactionBody(a, b TransactionBody) bool
EqualTransactionBody is used to compare the values of the union
func EqualTransactionResult ¶ added in v0.6.0
func EqualTransactionResult(a, b TransactionResult) bool
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 IsValidAccountPath ¶ added in v1.0.0
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 hexadecimal digits. 7) Must not have a path, query, or fragment. 8) Must not be a reserved URL, such as ACME, DN, or BVN-*
func LiteAuthorityForHash ¶ added in v0.6.0
func LiteAuthorityForKey ¶ added in v0.6.0
func LiteAuthorityForKey(pubKey []byte, signatureType SignatureType) *url.URL
func LiteDataAddress ¶
LiteDataAddress returns a lite address for the given chain id as `acc://<chain-id>`.
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 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 ParseLiteAddress ¶ added in v1.0.0
ParseLiteAddress parses the hostname as a hex string and verifies its checksum.
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 ParseLiteIdentity ¶ added in v0.6.0
ParseLiteIdentity extracts the key hash and token URL from a lite identity account URL. Returns `nil, nil` if the URL is not a lite identity 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 ParsePartitionUrl ¶ added in v1.0.0
ParsePartitionUrl extracts the BVN partition name from a BVN URL, if the URL is a valid BVN ADI URL.
func PartitionUrl ¶ added in v1.0.0
PartitionUrl returns `acc://bvn-${partition}.acme` or `acc://dn.acme`.
func PublicKeyHash ¶ added in v1.1.0
func PublicKeyHash(key []byte, typ SignatureType) ([]byte, error)
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, sigMdHash, txnHash []byte) error
func SignBTCLegacy ¶ added in v0.6.0
func SignBTCLegacy(sig *BTCLegacySignature, privateKey, sigMdHash, txnHash []byte) error
func SignED25519 ¶ added in v0.5.1
func SignED25519(sig *ED25519Signature, privateKey, sigMdHash, txnHash []byte)
func SignETH ¶ added in v0.6.0
func SignETH(sig *ETHSignature, privateKey, sigMdHash, txnHash []byte) error
func SignLegacyED25519 ¶ added in v0.5.1
func SignLegacyED25519(sig *LegacyED25519Signature, privateKey, sigMdHash, txnHash []byte)
func SignRCD1 ¶ added in v0.5.1
func SignRCD1(sig *RCD1Signature, privateKey, sigMdHash, txnHash []byte)
func SignatureDidInitiate ¶ added in v0.6.0
func VerifyUserSignature ¶ added in v1.1.0
func VerifyUserSignature(sig UserSignature, message []byte) bool
VerifyUserSignature verifies that the user signature signs the given message.
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (*ADI) UnmarshalJSON ¶
type Account ¶
type Account interface { encoding.UnionValue Type() AccountType GetUrl() *url.URL StripUrl() }
func CopyAccount ¶ added in v1.1.0
CopyAccount copies a Account.
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 ¶
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, bool)
func (*AccountAuth) AllAuthoritiesAreDisabled ¶ added in v1.2.0
func (a *AccountAuth) AllAuthoritiesAreDisabled() 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 { encoding.UnionValue Type() AccountAuthOperationType }
func CopyAccountAuthOperation ¶ added in v1.1.0
func CopyAccountAuthOperation(v AccountAuthOperation) AccountAuthOperation
CopyAccountAuthOperation copies a AccountAuthOperation.
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.Reader) (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 (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 AccountTypeAnchorLedger AccountType = 1
AccountTypeAnchorLedger anchors the other partitions.
const AccountTypeBlockLedger AccountType = 6
AccountTypeBlockLedger is a Block Ledger account.
const AccountTypeDataAccount AccountType = 11
AccountTypeDataAccount is an ADI Data Account.
const AccountTypeIdentity AccountType = 2
AccountTypeIdentity is an Identity account, aka an ADI.
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 AccountTypeSyntheticLedger AccountType = 16
AccountTypeSyntheticLedger is a ledger that tracks the status of produced and received synthetic transactions.
const AccountTypeSystemLedger AccountType = 14
AccountTypeSystemLedger is a ledger that tracks the state of internal operations.
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 (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 AccumulateDataEntry ¶ added in v1.0.0
type AccumulateDataEntry struct { Data [][]byte `json:"data,omitempty" form:"data" query:"data" validate:"required"` // contains filtered or unexported fields }
func (*AccumulateDataEntry) Copy ¶ added in v1.0.0
func (v *AccumulateDataEntry) Copy() *AccumulateDataEntry
func (*AccumulateDataEntry) CopyAsInterface ¶ added in v1.0.0
func (v *AccumulateDataEntry) CopyAsInterface() interface{}
func (*AccumulateDataEntry) Equal ¶ added in v1.0.0
func (v *AccumulateDataEntry) Equal(u *AccumulateDataEntry) bool
func (*AccumulateDataEntry) GetData ¶ added in v1.0.0
func (e *AccumulateDataEntry) GetData() [][]byte
func (*AccumulateDataEntry) Hash ¶ added in v1.0.0
func (e *AccumulateDataEntry) Hash() []byte
func (*AccumulateDataEntry) IsValid ¶ added in v1.0.0
func (v *AccumulateDataEntry) IsValid() error
func (*AccumulateDataEntry) MarshalBinary ¶ added in v1.0.0
func (v *AccumulateDataEntry) MarshalBinary() ([]byte, error)
func (*AccumulateDataEntry) MarshalJSON ¶ added in v1.0.0
func (v *AccumulateDataEntry) MarshalJSON() ([]byte, error)
func (*AccumulateDataEntry) Type ¶ added in v1.0.0
func (*AccumulateDataEntry) Type() DataEntryType
func (*AccumulateDataEntry) UnmarshalBinary ¶ added in v1.0.0
func (v *AccumulateDataEntry) UnmarshalBinary(data []byte) error
func (*AccumulateDataEntry) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *AccumulateDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
func (*AccumulateDataEntry) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *AccumulateDataEntry) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*AccumulateDataEntry) UnmarshalJSON ¶ added in v1.0.0
func (v *AccumulateDataEntry) UnmarshalJSON(data []byte) error
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *AcmeFaucet) UnmarshalFieldsFrom(reader *encoding.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 ActivateProtocolVersion ¶ added in v1.0.2
type ActivateProtocolVersion struct { Version ExecutorVersion `json:"version,omitempty" form:"version" query:"version"` // contains filtered or unexported fields }
func (*ActivateProtocolVersion) Copy ¶ added in v1.0.2
func (v *ActivateProtocolVersion) Copy() *ActivateProtocolVersion
func (*ActivateProtocolVersion) CopyAsInterface ¶ added in v1.0.2
func (v *ActivateProtocolVersion) CopyAsInterface() interface{}
func (*ActivateProtocolVersion) Equal ¶ added in v1.0.2
func (v *ActivateProtocolVersion) Equal(u *ActivateProtocolVersion) bool
func (*ActivateProtocolVersion) IsValid ¶ added in v1.0.2
func (v *ActivateProtocolVersion) IsValid() error
func (*ActivateProtocolVersion) MarshalBinary ¶ added in v1.0.2
func (v *ActivateProtocolVersion) MarshalBinary() ([]byte, error)
func (*ActivateProtocolVersion) MarshalJSON ¶ added in v1.0.2
func (v *ActivateProtocolVersion) MarshalJSON() ([]byte, error)
func (*ActivateProtocolVersion) Type ¶ added in v1.0.2
func (*ActivateProtocolVersion) Type() TransactionType
func (*ActivateProtocolVersion) UnmarshalBinary ¶ added in v1.0.2
func (v *ActivateProtocolVersion) UnmarshalBinary(data []byte) error
func (*ActivateProtocolVersion) UnmarshalBinaryFrom ¶ added in v1.0.2
func (v *ActivateProtocolVersion) UnmarshalBinaryFrom(rd io.Reader) error
func (*ActivateProtocolVersion) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *ActivateProtocolVersion) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*ActivateProtocolVersion) UnmarshalJSON ¶ added in v1.0.2
func (v *ActivateProtocolVersion) UnmarshalJSON(data []byte) 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *AddAccountAuthorityOperation) UnmarshalFieldsFrom(reader *encoding.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" validate:"required"` // 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *AddCredits) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *AddCreditsResult) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *AddKeyOperation) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*AddKeyOperation) UnmarshalJSON ¶ added in v0.5.1
func (v *AddKeyOperation) 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) MarshalJSON ¶ added in v1.0.0
func (v *AllowedTransactions) MarshalJSON() ([]byte, error)
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.
func (*AllowedTransactions) UnmarshalJSON ¶ added in v1.0.0
func (v *AllowedTransactions) UnmarshalJSON(b []byte) error
func (*AllowedTransactions) Unpack ¶ added in v1.0.0
func (v *AllowedTransactions) Unpack() []AllowedTransactionBit
Unpack lists all of the set bits.
type AnchorBody ¶ added in v1.0.0
type AnchorBody interface { TransactionBody GetPartitionAnchor() *PartitionAnchor }
func CopyAnchorBody ¶ added in v1.1.0
func CopyAnchorBody(v AnchorBody) AnchorBody
func UnmarshalAnchorBody ¶ added in v1.0.0
func UnmarshalAnchorBody(b []byte) (AnchorBody, error)
func UnmarshalAnchorBodyFrom ¶ added in v1.1.0
func UnmarshalAnchorBodyFrom(r io.Reader) (AnchorBody, error)
func UnmarshalAnchorBodyJSON ¶ added in v1.0.0
func UnmarshalAnchorBodyJSON(b []byte) (AnchorBody, error)
type AnchorLedger ¶ added in v1.0.0
type AnchorLedger struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` // MinorBlockSequenceNumber is the sequence number of the last minor block. MinorBlockSequenceNumber uint64 `` /* 126-byte string literal not displayed */ // MajorBlockIndex is the block index of the last major block. MajorBlockIndex uint64 `json:"majorBlockIndex,omitempty" form:"majorBlockIndex" query:"majorBlockIndex" validate:"required"` // MajorBlockTime is the timestamp of the last major block. MajorBlockTime time.Time `json:"majorBlockTime,omitempty" form:"majorBlockTime" query:"majorBlockTime" validate:"required"` // PendingMajorBlockAnchors is the list of partitions that have joined the open major block. If there is no open major block, this is unset. PendingMajorBlockAnchors []*url.URL `` /* 126-byte string literal not displayed */ // Sequence tracks sent and received anchors. Sequence []*PartitionSyntheticLedger `json:"sequence,omitempty" form:"sequence" query:"sequence" validate:"required"` // contains filtered or unexported fields }
func (*AnchorLedger) Anchor ¶ added in v1.0.0
func (s *AnchorLedger) Anchor(url *url.URL) *PartitionSyntheticLedger
Anchor finds or creates an anchor ledger entry for the given partition.
func (*AnchorLedger) Copy ¶ added in v1.0.0
func (v *AnchorLedger) Copy() *AnchorLedger
func (*AnchorLedger) CopyAsInterface ¶ added in v1.0.0
func (v *AnchorLedger) CopyAsInterface() interface{}
func (*AnchorLedger) Equal ¶ added in v1.0.0
func (v *AnchorLedger) Equal(u *AnchorLedger) bool
func (*AnchorLedger) GetUrl ¶ added in v1.0.0
func (a *AnchorLedger) GetUrl() *url.URL
func (*AnchorLedger) IsValid ¶ added in v1.0.0
func (v *AnchorLedger) IsValid() error
func (*AnchorLedger) MarshalBinary ¶ added in v1.0.0
func (v *AnchorLedger) MarshalBinary() ([]byte, error)
func (*AnchorLedger) MarshalJSON ¶ added in v1.0.0
func (v *AnchorLedger) MarshalJSON() ([]byte, error)
func (*AnchorLedger) Partition ¶ added in v1.1.0
func (s *AnchorLedger) Partition(url *url.URL) *PartitionSyntheticLedger
func (*AnchorLedger) StripUrl ¶ added in v1.0.0
func (a *AnchorLedger) StripUrl()
func (*AnchorLedger) Type ¶ added in v1.0.0
func (*AnchorLedger) Type() AccountType
func (*AnchorLedger) UnmarshalBinary ¶ added in v1.0.0
func (v *AnchorLedger) UnmarshalBinary(data []byte) error
func (*AnchorLedger) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *AnchorLedger) UnmarshalBinaryFrom(rd io.Reader) error
func (*AnchorLedger) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *AnchorLedger) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*AnchorLedger) UnmarshalJSON ¶ added in v1.0.0
func (v *AnchorLedger) UnmarshalJSON(data []byte) error
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 AnnotatedReceipt ¶ added in v1.1.0
type AnnotatedReceipt struct { Receipt *merkle.Receipt `json:"receipt,omitempty" form:"receipt" query:"receipt" validate:"required"` Anchor *AnchorMetadata `json:"anchor,omitempty" form:"anchor" query:"anchor" validate:"required"` // contains filtered or unexported fields }
AnnotatedReceipt is a merkle.Receipt annotated with the account and chain it originates from.
func (*AnnotatedReceipt) Copy ¶ added in v1.1.0
func (v *AnnotatedReceipt) Copy() *AnnotatedReceipt
func (*AnnotatedReceipt) CopyAsInterface ¶ added in v1.1.0
func (v *AnnotatedReceipt) CopyAsInterface() interface{}
func (*AnnotatedReceipt) Equal ¶ added in v1.1.0
func (v *AnnotatedReceipt) Equal(u *AnnotatedReceipt) bool
func (*AnnotatedReceipt) IsValid ¶ added in v1.1.0
func (v *AnnotatedReceipt) IsValid() error
func (*AnnotatedReceipt) MarshalBinary ¶ added in v1.1.0
func (v *AnnotatedReceipt) MarshalBinary() ([]byte, error)
func (*AnnotatedReceipt) UnmarshalBinary ¶ added in v1.1.0
func (v *AnnotatedReceipt) UnmarshalBinary(data []byte) error
func (*AnnotatedReceipt) UnmarshalBinaryFrom ¶ added in v1.1.0
func (v *AnnotatedReceipt) UnmarshalBinaryFrom(rd io.Reader) 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 AuthoritySignature ¶ added in v1.1.0
type AuthoritySignature struct { // Origin is the signer that produced this signature. Origin *url.URL `json:"origin,omitempty" form:"origin" query:"origin" validate:"required"` // Authority is the authority that produced this signature. Authority *url.URL `json:"authority,omitempty" form:"authority" query:"authority" validate:"required"` // Vote is the authority's vote. Vote VoteType `json:"vote,omitempty" form:"vote" query:"vote"` // TxID is the ID of the transaction this was produced for. TxID *url.TxID `json:"txID,omitempty" form:"txID" query:"txID" validate:"required"` // Cause is the ID of the signature that produced this. Cause *url.TxID `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` Delegator []*url.URL `json:"delegator,omitempty" form:"delegator" query:"delegator" validate:"required"` // contains filtered or unexported fields }
AuthoritySignature is a signature produced by an authority.
func (*AuthoritySignature) Copy ¶ added in v1.1.0
func (v *AuthoritySignature) Copy() *AuthoritySignature
func (*AuthoritySignature) CopyAsInterface ¶ added in v1.1.0
func (v *AuthoritySignature) CopyAsInterface() interface{}
func (*AuthoritySignature) Equal ¶ added in v1.1.0
func (v *AuthoritySignature) Equal(u *AuthoritySignature) bool
func (*AuthoritySignature) GetSigner ¶ added in v1.1.0
func (s *AuthoritySignature) GetSigner() *url.URL
func (*AuthoritySignature) GetTransactionHash ¶ added in v1.1.0
func (s *AuthoritySignature) GetTransactionHash() [32]byte
func (*AuthoritySignature) GetVote ¶ added in v1.1.0
func (s *AuthoritySignature) GetVote() VoteType
func (*AuthoritySignature) Hash ¶ added in v1.1.0
func (s *AuthoritySignature) Hash() []byte
func (*AuthoritySignature) IsValid ¶ added in v1.1.0
func (v *AuthoritySignature) IsValid() error
func (*AuthoritySignature) MarshalBinary ¶ added in v1.1.0
func (v *AuthoritySignature) MarshalBinary() ([]byte, error)
func (*AuthoritySignature) MarshalJSON ¶ added in v1.1.0
func (v *AuthoritySignature) MarshalJSON() ([]byte, error)
func (*AuthoritySignature) Metadata ¶ added in v1.1.0
func (s *AuthoritySignature) Metadata() Signature
func (*AuthoritySignature) RoutingLocation ¶ added in v1.1.0
func (s *AuthoritySignature) RoutingLocation() *url.URL
func (*AuthoritySignature) Type ¶ added in v1.1.0
func (*AuthoritySignature) Type() SignatureType
func (*AuthoritySignature) UnmarshalBinary ¶ added in v1.1.0
func (v *AuthoritySignature) UnmarshalBinary(data []byte) error
func (*AuthoritySignature) UnmarshalBinaryFrom ¶ added in v1.1.0
func (v *AuthoritySignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*AuthoritySignature) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *AuthoritySignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*AuthoritySignature) UnmarshalJSON ¶ added in v1.1.0
func (v *AuthoritySignature) UnmarshalJSON(data []byte) 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) Initiator ¶ added in v0.6.0
func (s *BTCLegacySignature) Initiator() (hash.Hasher, error)
Initiator returns a Hasher that 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) Metadata ¶ added in v0.6.0
func (s *BTCLegacySignature) Metadata() Signature
Metadata returns the signature's metadata.
func (*BTCLegacySignature) RoutingLocation ¶ added in v0.6.0
func (s *BTCLegacySignature) RoutingLocation() *url.URL
RoutingLocation returns Signer.
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *BTCLegacySignature) UnmarshalFieldsFrom(reader *encoding.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(sigMdHash, 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) Initiator ¶ added in v0.6.0
func (s *BTCSignature) Initiator() (hash.Hasher, error)
Initiator returns a Hasher that 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) Metadata ¶ added in v0.6.0
func (s *BTCSignature) Metadata() Signature
Metadata returns the signature's metadata.
func (*BTCSignature) RoutingLocation ¶ added in v0.6.0
func (s *BTCSignature) RoutingLocation() *url.URL
RoutingLocation returns Signer.
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *BTCSignature) UnmarshalFieldsFrom(reader *encoding.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(sigMdHash, txnHash []byte) bool
Verify returns true if this signature is a valid SECP256K1 signature of the hash.
type BlockEntry ¶ added in v1.0.0
type BlockEntry struct { Account *url.URL `json:"account,omitempty" form:"account" query:"account" validate:"required"` Chain string `json:"chain,omitempty" form:"chain" query:"chain" validate:"required"` Index uint64 `json:"index" form:"index" query:"index" validate:"required"` // contains filtered or unexported fields }
func (*BlockEntry) Compare ¶ added in v1.0.2
func (e *BlockEntry) Compare(f *BlockEntry) int
func (*BlockEntry) Copy ¶ added in v1.0.0
func (v *BlockEntry) Copy() *BlockEntry
func (*BlockEntry) CopyAsInterface ¶ added in v1.0.0
func (v *BlockEntry) CopyAsInterface() interface{}
func (*BlockEntry) Equal ¶ added in v1.0.0
func (v *BlockEntry) Equal(u *BlockEntry) bool
func (*BlockEntry) IsValid ¶ added in v1.0.0
func (v *BlockEntry) IsValid() error
func (*BlockEntry) MarshalBinary ¶ added in v1.0.0
func (v *BlockEntry) MarshalBinary() ([]byte, error)
func (*BlockEntry) UnmarshalBinary ¶ added in v1.0.0
func (v *BlockEntry) UnmarshalBinary(data []byte) error
func (*BlockEntry) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *BlockEntry) UnmarshalBinaryFrom(rd io.Reader) error
type BlockLedger ¶ added in v1.0.0
type BlockLedger struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` Index uint64 `json:"index,omitempty" form:"index" query:"index" validate:"required"` Time time.Time `json:"time,omitempty" form:"time" query:"time" validate:"required"` Entries []*BlockEntry `json:"entries,omitempty" form:"entries" query:"entries" validate:"required"` // contains filtered or unexported fields }
func (*BlockLedger) Copy ¶ added in v1.0.0
func (v *BlockLedger) Copy() *BlockLedger
func (*BlockLedger) CopyAsInterface ¶ added in v1.0.0
func (v *BlockLedger) CopyAsInterface() interface{}
func (*BlockLedger) Equal ¶ added in v1.0.0
func (v *BlockLedger) Equal(u *BlockLedger) bool
func (*BlockLedger) GetUrl ¶ added in v1.0.0
func (a *BlockLedger) GetUrl() *url.URL
func (*BlockLedger) IsValid ¶ added in v1.0.0
func (v *BlockLedger) IsValid() error
func (*BlockLedger) MarshalBinary ¶ added in v1.0.0
func (v *BlockLedger) MarshalBinary() ([]byte, error)
func (*BlockLedger) MarshalJSON ¶ added in v1.0.0
func (v *BlockLedger) MarshalJSON() ([]byte, error)
func (*BlockLedger) StripUrl ¶ added in v1.0.0
func (a *BlockLedger) StripUrl()
func (*BlockLedger) Type ¶ added in v1.0.0
func (*BlockLedger) Type() AccountType
func (*BlockLedger) UnmarshalBinary ¶ added in v1.0.0
func (v *BlockLedger) UnmarshalBinary(data []byte) error
func (*BlockLedger) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *BlockLedger) UnmarshalBinaryFrom(rd io.Reader) error
func (*BlockLedger) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *BlockLedger) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*BlockLedger) UnmarshalJSON ¶ added in v1.0.0
func (v *BlockLedger) UnmarshalJSON(data []byte) error
type BlockThreshold ¶ added in v1.2.0
type BlockThreshold struct { MinorBlock uint64 `json:"minorBlock,omitempty" form:"minorBlock" query:"minorBlock"` // contains filtered or unexported fields }
func (*BlockThreshold) Copy ¶ added in v1.2.0
func (v *BlockThreshold) Copy() *BlockThreshold
func (*BlockThreshold) CopyAsInterface ¶ added in v1.2.0
func (v *BlockThreshold) CopyAsInterface() interface{}
func (*BlockThreshold) Equal ¶ added in v1.2.0
func (v *BlockThreshold) Equal(u *BlockThreshold) bool
func (*BlockThreshold) IsValid ¶ added in v1.2.0
func (v *BlockThreshold) IsValid() error
func (*BlockThreshold) MarshalBinary ¶ added in v1.2.0
func (v *BlockThreshold) MarshalBinary() ([]byte, error)
func (*BlockThreshold) UnmarshalBinary ¶ added in v1.2.0
func (v *BlockThreshold) UnmarshalBinary(data []byte) error
func (*BlockThreshold) UnmarshalBinaryFrom ¶ added in v1.2.0
func (v *BlockThreshold) UnmarshalBinaryFrom(rd io.Reader) error
type BlockValidatorAnchor ¶ added in v1.0.0
type BlockValidatorAnchor struct { PartitionAnchor // AcmeBurnt is the amount of acme tokens burnt in the transaction. AcmeBurnt big.Int `json:"acmeBurnt,omitempty" form:"acmeBurnt" query:"acmeBurnt" validate:"required"` // contains filtered or unexported fields }
func (*BlockValidatorAnchor) Copy ¶ added in v1.0.0
func (v *BlockValidatorAnchor) Copy() *BlockValidatorAnchor
func (*BlockValidatorAnchor) CopyAsInterface ¶ added in v1.0.0
func (v *BlockValidatorAnchor) CopyAsInterface() interface{}
func (*BlockValidatorAnchor) Equal ¶ added in v1.0.0
func (v *BlockValidatorAnchor) Equal(u *BlockValidatorAnchor) bool
func (*BlockValidatorAnchor) GetPartitionAnchor ¶ added in v1.0.0
func (a *BlockValidatorAnchor) GetPartitionAnchor() *PartitionAnchor
func (*BlockValidatorAnchor) IsValid ¶ added in v1.0.0
func (v *BlockValidatorAnchor) IsValid() error
func (*BlockValidatorAnchor) MarshalBinary ¶ added in v1.0.0
func (v *BlockValidatorAnchor) MarshalBinary() ([]byte, error)
func (*BlockValidatorAnchor) MarshalJSON ¶ added in v1.0.0
func (v *BlockValidatorAnchor) MarshalJSON() ([]byte, error)
func (*BlockValidatorAnchor) Type ¶ added in v1.0.0
func (*BlockValidatorAnchor) Type() TransactionType
func (*BlockValidatorAnchor) UnmarshalBinary ¶ added in v1.0.0
func (v *BlockValidatorAnchor) UnmarshalBinary(data []byte) error
func (*BlockValidatorAnchor) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *BlockValidatorAnchor) UnmarshalBinaryFrom(rd io.Reader) error
func (*BlockValidatorAnchor) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *BlockValidatorAnchor) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*BlockValidatorAnchor) UnmarshalJSON ¶ added in v1.0.0
func (v *BlockValidatorAnchor) UnmarshalJSON(data []byte) error
type BookType ¶ added in v1.0.0
type BookType uint64
BookType is the type of a key book.
const BookTypeNormal BookType = 0
BookTypeNormal is a normal key book.
const BookTypeOperator BookType = 2
BookTypeOperator Operator key book.
const BookTypeValidator BookType = 1
BookTypeValidator is a validator key book.
func BookTypeByName ¶ added in v1.0.0
BookTypeByName returns the named Book Type.
func (BookType) GetEnumValue ¶ added in v1.0.0
GetEnumValue returns the value of the Book Type
func (BookType) MarshalJSON ¶ added in v1.0.0
MarshalJSON marshals the Book Type to JSON as a string.
func (*BookType) SetEnumValue ¶ added in v1.0.0
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (*BookType) UnmarshalJSON ¶ added in v1.0.0
UnmarshalJSON unmarshals the Book Type from JSON as a string.
type BurnCredits ¶ added in v1.1.0
type BurnCredits struct { Amount uint64 `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*BurnCredits) Copy ¶ added in v1.1.0
func (v *BurnCredits) Copy() *BurnCredits
func (*BurnCredits) CopyAsInterface ¶ added in v1.1.0
func (v *BurnCredits) CopyAsInterface() interface{}
func (*BurnCredits) Equal ¶ added in v1.1.0
func (v *BurnCredits) Equal(u *BurnCredits) bool
func (*BurnCredits) IsValid ¶ added in v1.1.0
func (v *BurnCredits) IsValid() error
func (*BurnCredits) MarshalBinary ¶ added in v1.1.0
func (v *BurnCredits) MarshalBinary() ([]byte, error)
func (*BurnCredits) MarshalJSON ¶ added in v1.1.0
func (v *BurnCredits) MarshalJSON() ([]byte, error)
func (*BurnCredits) Type ¶ added in v1.1.0
func (*BurnCredits) Type() TransactionType
func (*BurnCredits) UnmarshalBinary ¶ added in v1.1.0
func (v *BurnCredits) UnmarshalBinary(data []byte) error
func (*BurnCredits) UnmarshalBinaryFrom ¶ added in v1.1.0
func (v *BurnCredits) UnmarshalBinaryFrom(rd io.Reader) error
func (*BurnCredits) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *BurnCredits) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*BurnCredits) UnmarshalJSON ¶ added in v1.1.0
func (v *BurnCredits) UnmarshalJSON(data []byte) error
type BurnTokens ¶
type BurnTokens struct { Amount big.Int `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*BurnTokens) 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *BurnTokens) UnmarshalFieldsFrom(reader *encoding.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) Compare ¶ added in v1.0.0
func (c *ChainMetadata) Compare(d *ChainMetadata) int
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 CreateDataAccount ¶
type CreateDataAccount struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` // Authorities is a list of authorities to add to the authority set. Authorities []*url.URL `json:"authorities,omitempty" form:"authorities" query:"authorities"` // 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *CreateDataAccount) UnmarshalFieldsFrom(reader *encoding.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 creates a new key book. KeyBookUrl *url.URL `json:"keyBookUrl,omitempty" form:"keyBookUrl" query:"keyBookUrl"` // Authorities is a list of authorities to add to the authority set, in addition to the new key book. Authorities []*url.URL `json:"authorities,omitempty" form:"authorities" query:"authorities"` // 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *CreateIdentity) UnmarshalFieldsFrom(reader *encoding.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"` // Authorities is a list of authorities to add to the authority set, in addition to the key book itself. Authorities []*url.URL `json:"authorities,omitempty" form:"authorities" query:"authorities"` // 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *CreateKeyBook) UnmarshalFieldsFrom(reader *encoding.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"` // 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *CreateKeyPage) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*CreateKeyPage) UnmarshalJSON ¶
func (v *CreateKeyPage) UnmarshalJSON(data []byte) error
type CreateLiteTokenAccount ¶ added in v1.0.0
type CreateLiteTokenAccount struct {
// contains filtered or unexported fields
}
func (*CreateLiteTokenAccount) Copy ¶ added in v1.0.0
func (v *CreateLiteTokenAccount) Copy() *CreateLiteTokenAccount
func (*CreateLiteTokenAccount) CopyAsInterface ¶ added in v1.0.0
func (v *CreateLiteTokenAccount) CopyAsInterface() interface{}
func (*CreateLiteTokenAccount) Equal ¶ added in v1.0.0
func (v *CreateLiteTokenAccount) Equal(u *CreateLiteTokenAccount) bool
func (*CreateLiteTokenAccount) IsValid ¶ added in v1.0.0
func (v *CreateLiteTokenAccount) IsValid() error
func (*CreateLiteTokenAccount) MarshalBinary ¶ added in v1.0.0
func (v *CreateLiteTokenAccount) MarshalBinary() ([]byte, error)
func (*CreateLiteTokenAccount) MarshalJSON ¶ added in v1.0.0
func (v *CreateLiteTokenAccount) MarshalJSON() ([]byte, error)
func (*CreateLiteTokenAccount) Type ¶ added in v1.0.0
func (*CreateLiteTokenAccount) Type() TransactionType
func (*CreateLiteTokenAccount) UnmarshalBinary ¶ added in v1.0.0
func (v *CreateLiteTokenAccount) UnmarshalBinary(data []byte) error
func (*CreateLiteTokenAccount) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *CreateLiteTokenAccount) UnmarshalBinaryFrom(rd io.Reader) error
func (*CreateLiteTokenAccount) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *CreateLiteTokenAccount) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*CreateLiteTokenAccount) UnmarshalJSON ¶ added in v1.0.0
func (v *CreateLiteTokenAccount) UnmarshalJSON(data []byte) error
type CreateToken ¶
type CreateToken struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` 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"` // Authorities is a list of authorities to add to the authority set. Authorities []*url.URL `json:"authorities,omitempty" form:"authorities" query:"authorities"` // 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *CreateToken) UnmarshalFieldsFrom(reader *encoding.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"` // Authorities is a list of authorities to add to the authority set. Authorities []*url.URL `json:"authorities,omitempty" form:"authorities" query:"authorities"` Proof *TokenIssuerProof `json:"proof,omitempty" form:"proof" query:"proof"` // 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *CreateTokenAccount) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*CreateTokenAccount) UnmarshalJSON ¶
func (v *CreateTokenAccount) UnmarshalJSON(data []byte) error
type CreditRecipient ¶ added in v1.1.0
type CreditRecipient struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` Amount uint64 `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // contains filtered or unexported fields }
func (*CreditRecipient) Copy ¶ added in v1.1.0
func (v *CreditRecipient) Copy() *CreditRecipient
func (*CreditRecipient) CopyAsInterface ¶ added in v1.1.0
func (v *CreditRecipient) CopyAsInterface() interface{}
func (*CreditRecipient) Equal ¶ added in v1.1.0
func (v *CreditRecipient) Equal(u *CreditRecipient) bool
func (*CreditRecipient) IsValid ¶ added in v1.1.0
func (v *CreditRecipient) IsValid() error
func (*CreditRecipient) MarshalBinary ¶ added in v1.1.0
func (v *CreditRecipient) MarshalBinary() ([]byte, error)
func (*CreditRecipient) UnmarshalBinary ¶ added in v1.1.0
func (v *CreditRecipient) UnmarshalBinary(data []byte) error
func (*CreditRecipient) UnmarshalBinaryFrom ¶ added in v1.1.0
func (v *CreditRecipient) UnmarshalBinaryFrom(rd io.Reader) error
type DataAccount ¶
type DataAccount struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` AccountAuth Entry DataEntry `json:"entry,omitempty" form:"entry" query:"entry"` // 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) StripUrl ¶ added in v1.0.0
func (a *DataAccount) StripUrl()
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *DataAccount) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*DataAccount) UnmarshalJSON ¶
func (v *DataAccount) UnmarshalJSON(data []byte) error
type DataEntry ¶
type DataEntry interface { encoding.UnionValue Type() DataEntryType Hash() []byte GetData() [][]byte }
func CopyDataEntry ¶ added in v1.1.0
CopyDataEntry copies a DataEntry.
func NewDataEntry ¶ added in v1.0.0
func NewDataEntry(typ DataEntryType) (DataEntry, error)
NewDataEntry creates a new DataEntry for the specified DataEntryType.
func UnmarshalDataEntry ¶ added in v1.0.0
UnmarshalDataEntry unmarshals a DataEntry.
func UnmarshalDataEntryFrom ¶ added in v1.0.0
UnmarshalDataEntryFrom unmarshals a DataEntry.
func UnmarshalDataEntryJSON ¶ added in v1.0.0
UnmarshalDataEntryJson unmarshals a DataEntry.
type DataEntryType ¶ added in v1.0.0
type DataEntryType uint64
const DataEntryTypeAccumulate DataEntryType = 2
DataEntryTypeAccumulate .
const DataEntryTypeDoubleHash DataEntryType = 3
DataEntryTypeDoubleHash .
const DataEntryTypeFactom DataEntryType = 1
DataEntryTypeFactom .
const DataEntryTypeUnknown DataEntryType = 0
DataEntryTypeUnknown .
func DataEntryTypeByName ¶ added in v1.0.0
func DataEntryTypeByName(name string) (DataEntryType, bool)
DataEntryTypeByName returns the named Data Entry Type.
func (DataEntryType) GetEnumValue ¶ added in v1.0.0
func (v DataEntryType) GetEnumValue() uint64
GetEnumValue returns the value of the Data Entry Type
func (DataEntryType) MarshalJSON ¶ added in v1.0.0
func (v DataEntryType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Data Entry Type to JSON as a string.
func (*DataEntryType) SetEnumValue ¶ added in v1.0.0
func (v *DataEntryType) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (DataEntryType) String ¶ added in v1.0.0
func (v DataEntryType) String() string
String returns the name of the Data Entry Type.
func (*DataEntryType) UnmarshalJSON ¶ added in v1.0.0
func (v *DataEntryType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Data Entry Type from JSON as a string.
type DelegatedSignature ¶ added in v0.6.0
type DelegatedSignature struct { Signature Signature `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` // Delegator is the authority that delegated its authority to the signer. Delegator *url.URL `json:"delegator,omitempty" form:"delegator" query:"delegator" validate:"required"` // contains filtered or unexported fields }
DelegatedSignature is used when signing a transaction on behalf of another authority.
func (*DelegatedSignature) Copy ¶ added in v0.6.0
func (v *DelegatedSignature) Copy() *DelegatedSignature
func (*DelegatedSignature) CopyAsInterface ¶ added in v0.6.0
func (v *DelegatedSignature) CopyAsInterface() interface{}
func (*DelegatedSignature) Equal ¶ added in v0.6.0
func (v *DelegatedSignature) Equal(u *DelegatedSignature) bool
func (*DelegatedSignature) GetSigner ¶ added in v0.6.0
func (s *DelegatedSignature) GetSigner() *url.URL
func (*DelegatedSignature) GetTransactionHash ¶ added in v0.6.0
func (s *DelegatedSignature) GetTransactionHash() [32]byte
func (*DelegatedSignature) GetVote ¶ added in v0.6.0
func (s *DelegatedSignature) GetVote() VoteType
func (*DelegatedSignature) Hash ¶ added in v0.6.0
func (s *DelegatedSignature) Hash() []byte
func (*DelegatedSignature) Initiator ¶ added in v0.6.0
func (s *DelegatedSignature) Initiator() (hash.Hasher, error)
Initiator returns a Hasher that calculates the Merkle hash of the signature.
func (*DelegatedSignature) IsValid ¶ added in v0.6.0
func (v *DelegatedSignature) IsValid() error
func (*DelegatedSignature) MarshalBinary ¶ added in v0.6.0
func (v *DelegatedSignature) MarshalBinary() ([]byte, error)
func (*DelegatedSignature) MarshalJSON ¶ added in v0.6.0
func (v *DelegatedSignature) MarshalJSON() ([]byte, error)
func (*DelegatedSignature) Metadata ¶ added in v0.6.0
func (s *DelegatedSignature) Metadata() Signature
Metadata returns the signature's metadata.
func (*DelegatedSignature) RoutingLocation ¶ added in v0.6.0
func (s *DelegatedSignature) RoutingLocation() *url.URL
func (*DelegatedSignature) Type ¶ added in v0.6.0
func (*DelegatedSignature) Type() SignatureType
func (*DelegatedSignature) UnmarshalBinary ¶ added in v0.6.0
func (v *DelegatedSignature) UnmarshalBinary(data []byte) error
func (*DelegatedSignature) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *DelegatedSignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*DelegatedSignature) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *DelegatedSignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*DelegatedSignature) UnmarshalJSON ¶ added in v0.6.0
func (v *DelegatedSignature) UnmarshalJSON(data []byte) error
func (*DelegatedSignature) Verify ¶ added in v0.6.0
func (s *DelegatedSignature) Verify(sigMdHash, hash []byte) bool
type DirectoryAnchor ¶ added in v1.0.0
type DirectoryAnchor struct { PartitionAnchor // Updates are synchronization updates for network accounts. Updates []NetworkAccountUpdate `json:"updates,omitempty" form:"updates" query:"updates" validate:"required"` // Receipts are receipts for anchors from other partitions that were included in the block. Receipts []*PartitionAnchorReceipt `json:"receipts,omitempty" form:"receipts" query:"receipts" validate:"required"` // MakeMajorBlock notifies the partition that the DN has opened a major block. MakeMajorBlock uint64 `json:"makeMajorBlock,omitempty" form:"makeMajorBlock" query:"makeMajorBlock" validate:"required"` // MakeMajorBlockTime holds the time when the major block was opened. MakeMajorBlockTime time.Time `json:"makeMajorBlockTime,omitempty" form:"makeMajorBlockTime" query:"makeMajorBlockTime" validate:"required"` // contains filtered or unexported fields }
func (*DirectoryAnchor) Copy ¶ added in v1.0.0
func (v *DirectoryAnchor) Copy() *DirectoryAnchor
func (*DirectoryAnchor) CopyAsInterface ¶ added in v1.0.0
func (v *DirectoryAnchor) CopyAsInterface() interface{}
func (*DirectoryAnchor) Equal ¶ added in v1.0.0
func (v *DirectoryAnchor) Equal(u *DirectoryAnchor) bool
func (*DirectoryAnchor) GetPartitionAnchor ¶ added in v1.0.0
func (a *DirectoryAnchor) GetPartitionAnchor() *PartitionAnchor
func (*DirectoryAnchor) IsValid ¶ added in v1.0.0
func (v *DirectoryAnchor) IsValid() error
func (*DirectoryAnchor) MarshalBinary ¶ added in v1.0.0
func (v *DirectoryAnchor) MarshalBinary() ([]byte, error)
func (*DirectoryAnchor) MarshalJSON ¶ added in v1.0.0
func (v *DirectoryAnchor) MarshalJSON() ([]byte, error)
func (*DirectoryAnchor) Type ¶ added in v1.0.0
func (*DirectoryAnchor) Type() TransactionType
func (*DirectoryAnchor) UnmarshalBinary ¶ added in v1.0.0
func (v *DirectoryAnchor) UnmarshalBinary(data []byte) error
func (*DirectoryAnchor) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *DirectoryAnchor) UnmarshalBinaryFrom(rd io.Reader) error
func (*DirectoryAnchor) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *DirectoryAnchor) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*DirectoryAnchor) UnmarshalJSON ¶ added in v1.0.0
func (v *DirectoryAnchor) UnmarshalJSON(data []byte) 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *DisableAccountAuthOperation) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*DisableAccountAuthOperation) UnmarshalJSON ¶ added in v0.6.0
func (v *DisableAccountAuthOperation) UnmarshalJSON(data []byte) error
type DoubleHashDataEntry ¶ added in v1.0.4
type DoubleHashDataEntry struct { Data [][]byte `json:"data,omitempty" form:"data" query:"data" validate:"required"` // contains filtered or unexported fields }
func (*DoubleHashDataEntry) Copy ¶ added in v1.0.4
func (v *DoubleHashDataEntry) Copy() *DoubleHashDataEntry
func (*DoubleHashDataEntry) CopyAsInterface ¶ added in v1.0.4
func (v *DoubleHashDataEntry) CopyAsInterface() interface{}
func (*DoubleHashDataEntry) Equal ¶ added in v1.0.4
func (v *DoubleHashDataEntry) Equal(u *DoubleHashDataEntry) bool
func (*DoubleHashDataEntry) GetData ¶ added in v1.0.4
func (e *DoubleHashDataEntry) GetData() [][]byte
func (*DoubleHashDataEntry) Hash ¶ added in v1.0.4
func (e *DoubleHashDataEntry) Hash() []byte
func (*DoubleHashDataEntry) IsValid ¶ added in v1.0.4
func (v *DoubleHashDataEntry) IsValid() error
func (*DoubleHashDataEntry) MarshalBinary ¶ added in v1.0.4
func (v *DoubleHashDataEntry) MarshalBinary() ([]byte, error)
func (*DoubleHashDataEntry) MarshalJSON ¶ added in v1.0.4
func (v *DoubleHashDataEntry) MarshalJSON() ([]byte, error)
func (*DoubleHashDataEntry) Type ¶ added in v1.0.4
func (*DoubleHashDataEntry) Type() DataEntryType
func (*DoubleHashDataEntry) UnmarshalBinary ¶ added in v1.0.4
func (v *DoubleHashDataEntry) UnmarshalBinary(data []byte) error
func (*DoubleHashDataEntry) UnmarshalBinaryFrom ¶ added in v1.0.4
func (v *DoubleHashDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
func (*DoubleHashDataEntry) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *DoubleHashDataEntry) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*DoubleHashDataEntry) UnmarshalJSON ¶ added in v1.0.4
func (v *DoubleHashDataEntry) 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) Initiator ¶ added in v0.6.0
func (s *ED25519Signature) Initiator() (hash.Hasher, error)
Initiator returns a Hasher that 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) Metadata ¶ added in v0.6.0
func (s *ED25519Signature) Metadata() Signature
Metadata returns the signature's metadata.
func (*ED25519Signature) RoutingLocation ¶ added in v0.6.0
func (s *ED25519Signature) RoutingLocation() *url.URL
RoutingLocation returns Signer.
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *ED25519Signature) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*ED25519Signature) UnmarshalJSON ¶
func (v *ED25519Signature) UnmarshalJSON(data []byte) error
func (*ED25519Signature) Verify ¶
func (e *ED25519Signature) Verify(sigMdHash, 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) Initiator ¶ added in v0.6.0
func (s *ETHSignature) Initiator() (hash.Hasher, error)
Initiator returns a Hasher that 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) Metadata ¶ added in v0.6.0
func (s *ETHSignature) Metadata() Signature
Metadata returns the signature's metadata.
func (*ETHSignature) RoutingLocation ¶ added in v0.6.0
func (s *ETHSignature) RoutingLocation() *url.URL
RoutingLocation returns Signer.
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *ETHSignature) UnmarshalFieldsFrom(reader *encoding.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(sigMdHash, 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *EmptyResult) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *EnableAccountAuthOperation) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*EnableAccountAuthOperation) UnmarshalJSON ¶ added in v0.6.0
func (v *EnableAccountAuthOperation) UnmarshalJSON(data []byte) error
type ErrorCode ¶
type ErrorCode int
const ErrorCodeDidPanic ErrorCode = 3
ErrorCodeDidPanic indicates the request failed due to a fatal error.
const ErrorCodeEncodingError ErrorCode = 1
ErrorCodeEncodingError indicates something could not be decoded or encoded.
const ErrorCodeFailed ErrorCode = 2
ErrorCodeFailed indicates the request failed.
const ErrorCodeOK ErrorCode = 0
ErrorCodeOK indicates the request succeeded.
const ErrorCodeUnknownError ErrorCode = 4
ErrorCodeUnknownError indicates the request failed due to an unknown error.
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 ExecutorVersion ¶ added in v1.0.2
type ExecutorVersion uint64
ExecutorVersion is an executor version number.
const ExecutorVersionV1 ExecutorVersion = 1
ExecutorVersionV1 is the first version of the executor system.
const ExecutorVersionV1DoubleHashEntries ExecutorVersion = 3
ExecutorVersionV1DoubleHashEntries fixes a problem that prevented v1-signatureAnchoring from being activated correctly and enables double-hashed data entries.
const ExecutorVersionV1Halt ExecutorVersion = 4
ExecutorVersionV1Halt halts transaction processing in preparation for v2.
const ExecutorVersionV1SignatureAnchoring ExecutorVersion = 2
ExecutorVersionV1SignatureAnchoring introduces anchoring of signature chains into the root chain.
const ExecutorVersionV2 ExecutorVersion = 5
ExecutorVersionV2 is the second version of the executor system.
func ExecutorVersionByName ¶ added in v1.0.2
func ExecutorVersionByName(name string) (ExecutorVersion, bool)
ExecutorVersionByName returns the named Executor Version.
func (ExecutorVersion) DoubleHashEntriesEnabled ¶ added in v1.0.4
func (v ExecutorVersion) DoubleHashEntriesEnabled() bool
DoubleHashEntriesEnabled checks if the version is at least V1 double-hash entries.
func (ExecutorVersion) GetEnumValue ¶ added in v1.0.2
func (v ExecutorVersion) GetEnumValue() uint64
GetEnumValue returns the value of the Executor Version
func (ExecutorVersion) HaltV1 ¶ added in v1.1.0
func (v ExecutorVersion) HaltV1() bool
HaltV1 checks if the version is at least V1 halt.
func (ExecutorVersion) MarshalJSON ¶ added in v1.0.2
func (v ExecutorVersion) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Executor Version to JSON as a string.
func (*ExecutorVersion) SetEnumValue ¶ added in v1.0.2
func (v *ExecutorVersion) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (ExecutorVersion) SignatureAnchoringEnabled ¶ added in v1.0.2
func (v ExecutorVersion) SignatureAnchoringEnabled() bool
SignatureAnchoringEnabled checks if the version is at least V1 signature anchoring.
func (ExecutorVersion) String ¶ added in v1.0.2
func (v ExecutorVersion) String() string
String returns the name of the Executor Version.
func (*ExecutorVersion) UnmarshalJSON ¶ added in v1.0.2
func (v *ExecutorVersion) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Executor Version from JSON as a string.
func (ExecutorVersion) V2Enabled ¶ added in v1.2.10
func (v ExecutorVersion) V2Enabled() bool
V2Enabled checks if the version is at least V2Enabled.
type FactomDataEntry ¶ added in v1.0.0
type FactomDataEntry struct { AccountId [32]byte `json:"accountId,omitempty" form:"accountId" query:"accountId" validate:"required"` Data []byte `json:"data,omitempty" form:"data" query:"data" validate:"required"` ExtIds [][]byte `json:"extIds,omitempty" form:"extIds" query:"extIds" validate:"required"` }
func NewFactomDataEntry ¶ added in v1.0.0
func NewFactomDataEntry() *FactomDataEntry
func (*FactomDataEntry) Copy ¶ added in v1.0.0
func (v *FactomDataEntry) Copy() *FactomDataEntry
func (*FactomDataEntry) CopyAsInterface ¶ added in v1.0.0
func (v *FactomDataEntry) CopyAsInterface() interface{}
func (*FactomDataEntry) Equal ¶ added in v1.0.0
func (v *FactomDataEntry) Equal(u *FactomDataEntry) bool
func (*FactomDataEntry) Hash ¶ added in v1.0.0
func (e *FactomDataEntry) Hash() []byte
func (*FactomDataEntry) IsValid ¶ added in v1.0.0
func (e *FactomDataEntry) IsValid() error
func (*FactomDataEntry) MarshalBinary ¶ added in v1.0.0
func (e *FactomDataEntry) MarshalBinary() ([]byte, error)
MarshalBinary marshal the FactomDataEntry in accordance to https://github.com/FactomProject/FactomDocs/blob/master/factomDataStructureDetails.md#entry
func (*FactomDataEntry) MarshalJSON ¶ added in v1.0.0
func (v *FactomDataEntry) MarshalJSON() ([]byte, error)
func (*FactomDataEntry) UnmarshalBinary ¶ added in v1.0.0
func (e *FactomDataEntry) UnmarshalBinary(data []byte) error
UnmarshalBinary unmarshal the FactomDataEntry in accordance to https://github.com/FactomProject/FactomDocs/blob/master/factomDataStructureDetails.md#entry
func (*FactomDataEntry) UnmarshalBinaryFrom ¶ added in v1.1.0
func (e *FactomDataEntry) UnmarshalBinaryFrom(rd io.Reader) error
func (*FactomDataEntry) UnmarshalJSON ¶ added in v1.0.0
func (v *FactomDataEntry) UnmarshalJSON(data []byte) error
func (*FactomDataEntry) Wrap ¶ added in v1.0.0
func (e *FactomDataEntry) Wrap() DataEntry
type FactomDataEntryWrapper ¶ added in v1.0.0
type FactomDataEntryWrapper struct { FactomDataEntry // contains filtered or unexported fields }
func (*FactomDataEntryWrapper) Copy ¶ added in v1.0.0
func (v *FactomDataEntryWrapper) Copy() *FactomDataEntryWrapper
func (*FactomDataEntryWrapper) CopyAsInterface ¶ added in v1.0.0
func (v *FactomDataEntryWrapper) CopyAsInterface() interface{}
func (*FactomDataEntryWrapper) Equal ¶ added in v1.0.0
func (v *FactomDataEntryWrapper) Equal(u *FactomDataEntryWrapper) bool
func (*FactomDataEntryWrapper) GetData ¶ added in v1.0.0
func (e *FactomDataEntryWrapper) GetData() [][]byte
func (*FactomDataEntryWrapper) IsValid ¶ added in v1.0.0
func (v *FactomDataEntryWrapper) IsValid() error
func (*FactomDataEntryWrapper) MarshalBinary ¶ added in v1.0.0
func (v *FactomDataEntryWrapper) MarshalBinary() ([]byte, error)
func (*FactomDataEntryWrapper) MarshalJSON ¶ added in v1.0.0
func (v *FactomDataEntryWrapper) MarshalJSON() ([]byte, error)
func (*FactomDataEntryWrapper) Type ¶ added in v1.0.0
func (*FactomDataEntryWrapper) Type() DataEntryType
func (*FactomDataEntryWrapper) UnmarshalBinary ¶ added in v1.0.0
func (v *FactomDataEntryWrapper) UnmarshalBinary(data []byte) error
func (*FactomDataEntryWrapper) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *FactomDataEntryWrapper) UnmarshalBinaryFrom(rd io.Reader) error
func (*FactomDataEntryWrapper) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *FactomDataEntryWrapper) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*FactomDataEntryWrapper) UnmarshalJSON ¶ added in v1.0.0
func (v *FactomDataEntryWrapper) UnmarshalJSON(data []byte) error
type Fee ¶
type Fee uint64
Fee is the unit cost of a transaction.
const ( // FeeFailedMaximum $0.01 FeeFailedMaximum Fee = 100 // FeeSignature $0.0001 FeeSignature Fee = 1 // FeeCreateIdentity $5.00 = 50000 credits @ 0.0001 / credit. FeeCreateIdentity Fee = 50000 // FeeCreateAccount $0.25 FeeCreateAccount Fee = 2500 // FeeTransferTokens $0.03 FeeTransferTokens Fee = 300 // FeeTransferTokensExtra $0.01 FeeTransferTokensExtra Fee = 100 // FeeCreateToken $50.00 FeeCreateToken Fee = 500000 // FeeGeneralTiny $0.001 FeeGeneralTiny Fee = 1 // FeeGeneralSmall $0.001 FeeGeneralSmall Fee = 10 // FeeCreateKeyPage $1.00 FeeCreateKeyPage Fee = 10000 // FeeCreateKeyPageExtra $0.01 FeeCreateKeyPageExtra Fee = 100 // FeeData $0.001 / 256 bytes FeeData Fee = 10 // FeeScratchData $0.0001 / 256 bytes FeeScratchData Fee = 1 // FeeUpdateAuth $0.03 FeeUpdateAuth Fee = 300 // FeeUpdateAuthExtra $0.01 FeeUpdateAuthExtra Fee = 100 // MinimumCreditPurchase $0.01 MinimumCreditPurchase Fee = 100 )
func (Fee) GetEnumValue ¶ added in v1.0.0
func (*Fee) SetEnumValue ¶ added in v1.0.0
type FeeSchedule ¶ added in v1.0.0
type FeeSchedule struct { // CreateIdentitySliding is the sliding fee schedule for creating an ADI. The first entry is the cost of a one-character ADI, the second is the cost of a two-character ADI, etc. CreateIdentitySliding []Fee `json:"createIdentitySliding,omitempty" form:"createIdentitySliding" query:"createIdentitySliding" validate:"required"` // contains filtered or unexported fields }
func (*FeeSchedule) ComputeSignatureFee ¶ added in v1.0.0
func (s *FeeSchedule) ComputeSignatureFee(sig Signature) (Fee, error)
func (*FeeSchedule) ComputeSyntheticRefund ¶ added in v1.0.0
func (s *FeeSchedule) ComputeSyntheticRefund(txn *Transaction, synthCount int) (Fee, error)
func (*FeeSchedule) ComputeTransactionFee ¶ added in v1.0.0
func (s *FeeSchedule) ComputeTransactionFee(tx *Transaction) (Fee, error)
func (*FeeSchedule) Copy ¶ added in v1.0.0
func (v *FeeSchedule) Copy() *FeeSchedule
func (*FeeSchedule) CopyAsInterface ¶ added in v1.0.0
func (v *FeeSchedule) CopyAsInterface() interface{}
func (*FeeSchedule) Equal ¶ added in v1.0.0
func (v *FeeSchedule) Equal(u *FeeSchedule) bool
func (*FeeSchedule) IsValid ¶ added in v1.0.0
func (v *FeeSchedule) IsValid() error
func (*FeeSchedule) MarshalBinary ¶ added in v1.0.0
func (v *FeeSchedule) MarshalBinary() ([]byte, error)
func (*FeeSchedule) MarshalJSON ¶ added in v1.0.0
func (v *FeeSchedule) MarshalJSON() ([]byte, error)
func (*FeeSchedule) UnmarshalBinary ¶ added in v1.0.0
func (v *FeeSchedule) UnmarshalBinary(data []byte) error
func (*FeeSchedule) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *FeeSchedule) UnmarshalBinaryFrom(rd io.Reader) error
func (*FeeSchedule) UnmarshalJSON ¶ added in v1.0.0
func (v *FeeSchedule) UnmarshalJSON(data []byte) error
type FullAccount ¶ added in v0.6.0
type FullAccount interface { Account GetAuth() *AccountAuth }
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"` // RootIndexIndex is the index of the root anchor index chain entry. Only include when indexing the anchor ledger for a major block. RootIndexIndex uint64 `json:"rootIndexIndex,omitempty" form:"rootIndexIndex" query:"rootIndexIndex" 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 InternalSignature ¶ added in v0.5.1
type InternalSignature struct { // Cause is the hash of the transaction that produced the signed transaction. Cause [32]byte `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash" validate:"required"` // contains filtered or unexported fields }
InternalSignature is used for internally produced transactions.
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) GetSigner ¶ added in v0.5.1
func (s *InternalSignature) GetSigner() *url.URL
GetSigner panics.
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 VoteTypeAccept.
func (*InternalSignature) Hash ¶ added in v0.5.1
func (s *InternalSignature) Hash() []byte
Hash returns the hash of the signature.
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) Metadata ¶ added in v0.6.0
func (s *InternalSignature) Metadata() Signature
Metadata returns the signature's metadata.
func (*InternalSignature) RoutingLocation ¶ added in v0.6.0
func (s *InternalSignature) RoutingLocation() *url.URL
RoutingLocation panics.
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *InternalSignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*InternalSignature) UnmarshalJSON ¶ added in v0.5.1
func (v *InternalSignature) 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"` To []*TokenRecipient `json:"to,omitempty" form:"to" query:"to" 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *IssueTokens) UnmarshalFieldsFrom(reader *encoding.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"` BookType BookType `json:"bookType,omitempty" form:"bookType" query:"bookType" 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) UnmarshalFieldsFrom ¶ added in v1.1.0
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) AddKeySpec ¶ added in v1.0.0
AddKeySpec adds a key spec to the page.
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) EntryByDelegate ¶ added in v0.6.0
EntryByDelegate finds the entry with a matching owner.
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) GetAuthority ¶ added in v1.1.0
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) RemoveKeySpecAt ¶ added in v1.0.0
RemoveKeySpecAt removes the I'th key spec.
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (*KeyPage) UnmarshalJSON ¶
type KeyPageOperation ¶
type KeyPageOperation interface { encoding.UnionValue Type() KeyPageOperationType }
func CopyKeyPageOperation ¶ added in v1.1.0
func CopyKeyPageOperation(v KeyPageOperation) KeyPageOperation
CopyKeyPageOperation copies a KeyPageOperation.
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.Reader) (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 KeyPageOperationTypeSetRejectThreshold KeyPageOperationType = 6
KeyPageOperationTypeSetRejectThreshold sets the rejection threshold.
const KeyPageOperationTypeSetResponseThreshold KeyPageOperationType = 7
KeyPageOperationTypeSetResponseThreshold sets the response threshold.
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 (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
type KeySignature interface { UserSignature GetSignature() []byte GetPublicKeyHash() []byte GetPublicKey() []byte GetSignerVersion() uint64 GetTimestamp() uint64 }
func CopyKeySignature ¶ added in v1.1.0
func CopyKeySignature(v KeySignature) KeySignature
func UnmarshalKeySignature ¶ added in v0.6.0
func UnmarshalKeySignature(data []byte) (KeySignature, error)
func UnmarshalKeySignatureFrom ¶ added in v1.1.0
func UnmarshalKeySignatureFrom(rd io.Reader) (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"` Delegate *url.URL `json:"delegate,omitempty" form:"delegate" query:"delegate" 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"` Delegate *url.URL `json:"delegate,omitempty" form:"delegate" query:"delegate"` // 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) Initiator ¶ added in v0.6.0
func (s *LegacyED25519Signature) Initiator() (hash.Hasher, error)
Initiator returns a Hasher that 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) Metadata ¶ added in v0.6.0
func (s *LegacyED25519Signature) Metadata() Signature
Metadata returns the signature's metadata.
func (*LegacyED25519Signature) RoutingLocation ¶ added in v0.6.0
func (s *LegacyED25519Signature) RoutingLocation() *url.URL
RoutingLocation returns Signer.
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *LegacyED25519Signature) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*LegacyED25519Signature) UnmarshalJSON ¶
func (v *LegacyED25519Signature) UnmarshalJSON(data []byte) error
func (*LegacyED25519Signature) Verify ¶
func (e *LegacyED25519Signature) Verify(sigMdHash, 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"` // 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) StripUrl ¶ added in v1.0.0
func (a *LiteDataAccount) StripUrl()
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *LiteDataAccount) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*LiteDataAccount) UnmarshalJSON ¶
func (v *LiteDataAccount) UnmarshalJSON(data []byte) error
type LiteIdentity ¶
type LiteIdentity struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` CreditBalance uint64 `json:"creditBalance,omitempty" form:"creditBalance" query:"creditBalance" validate:"required"` LastUsedOn uint64 `json:"lastUsedOn,omitempty" form:"lastUsedOn" query:"lastUsedOn" validate:"required"` // contains filtered or unexported fields }
func (*LiteIdentity) CanDebitCredits ¶ added in v0.6.0
func (li *LiteIdentity) CanDebitCredits(amount uint64) bool
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) CreditCredits ¶ added in v0.6.0
func (li *LiteIdentity) CreditCredits(amount uint64)
func (*LiteIdentity) DebitCredits ¶ added in v0.6.0
func (li *LiteIdentity) DebitCredits(amount uint64) bool
func (*LiteIdentity) EntryByDelegate ¶ added in v0.6.0
EntryByDelegate returns -1, nil, false.
func (*LiteIdentity) EntryByKey ¶ added in v0.6.0
func (li *LiteIdentity) EntryByKey(key []byte) (int, KeyEntry, bool)
func (*LiteIdentity) EntryByKeyHash ¶ added in v0.6.0
func (li *LiteIdentity) EntryByKeyHash(keyHash []byte) (int, KeyEntry, bool)
func (*LiteIdentity) Equal ¶
func (v *LiteIdentity) Equal(u *LiteIdentity) bool
func (*LiteIdentity) GetAuthority ¶ added in v1.1.0
func (li *LiteIdentity) GetAuthority() *url.URL
func (*LiteIdentity) GetCreditBalance ¶ added in v0.6.0
func (li *LiteIdentity) GetCreditBalance() uint64
func (*LiteIdentity) GetLastUsedOn ¶ added in v0.6.0
func (li *LiteIdentity) GetLastUsedOn() uint64
GetLastUsedOn returns LastUsedOn.
func (*LiteIdentity) GetSignatureThreshold ¶ added in v0.6.0
func (li *LiteIdentity) GetSignatureThreshold() uint64
func (*LiteIdentity) GetSigners ¶ added in v1.1.0
func (l *LiteIdentity) GetSigners() []*url.URL
GetSigners returns the lite identity's URL.
func (*LiteIdentity) GetUrl ¶ added in v0.6.0
func (a *LiteIdentity) GetUrl() *url.URL
func (*LiteIdentity) GetVersion ¶ added in v0.6.0
func (li *LiteIdentity) GetVersion() uint64
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) SetLastUsedOn ¶ added in v0.6.0
func (li *LiteIdentity) SetLastUsedOn(timestamp uint64)
SetLastUsedOn sets LastUsedOn.
func (*LiteIdentity) StripUrl ¶ added in v1.0.0
func (a *LiteIdentity) StripUrl()
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *LiteIdentity) UnmarshalFieldsFrom(reader *encoding.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"` // LockHeight is the major block height after which the balance can be transferred out of this account. LockHeight uint64 `json:"lockHeight,omitempty" form:"lockHeight" query:"lockHeight" validate:"required"` // contains filtered or unexported fields }
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) CreditTokens ¶
func (acct *LiteTokenAccount) CreditTokens(amount *big.Int) bool
func (*LiteTokenAccount) DebitTokens ¶
func (acct *LiteTokenAccount) DebitTokens(amount *big.Int) bool
func (*LiteTokenAccount) Equal ¶
func (v *LiteTokenAccount) Equal(u *LiteTokenAccount) bool
func (*LiteTokenAccount) GetLockHeight ¶ added in v1.0.0
func (l *LiteTokenAccount) GetLockHeight() uint64
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) 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) SetLockHeight ¶ added in v1.0.0
func (l *LiteTokenAccount) SetLockHeight(v uint64) error
func (*LiteTokenAccount) StripUrl ¶ added in v1.0.0
func (a *LiteTokenAccount) StripUrl()
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *LiteTokenAccount) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*LiteTokenAccount) UnmarshalJSON ¶
func (v *LiteTokenAccount) UnmarshalJSON(data []byte) error
type LockAccount ¶ added in v1.0.0
type LockAccount struct { // Height is the major block height when the account will be released. Height uint64 `json:"height,omitempty" form:"height" query:"height" validate:"required"` // contains filtered or unexported fields }
func (*LockAccount) Copy ¶ added in v1.0.0
func (v *LockAccount) Copy() *LockAccount
func (*LockAccount) CopyAsInterface ¶ added in v1.0.0
func (v *LockAccount) CopyAsInterface() interface{}
func (*LockAccount) Equal ¶ added in v1.0.0
func (v *LockAccount) Equal(u *LockAccount) bool
func (*LockAccount) IsValid ¶ added in v1.0.0
func (v *LockAccount) IsValid() error
func (*LockAccount) MarshalBinary ¶ added in v1.0.0
func (v *LockAccount) MarshalBinary() ([]byte, error)
func (*LockAccount) MarshalJSON ¶ added in v1.0.0
func (v *LockAccount) MarshalJSON() ([]byte, error)
func (*LockAccount) Type ¶ added in v1.0.0
func (*LockAccount) Type() TransactionType
func (*LockAccount) UnmarshalBinary ¶ added in v1.0.0
func (v *LockAccount) UnmarshalBinary(data []byte) error
func (*LockAccount) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *LockAccount) UnmarshalBinaryFrom(rd io.Reader) error
func (*LockAccount) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *LockAccount) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*LockAccount) UnmarshalJSON ¶ added in v1.0.0
func (v *LockAccount) UnmarshalJSON(data []byte) error
type LockableAccount ¶ added in v1.0.0
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 NetworkAccountUpdate ¶ added in v1.0.0
type NetworkAccountUpdate struct { Name string `json:"name,omitempty" form:"name" query:"name" validate:"required"` Body TransactionBody `json:"body,omitempty" form:"body" query:"body" validate:"required"` // contains filtered or unexported fields }
func (*NetworkAccountUpdate) Copy ¶ added in v1.0.0
func (v *NetworkAccountUpdate) Copy() *NetworkAccountUpdate
func (*NetworkAccountUpdate) CopyAsInterface ¶ added in v1.0.0
func (v *NetworkAccountUpdate) CopyAsInterface() interface{}
func (*NetworkAccountUpdate) Equal ¶ added in v1.0.0
func (v *NetworkAccountUpdate) Equal(u *NetworkAccountUpdate) bool
func (*NetworkAccountUpdate) IsValid ¶ added in v1.0.0
func (v *NetworkAccountUpdate) IsValid() error
func (*NetworkAccountUpdate) MarshalBinary ¶ added in v1.0.0
func (v *NetworkAccountUpdate) MarshalBinary() ([]byte, error)
func (*NetworkAccountUpdate) MarshalJSON ¶ added in v1.0.0
func (v *NetworkAccountUpdate) MarshalJSON() ([]byte, error)
func (*NetworkAccountUpdate) UnmarshalBinary ¶ added in v1.0.0
func (v *NetworkAccountUpdate) UnmarshalBinary(data []byte) error
func (*NetworkAccountUpdate) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *NetworkAccountUpdate) UnmarshalBinaryFrom(rd io.Reader) error
func (*NetworkAccountUpdate) UnmarshalJSON ¶ added in v1.0.0
func (v *NetworkAccountUpdate) UnmarshalJSON(data []byte) error
type NetworkDefinition ¶ added in v1.0.0
type NetworkDefinition struct { NetworkName string `json:"networkName,omitempty" form:"networkName" query:"networkName" validate:"required"` Version uint64 `json:"version,omitempty" form:"version" query:"version" validate:"required"` Partitions []*PartitionInfo `json:"partitions,omitempty" form:"partitions" query:"partitions" validate:"required"` Validators []*ValidatorInfo `json:"validators,omitempty" form:"validators" query:"validators" validate:"required"` // contains filtered or unexported fields }
func (*NetworkDefinition) AddPartition ¶ added in v1.0.0
func (n *NetworkDefinition) AddPartition(id string, typ PartitionType) bool
func (*NetworkDefinition) AddValidator ¶ added in v1.0.0
func (n *NetworkDefinition) AddValidator(key []byte, partition string, active bool)
AddValidator adds or updates a validator and its corresponding partition entry.
func (*NetworkDefinition) Copy ¶ added in v1.0.0
func (v *NetworkDefinition) Copy() *NetworkDefinition
func (*NetworkDefinition) CopyAsInterface ¶ added in v1.0.0
func (v *NetworkDefinition) CopyAsInterface() interface{}
func (*NetworkDefinition) Equal ¶ added in v1.0.0
func (v *NetworkDefinition) Equal(u *NetworkDefinition) bool
func (*NetworkDefinition) IsValid ¶ added in v1.0.0
func (v *NetworkDefinition) IsValid() error
func (*NetworkDefinition) MarshalBinary ¶ added in v1.0.0
func (v *NetworkDefinition) MarshalBinary() ([]byte, error)
func (*NetworkDefinition) MarshalJSON ¶ added in v1.0.0
func (v *NetworkDefinition) MarshalJSON() ([]byte, error)
func (*NetworkDefinition) RemoveValidator ¶ added in v1.0.0
func (n *NetworkDefinition) RemoveValidator(key []byte)
RemoveValidator completely removes a validator.
func (*NetworkDefinition) UnmarshalBinary ¶ added in v1.0.0
func (v *NetworkDefinition) UnmarshalBinary(data []byte) error
func (*NetworkDefinition) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *NetworkDefinition) UnmarshalBinaryFrom(rd io.Reader) error
func (*NetworkDefinition) UnmarshalJSON ¶ added in v1.0.0
func (v *NetworkDefinition) UnmarshalJSON(data []byte) error
func (*NetworkDefinition) UpdateValidatorKey ¶ added in v1.0.0
func (n *NetworkDefinition) UpdateValidatorKey(oldKey, newKey []byte) error
UpdateValidatorKey updates a validator's key.
func (*NetworkDefinition) ValidatorByHash ¶ added in v1.0.0
func (n *NetworkDefinition) ValidatorByHash(hash []byte) (int, *ValidatorInfo, bool)
func (*NetworkDefinition) ValidatorByKey ¶ added in v1.0.0
func (n *NetworkDefinition) ValidatorByKey(key []byte) (int, *ValidatorInfo, bool)
type NetworkGlobals ¶ added in v0.6.0
type NetworkGlobals struct { OperatorAcceptThreshold Rational `json:"operatorAcceptThreshold,omitempty" form:"operatorAcceptThreshold" query:"operatorAcceptThreshold" validate:"required"` ValidatorAcceptThreshold Rational `` /* 126-byte string literal not displayed */ // MajorBlockSchedule a cron expression defining the (approximate) major blocks interval. MajorBlockSchedule string `json:"majorBlockSchedule,omitempty" form:"majorBlockSchedule" query:"majorBlockSchedule" validate:"required"` // AnchorEmptyBlocks controls whether an anchor is sent for a block if the block contains no transactions other than a directory anchor. AnchorEmptyBlocks bool `json:"anchorEmptyBlocks,omitempty" form:"anchorEmptyBlocks" query:"anchorEmptyBlocks" validate:"required"` FeeSchedule *FeeSchedule `json:"feeSchedule,omitempty" form:"feeSchedule" query:"feeSchedule" validate:"required"` Limits *NetworkLimits `json:"limits,omitempty" form:"limits" query:"limits" validate:"required"` // contains filtered or unexported fields }
func (*NetworkGlobals) Copy ¶ added in v0.6.0
func (v *NetworkGlobals) Copy() *NetworkGlobals
func (*NetworkGlobals) CopyAsInterface ¶ added in v0.6.0
func (v *NetworkGlobals) CopyAsInterface() interface{}
func (*NetworkGlobals) Equal ¶ added in v0.6.0
func (v *NetworkGlobals) Equal(u *NetworkGlobals) bool
func (*NetworkGlobals) IsValid ¶ added in v0.6.0
func (v *NetworkGlobals) IsValid() error
func (*NetworkGlobals) MarshalBinary ¶ added in v0.6.0
func (v *NetworkGlobals) MarshalBinary() ([]byte, error)
func (*NetworkGlobals) UnmarshalBinary ¶ added in v0.6.0
func (v *NetworkGlobals) UnmarshalBinary(data []byte) error
func (*NetworkGlobals) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *NetworkGlobals) UnmarshalBinaryFrom(rd io.Reader) error
type NetworkLimits ¶ added in v1.0.0
type NetworkLimits struct { // DataEntryParts is the maximum number of parts a data entry can have. DataEntryParts uint64 `json:"dataEntryParts,omitempty" form:"dataEntryParts" query:"dataEntryParts" validate:"required"` // AccountAuthorities is the maximum number of authorities an account can have. AccountAuthorities uint64 `json:"accountAuthorities,omitempty" form:"accountAuthorities" query:"accountAuthorities" validate:"required"` // BookPages is the maximum number of pages a book can have. BookPages uint64 `json:"bookPages,omitempty" form:"bookPages" query:"bookPages" validate:"required"` // PageEntries is the maximum number of entries a page can have. PageEntries uint64 `json:"pageEntries,omitempty" form:"pageEntries" query:"pageEntries" validate:"required"` // IdentityAccounts is the maximum number of accounts an identity can have (excluding accounts of sub ADIs). IdentityAccounts uint64 `json:"identityAccounts,omitempty" form:"identityAccounts" query:"identityAccounts" validate:"required"` // PendingMajorBlocks is the maximum number of major blocks a transaction can remain pending for. PendingMajorBlocks uint64 `json:"pendingMajorBlocks,omitempty" form:"pendingMajorBlocks" query:"pendingMajorBlocks" validate:"required"` // EventsPerBlock is the maximum number of scheduled events that will be executed per block. EventsPerBlock uint64 `json:"eventsPerBlock,omitempty" form:"eventsPerBlock" query:"eventsPerBlock" validate:"required"` // contains filtered or unexported fields }
func (*NetworkLimits) Copy ¶ added in v1.0.0
func (v *NetworkLimits) Copy() *NetworkLimits
func (*NetworkLimits) CopyAsInterface ¶ added in v1.0.0
func (v *NetworkLimits) CopyAsInterface() interface{}
func (*NetworkLimits) Equal ¶ added in v1.0.0
func (v *NetworkLimits) Equal(u *NetworkLimits) bool
func (*NetworkLimits) IsValid ¶ added in v1.0.0
func (v *NetworkLimits) IsValid() error
func (*NetworkLimits) MarshalBinary ¶ added in v1.0.0
func (v *NetworkLimits) MarshalBinary() ([]byte, error)
func (*NetworkLimits) UnmarshalBinary ¶ added in v1.0.0
func (v *NetworkLimits) UnmarshalBinary(data []byte) error
func (*NetworkLimits) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *NetworkLimits) UnmarshalBinaryFrom(rd io.Reader) 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 account's chains. Chains []ChainMetadata `json:"chains,omitempty" form:"chains" query:"chains" validate:"required"` // Pending lists the account's pending transactions. Pending TxIdSet `json:"pending,omitempty" form:"pending" query:"pending" 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 PartitionAnchor ¶ added in v1.0.0
type PartitionAnchor struct { // Source is the principal of the transaction that produced this transaction. Source *url.URL `json:"source,omitempty" form:"source" query:"source" validate:"required"` // MajorBlockIndex is the major block index, or zero. MajorBlockIndex uint64 `json:"majorBlockIndex,omitempty" form:"majorBlockIndex" query:"majorBlockIndex" validate:"required"` // MinorBlockIndex is the minor block index. MinorBlockIndex uint64 `json:"minorBlockIndex,omitempty" form:"minorBlockIndex" query:"minorBlockIndex" validate:"required"` // RootChainIndex is the index of the last root chain entry. RootChainIndex uint64 `json:"rootChainIndex,omitempty" form:"rootChainIndex" query:"rootChainIndex" validate:"required"` // RootChainAnchor is the anchor of the root chain. RootChainAnchor [32]byte `json:"rootChainAnchor,omitempty" form:"rootChainAnchor" query:"rootChainAnchor" validate:"required"` // StateTreeAnchor is the root of the source's state tree (BPT). StateTreeAnchor [32]byte `json:"stateTreeAnchor,omitempty" form:"stateTreeAnchor" query:"stateTreeAnchor" validate:"required"` // contains filtered or unexported fields }
func (*PartitionAnchor) Copy ¶ added in v1.0.0
func (v *PartitionAnchor) Copy() *PartitionAnchor
func (*PartitionAnchor) CopyAsInterface ¶ added in v1.0.0
func (v *PartitionAnchor) CopyAsInterface() interface{}
func (*PartitionAnchor) Equal ¶ added in v1.0.0
func (v *PartitionAnchor) Equal(u *PartitionAnchor) bool
func (*PartitionAnchor) IsValid ¶ added in v1.0.0
func (v *PartitionAnchor) IsValid() error
func (*PartitionAnchor) MarshalBinary ¶ added in v1.0.0
func (v *PartitionAnchor) MarshalBinary() ([]byte, error)
func (*PartitionAnchor) MarshalJSON ¶ added in v1.0.0
func (v *PartitionAnchor) MarshalJSON() ([]byte, error)
func (*PartitionAnchor) UnmarshalBinary ¶ added in v1.0.0
func (v *PartitionAnchor) UnmarshalBinary(data []byte) error
func (*PartitionAnchor) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *PartitionAnchor) UnmarshalBinaryFrom(rd io.Reader) error
func (*PartitionAnchor) UnmarshalJSON ¶ added in v1.0.0
func (v *PartitionAnchor) UnmarshalJSON(data []byte) error
type PartitionAnchorReceipt ¶ added in v1.0.0
type PartitionAnchorReceipt struct { Anchor *PartitionAnchor `json:"anchor,omitempty" form:"anchor" query:"anchor" validate:"required"` // RootChainReceipt is a receipt for the anchored root chain entry. RootChainReceipt *merkle.Receipt `json:"rootChainReceipt,omitempty" form:"rootChainReceipt" query:"rootChainReceipt" validate:"required"` // contains filtered or unexported fields }
func (*PartitionAnchorReceipt) Copy ¶ added in v1.0.0
func (v *PartitionAnchorReceipt) Copy() *PartitionAnchorReceipt
func (*PartitionAnchorReceipt) CopyAsInterface ¶ added in v1.0.0
func (v *PartitionAnchorReceipt) CopyAsInterface() interface{}
func (*PartitionAnchorReceipt) Equal ¶ added in v1.0.0
func (v *PartitionAnchorReceipt) Equal(u *PartitionAnchorReceipt) bool
func (*PartitionAnchorReceipt) IsValid ¶ added in v1.0.0
func (v *PartitionAnchorReceipt) IsValid() error
func (*PartitionAnchorReceipt) MarshalBinary ¶ added in v1.0.0
func (v *PartitionAnchorReceipt) MarshalBinary() ([]byte, error)
func (*PartitionAnchorReceipt) UnmarshalBinary ¶ added in v1.0.0
func (v *PartitionAnchorReceipt) UnmarshalBinary(data []byte) error
func (*PartitionAnchorReceipt) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *PartitionAnchorReceipt) UnmarshalBinaryFrom(rd io.Reader) error
type PartitionInfo ¶ added in v1.0.0
type PartitionInfo struct { ID string `json:"id,omitempty" form:"id" query:"id" validate:"required"` Type PartitionType `json:"type,omitempty" form:"type" query:"type" validate:"required"` // contains filtered or unexported fields }
func (*PartitionInfo) Copy ¶ added in v1.0.0
func (v *PartitionInfo) Copy() *PartitionInfo
func (*PartitionInfo) CopyAsInterface ¶ added in v1.0.0
func (v *PartitionInfo) CopyAsInterface() interface{}
func (*PartitionInfo) Equal ¶ added in v1.0.0
func (v *PartitionInfo) Equal(u *PartitionInfo) bool
func (*PartitionInfo) IsValid ¶ added in v1.0.0
func (v *PartitionInfo) IsValid() error
func (*PartitionInfo) MarshalBinary ¶ added in v1.0.0
func (v *PartitionInfo) MarshalBinary() ([]byte, error)
func (*PartitionInfo) UnmarshalBinary ¶ added in v1.0.0
func (v *PartitionInfo) UnmarshalBinary(data []byte) error
func (*PartitionInfo) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *PartitionInfo) UnmarshalBinaryFrom(rd io.Reader) error
type PartitionSignature ¶ added in v1.0.0
type PartitionSignature 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 }
PartitionSignature is used to initiate transactions between BVNs.
func (*PartitionSignature) Copy ¶ added in v1.0.0
func (v *PartitionSignature) Copy() *PartitionSignature
func (*PartitionSignature) CopyAsInterface ¶ added in v1.0.0
func (v *PartitionSignature) CopyAsInterface() interface{}
func (*PartitionSignature) Equal ¶ added in v1.0.0
func (v *PartitionSignature) Equal(u *PartitionSignature) bool
func (*PartitionSignature) GetPublicKeyHash ¶ added in v1.0.0
func (s *PartitionSignature) GetPublicKeyHash() []byte
GetPublicKey returns nil.
func (*PartitionSignature) GetSignature ¶ added in v1.0.0
func (s *PartitionSignature) GetSignature() []byte
GetSignature returns nil.
func (*PartitionSignature) GetSigner ¶ added in v1.0.0
func (s *PartitionSignature) GetSigner() *url.URL
GetSigner panics.
func (*PartitionSignature) GetSignerVersion ¶ added in v1.0.0
func (s *PartitionSignature) GetSignerVersion() uint64
GetSignerVersion returns 1.
func (*PartitionSignature) GetTimestamp ¶ added in v1.0.0
func (s *PartitionSignature) GetTimestamp() uint64
GetTimestamp returns 1.
func (*PartitionSignature) GetTransactionHash ¶ added in v1.0.0
func (s *PartitionSignature) GetTransactionHash() [32]byte
GetTransactionHash returns TransactionHash.
func (*PartitionSignature) GetVote ¶ added in v1.0.0
func (s *PartitionSignature) GetVote() VoteType
GetVote returns VoteTypeAccept.
func (*PartitionSignature) Hash ¶ added in v1.0.0
func (s *PartitionSignature) Hash() []byte
Hash returns the hash of the signature.
func (*PartitionSignature) IsValid ¶ added in v1.0.0
func (v *PartitionSignature) IsValid() error
func (*PartitionSignature) MarshalBinary ¶ added in v1.0.0
func (v *PartitionSignature) MarshalBinary() ([]byte, error)
func (*PartitionSignature) MarshalJSON ¶ added in v1.0.0
func (v *PartitionSignature) MarshalJSON() ([]byte, error)
func (*PartitionSignature) Metadata ¶ added in v1.0.0
func (s *PartitionSignature) Metadata() Signature
Metadata returns the signature's metadata.
func (*PartitionSignature) RoutingLocation ¶ added in v1.0.0
func (s *PartitionSignature) RoutingLocation() *url.URL
RoutingLocation returns the URL of the destination network's identity.
func (*PartitionSignature) Type ¶ added in v1.0.0
func (*PartitionSignature) Type() SignatureType
func (*PartitionSignature) UnmarshalBinary ¶ added in v1.0.0
func (v *PartitionSignature) UnmarshalBinary(data []byte) error
func (*PartitionSignature) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *PartitionSignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*PartitionSignature) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *PartitionSignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*PartitionSignature) UnmarshalJSON ¶ added in v1.0.0
func (v *PartitionSignature) UnmarshalJSON(data []byte) error
type PartitionSyntheticLedger ¶ added in v1.0.0
type PartitionSyntheticLedger struct { // Url is the URL of the partition. Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` // Produced is the maximum sequence number of transactions produced for the partition. Produced uint64 `json:"produced,omitempty" form:"produced" query:"produced" validate:"required"` // Received is the maximum sequence number of transactions received from the partition. Received uint64 `json:"received,omitempty" form:"received" query:"received" validate:"required"` // Delivered is the maximum sequence number of delivered transactions received from the partition. Delivered uint64 `json:"delivered,omitempty" form:"delivered" query:"delivered" validate:"required"` // Pending is the transaction hashes of transactions received out of order. Pending []*url.TxID `json:"pending,omitempty" form:"pending" query:"pending" validate:"required"` // contains filtered or unexported fields }
func (*PartitionSyntheticLedger) Add ¶ added in v1.0.0
func (s *PartitionSyntheticLedger) Add(delivered bool, sequenceNumber uint64, txid *url.TxID) (dirty bool)
Add records a received or delivered synthetic transaction.
func (*PartitionSyntheticLedger) Copy ¶ added in v1.0.0
func (v *PartitionSyntheticLedger) Copy() *PartitionSyntheticLedger
func (*PartitionSyntheticLedger) CopyAsInterface ¶ added in v1.0.0
func (v *PartitionSyntheticLedger) CopyAsInterface() interface{}
func (*PartitionSyntheticLedger) Equal ¶ added in v1.0.0
func (v *PartitionSyntheticLedger) Equal(u *PartitionSyntheticLedger) bool
func (*PartitionSyntheticLedger) Get ¶ added in v1.0.0
func (s *PartitionSyntheticLedger) Get(sequenceNumber uint64) (*url.TxID, bool)
Get gets the hash for a synthetic transaction.
func (*PartitionSyntheticLedger) IsValid ¶ added in v1.0.0
func (v *PartitionSyntheticLedger) IsValid() error
func (*PartitionSyntheticLedger) MarshalBinary ¶ added in v1.0.0
func (v *PartitionSyntheticLedger) MarshalBinary() ([]byte, error)
func (*PartitionSyntheticLedger) MarshalJSON ¶ added in v1.0.0
func (v *PartitionSyntheticLedger) MarshalJSON() ([]byte, error)
func (*PartitionSyntheticLedger) UnmarshalBinary ¶ added in v1.0.0
func (v *PartitionSyntheticLedger) UnmarshalBinary(data []byte) error
func (*PartitionSyntheticLedger) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *PartitionSyntheticLedger) UnmarshalBinaryFrom(rd io.Reader) error
func (*PartitionSyntheticLedger) UnmarshalJSON ¶ added in v1.0.0
func (v *PartitionSyntheticLedger) UnmarshalJSON(data []byte) error
type PartitionType ¶ added in v1.0.0
type PartitionType int
const PartitionTypeBlockSummary PartitionType = 3
PartitionTypeBlockSummary .
const PartitionTypeBlockValidator PartitionType = 2
PartitionTypeBlockValidator .
const PartitionTypeBootstrap PartitionType = 4
PartitionTypeBootstrap .
const PartitionTypeDirectory PartitionType = 1
PartitionTypeDirectory .
func PartitionTypeByName ¶ added in v1.0.0
func PartitionTypeByName(name string) (PartitionType, bool)
PartitionTypeByName returns the named Partition Type.
func (PartitionType) GetEnumValue ¶ added in v1.0.0
func (v PartitionType) GetEnumValue() uint64
GetEnumValue returns the value of the Partition Type
func (PartitionType) MarshalJSON ¶ added in v1.0.0
func (v PartitionType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Partition Type to JSON as a string.
func (PartitionType) MarshalTOML ¶ added in v1.0.0
func (v PartitionType) MarshalTOML() ([]byte, error)
MarshalTOML marshals the partition type to Toml as a string.
func (*PartitionType) SetEnumValue ¶ added in v1.0.0
func (v *PartitionType) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (PartitionType) String ¶ added in v1.0.0
func (v PartitionType) String() string
String returns the name of the Partition Type.
func (*PartitionType) UnmarshalJSON ¶ added in v1.0.0
func (v *PartitionType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Partition 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) Initiator ¶ added in v0.6.0
func (s *RCD1Signature) Initiator() (hash.Hasher, error)
Initiator returns a Hasher that 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) Metadata ¶ added in v0.6.0
func (s *RCD1Signature) Metadata() Signature
Metadata returns the signature's metadata.
func (*RCD1Signature) RoutingLocation ¶ added in v0.6.0
func (s *RCD1Signature) RoutingLocation() *url.URL
RoutingLocation returns Signer.
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *RCD1Signature) UnmarshalFieldsFrom(reader *encoding.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(sigMdHash, txnHash []byte) bool
Verify returns true if this signature is a valid RCD1 signature of the hash.
type Rational ¶ added in v0.6.0
type Rational struct { Numerator uint64 `json:"numerator,omitempty" form:"numerator" query:"numerator" validate:"required"` Denominator uint64 `json:"denominator,omitempty" form:"denominator" query:"denominator" validate:"required"` // contains filtered or unexported fields }
func (*Rational) CopyAsInterface ¶ added in v0.6.0
func (v *Rational) CopyAsInterface() interface{}
func (*Rational) MarshalBinary ¶ added in v0.6.0
func (*Rational) UnmarshalBinary ¶ added in v0.6.0
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"` Proof merkle.Receipt `json:"proof,omitempty" form:"proof" query:"proof" validate:"required"` 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 panics.
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) 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) Metadata ¶ added in v0.6.0
func (s *ReceiptSignature) Metadata() Signature
Metadata returns the signature's metadata.
func (*ReceiptSignature) RoutingLocation ¶ added in v0.6.0
func (s *ReceiptSignature) RoutingLocation() *url.URL
RoutingLocation panics.
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *ReceiptSignature) UnmarshalFieldsFrom(reader *encoding.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 RemoteSignature ¶ added in v1.0.0
type RemoteSignature struct { Destination *url.URL `json:"destination,omitempty" form:"destination" query:"destination" validate:"required"` Signature Signature `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"` Cause [][32]byte `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` // contains filtered or unexported fields }
RemoteSignature is used when forwarding a signature from one partition to another.
func (*RemoteSignature) Copy ¶ added in v1.0.0
func (v *RemoteSignature) Copy() *RemoteSignature
func (*RemoteSignature) CopyAsInterface ¶ added in v1.0.0
func (v *RemoteSignature) CopyAsInterface() interface{}
func (*RemoteSignature) Equal ¶ added in v1.0.0
func (v *RemoteSignature) Equal(u *RemoteSignature) bool
func (*RemoteSignature) GetSigner ¶ added in v1.0.0
func (s *RemoteSignature) GetSigner() *url.URL
func (*RemoteSignature) GetTransactionHash ¶ added in v1.0.0
func (s *RemoteSignature) GetTransactionHash() [32]byte
func (*RemoteSignature) GetVote ¶ added in v1.0.0
func (s *RemoteSignature) GetVote() VoteType
func (*RemoteSignature) Hash ¶ added in v1.0.0
func (s *RemoteSignature) Hash() []byte
Hash returns the hash of the signature.
func (*RemoteSignature) IsValid ¶ added in v1.0.0
func (v *RemoteSignature) IsValid() error
func (*RemoteSignature) MarshalBinary ¶ added in v1.0.0
func (v *RemoteSignature) MarshalBinary() ([]byte, error)
func (*RemoteSignature) MarshalJSON ¶ added in v1.0.0
func (v *RemoteSignature) MarshalJSON() ([]byte, error)
func (*RemoteSignature) Metadata ¶ added in v1.0.0
func (s *RemoteSignature) Metadata() Signature
Metadata panics.
func (*RemoteSignature) RoutingLocation ¶ added in v1.0.0
func (s *RemoteSignature) RoutingLocation() *url.URL
RoutingLocation returns Destination.
func (*RemoteSignature) Type ¶ added in v1.0.0
func (*RemoteSignature) Type() SignatureType
func (*RemoteSignature) UnmarshalBinary ¶ added in v1.0.0
func (v *RemoteSignature) UnmarshalBinary(data []byte) error
func (*RemoteSignature) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *RemoteSignature) UnmarshalBinaryFrom(rd io.Reader) error
func (*RemoteSignature) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *RemoteSignature) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*RemoteSignature) UnmarshalJSON ¶ added in v1.0.0
func (v *RemoteSignature) UnmarshalJSON(data []byte) error
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *RemoteTransaction) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *RemoveAccountAuthorityOperation) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *RemoveKeyOperation) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*RemoveKeyOperation) UnmarshalJSON ¶ added in v0.5.1
func (v *RemoveKeyOperation) UnmarshalJSON(data []byte) error
type Route ¶ added in v1.0.0
type Route struct { // Length is the prefix length. Length uint64 `json:"length,omitempty" form:"length" query:"length" validate:"required"` // Value is the prefix value. Value uint64 `json:"value,omitempty" form:"value" query:"value" validate:"required"` Partition string `json:"partition,omitempty" form:"partition" query:"partition" validate:"required"` // contains filtered or unexported fields }
func (*Route) CopyAsInterface ¶ added in v1.0.0
func (v *Route) CopyAsInterface() interface{}
func (*Route) MarshalBinary ¶ added in v1.0.0
func (*Route) UnmarshalBinary ¶ added in v1.0.0
type RouteOverride ¶ added in v1.0.0
type RouteOverride struct { Account *url.URL `json:"account,omitempty" form:"account" query:"account" validate:"required"` Partition string `json:"partition,omitempty" form:"partition" query:"partition" validate:"required"` // contains filtered or unexported fields }
func (*RouteOverride) Copy ¶ added in v1.0.0
func (v *RouteOverride) Copy() *RouteOverride
func (*RouteOverride) CopyAsInterface ¶ added in v1.0.0
func (v *RouteOverride) CopyAsInterface() interface{}
func (*RouteOverride) Equal ¶ added in v1.0.0
func (v *RouteOverride) Equal(u *RouteOverride) bool
func (*RouteOverride) IsValid ¶ added in v1.0.0
func (v *RouteOverride) IsValid() error
func (*RouteOverride) MarshalBinary ¶ added in v1.0.0
func (v *RouteOverride) MarshalBinary() ([]byte, error)
func (*RouteOverride) UnmarshalBinary ¶ added in v1.0.0
func (v *RouteOverride) UnmarshalBinary(data []byte) error
func (*RouteOverride) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *RouteOverride) UnmarshalBinaryFrom(rd io.Reader) error
type RoutingTable ¶ added in v1.0.0
type RoutingTable struct { Overrides []RouteOverride `json:"overrides,omitempty" form:"overrides" query:"overrides" validate:"required"` Routes []Route `json:"routes,omitempty" form:"routes" query:"routes" validate:"required"` // contains filtered or unexported fields }
func (*RoutingTable) AddOverride ¶ added in v1.0.0
func (r *RoutingTable) AddOverride(account *url.URL, partition string)
func (*RoutingTable) Copy ¶ added in v1.0.0
func (v *RoutingTable) Copy() *RoutingTable
func (*RoutingTable) CopyAsInterface ¶ added in v1.0.0
func (v *RoutingTable) CopyAsInterface() interface{}
func (*RoutingTable) Equal ¶ added in v1.0.0
func (v *RoutingTable) Equal(u *RoutingTable) bool
func (*RoutingTable) IsValid ¶ added in v1.0.0
func (v *RoutingTable) IsValid() error
func (*RoutingTable) MarshalBinary ¶ added in v1.0.0
func (v *RoutingTable) MarshalBinary() ([]byte, error)
func (*RoutingTable) MarshalJSON ¶ added in v1.0.0
func (v *RoutingTable) MarshalJSON() ([]byte, error)
func (*RoutingTable) UnmarshalBinary ¶ added in v1.0.0
func (v *RoutingTable) UnmarshalBinary(data []byte) error
func (*RoutingTable) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *RoutingTable) UnmarshalBinaryFrom(rd io.Reader) error
func (*RoutingTable) UnmarshalJSON ¶ added in v1.0.0
func (v *RoutingTable) 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SendTokens) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SendTokens) UnmarshalJSON ¶
func (v *SendTokens) UnmarshalJSON(data []byte) error
type SequenceLedger ¶ added in v1.1.0
type SequenceLedger interface { Account Partition(url *url.URL) *PartitionSyntheticLedger }
type SetRejectThresholdKeyPageOperation ¶ added in v1.2.0
type SetRejectThresholdKeyPageOperation struct { Threshold uint64 `json:"threshold,omitempty" form:"threshold" query:"threshold" validate:"required"` // contains filtered or unexported fields }
func (*SetRejectThresholdKeyPageOperation) Copy ¶ added in v1.2.0
func (v *SetRejectThresholdKeyPageOperation) Copy() *SetRejectThresholdKeyPageOperation
func (*SetRejectThresholdKeyPageOperation) CopyAsInterface ¶ added in v1.2.0
func (v *SetRejectThresholdKeyPageOperation) CopyAsInterface() interface{}
func (*SetRejectThresholdKeyPageOperation) Equal ¶ added in v1.2.0
func (v *SetRejectThresholdKeyPageOperation) Equal(u *SetRejectThresholdKeyPageOperation) bool
func (*SetRejectThresholdKeyPageOperation) IsValid ¶ added in v1.2.0
func (v *SetRejectThresholdKeyPageOperation) IsValid() error
func (*SetRejectThresholdKeyPageOperation) MarshalBinary ¶ added in v1.2.0
func (v *SetRejectThresholdKeyPageOperation) MarshalBinary() ([]byte, error)
func (*SetRejectThresholdKeyPageOperation) MarshalJSON ¶ added in v1.2.0
func (v *SetRejectThresholdKeyPageOperation) MarshalJSON() ([]byte, error)
func (*SetRejectThresholdKeyPageOperation) Type ¶ added in v1.2.0
func (*SetRejectThresholdKeyPageOperation) Type() KeyPageOperationType
func (*SetRejectThresholdKeyPageOperation) UnmarshalBinary ¶ added in v1.2.0
func (v *SetRejectThresholdKeyPageOperation) UnmarshalBinary(data []byte) error
func (*SetRejectThresholdKeyPageOperation) UnmarshalBinaryFrom ¶ added in v1.2.0
func (v *SetRejectThresholdKeyPageOperation) UnmarshalBinaryFrom(rd io.Reader) error
func (*SetRejectThresholdKeyPageOperation) UnmarshalFieldsFrom ¶ added in v1.2.0
func (v *SetRejectThresholdKeyPageOperation) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SetRejectThresholdKeyPageOperation) UnmarshalJSON ¶ added in v1.2.0
func (v *SetRejectThresholdKeyPageOperation) UnmarshalJSON(data []byte) error
type SetResponseThresholdKeyPageOperation ¶ added in v1.2.0
type SetResponseThresholdKeyPageOperation struct { Threshold uint64 `json:"threshold,omitempty" form:"threshold" query:"threshold" validate:"required"` // contains filtered or unexported fields }
func (*SetResponseThresholdKeyPageOperation) Copy ¶ added in v1.2.0
func (v *SetResponseThresholdKeyPageOperation) Copy() *SetResponseThresholdKeyPageOperation
func (*SetResponseThresholdKeyPageOperation) CopyAsInterface ¶ added in v1.2.0
func (v *SetResponseThresholdKeyPageOperation) CopyAsInterface() interface{}
func (*SetResponseThresholdKeyPageOperation) Equal ¶ added in v1.2.0
func (v *SetResponseThresholdKeyPageOperation) Equal(u *SetResponseThresholdKeyPageOperation) bool
func (*SetResponseThresholdKeyPageOperation) IsValid ¶ added in v1.2.0
func (v *SetResponseThresholdKeyPageOperation) IsValid() error
func (*SetResponseThresholdKeyPageOperation) MarshalBinary ¶ added in v1.2.0
func (v *SetResponseThresholdKeyPageOperation) MarshalBinary() ([]byte, error)
func (*SetResponseThresholdKeyPageOperation) MarshalJSON ¶ added in v1.2.0
func (v *SetResponseThresholdKeyPageOperation) MarshalJSON() ([]byte, error)
func (*SetResponseThresholdKeyPageOperation) Type ¶ added in v1.2.0
func (*SetResponseThresholdKeyPageOperation) Type() KeyPageOperationType
func (*SetResponseThresholdKeyPageOperation) UnmarshalBinary ¶ added in v1.2.0
func (v *SetResponseThresholdKeyPageOperation) UnmarshalBinary(data []byte) error
func (*SetResponseThresholdKeyPageOperation) UnmarshalBinaryFrom ¶ added in v1.2.0
func (v *SetResponseThresholdKeyPageOperation) UnmarshalBinaryFrom(rd io.Reader) error
func (*SetResponseThresholdKeyPageOperation) UnmarshalFieldsFrom ¶ added in v1.2.0
func (v *SetResponseThresholdKeyPageOperation) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SetResponseThresholdKeyPageOperation) UnmarshalJSON ¶ added in v1.2.0
func (v *SetResponseThresholdKeyPageOperation) 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SetThresholdKeyPageOperation) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SetThresholdKeyPageOperation) UnmarshalJSON ¶ added in v0.5.1
func (v *SetThresholdKeyPageOperation) UnmarshalJSON(data []byte) error
type Signature ¶
type Signature interface { encoding.UnionValue Type() SignatureType RoutingLocation() *url.URL GetVote() VoteType GetSigner() *url.URL GetTransactionHash() [32]byte Hash() []byte Metadata() Signature }
func CopySignature ¶ added in v1.1.0
CopySignature copies a Signature.
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 ¶
UnmarshalSignatureFrom unmarshals a Signature.
func UnmarshalSignatureJSON ¶
UnmarshalSignatureJson unmarshals a Signature.
type SignatureSet ¶ added in v1.0.0
type SignatureSet struct { Vote VoteType `json:"vote,omitempty" form:"vote" query:"vote"` Signer *url.URL `json:"signer,omitempty" form:"signer" query:"signer" validate:"required"` TransactionHash [32]byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash"` Signatures []Signature `json:"signatures,omitempty" form:"signatures" query:"signatures" validate:"required"` Authority *url.URL `json:"authority,omitempty" form:"authority" query:"authority" validate:"required"` // contains filtered or unexported fields }
SignatureSet is used when forwarding a set of signatures.
func (*SignatureSet) Copy ¶ added in v1.0.0
func (v *SignatureSet) Copy() *SignatureSet
func (*SignatureSet) CopyAsInterface ¶ added in v1.0.0
func (v *SignatureSet) CopyAsInterface() interface{}
func (*SignatureSet) Equal ¶ added in v1.0.0
func (v *SignatureSet) Equal(u *SignatureSet) bool
func (*SignatureSet) GetSigner ¶ added in v1.0.0
func (s *SignatureSet) GetSigner() *url.URL
GetSigner returns Signer.
func (*SignatureSet) GetTransactionHash ¶ added in v1.0.0
func (s *SignatureSet) GetTransactionHash() [32]byte
GetTransactionHash returns TransactionHash.
func (*SignatureSet) GetVote ¶ added in v1.0.0
func (s *SignatureSet) GetVote() VoteType
GetVote returns Vote.
func (*SignatureSet) Hash ¶ added in v1.0.0
func (s *SignatureSet) Hash() []byte
Hash returns the hash of the signature.
func (*SignatureSet) IsValid ¶ added in v1.0.0
func (v *SignatureSet) IsValid() error
func (*SignatureSet) MarshalBinary ¶ added in v1.0.0
func (v *SignatureSet) MarshalBinary() ([]byte, error)
func (*SignatureSet) MarshalJSON ¶ added in v1.0.0
func (v *SignatureSet) MarshalJSON() ([]byte, error)
func (*SignatureSet) Metadata ¶ added in v1.0.0
func (s *SignatureSet) Metadata() Signature
Metadata panics.
func (*SignatureSet) RoutingLocation ¶ added in v1.0.0
func (s *SignatureSet) RoutingLocation() *url.URL
RoutingLocation returns Signer.
func (*SignatureSet) Type ¶ added in v1.0.0
func (*SignatureSet) Type() SignatureType
func (*SignatureSet) UnmarshalBinary ¶ added in v1.0.0
func (v *SignatureSet) UnmarshalBinary(data []byte) error
func (*SignatureSet) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *SignatureSet) UnmarshalBinaryFrom(rd io.Reader) error
func (*SignatureSet) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SignatureSet) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SignatureSet) UnmarshalJSON ¶ added in v1.0.0
func (v *SignatureSet) UnmarshalJSON(data []byte) error
type SignatureType ¶
type SignatureType uint64
SignatureType is the type of a transaction signature.
const SignatureTypeAuthority SignatureType = 13
SignatureTypeAuthority is a signature produced by an authority.
const SignatureTypeBTC SignatureType = 8
SignatureTypeBTC represents an BTC signature.
const SignatureTypeBTCLegacy SignatureType = 9
SignatureTypeBTCLegacy represents an BTC signature with uncompressed public key.
const SignatureTypeDelegated SignatureType = 11
SignatureTypeDelegated represents a signature for a delegated authority.
const SignatureTypeED25519 SignatureType = 2
SignatureTypeED25519 represents an ED25519 signature.
const SignatureTypeETH SignatureType = 10
SignatureTypeETH represents an ETH signature.
const SignatureTypeInternal SignatureType = 12
SignatureTypeInternal is used for internally produced transactions.
const SignatureTypeLegacyED25519 SignatureType = 1
SignatureTypeLegacyED25519 represents a legacy ED25519 signature.
const SignatureTypePartition SignatureType = 5
SignatureTypePartition is used when sending synthetic and system transactions.
const SignatureTypeRCD1 SignatureType = 3
SignatureTypeRCD1 represents an RCD1 signature.
const SignatureTypeReceipt SignatureType = 4
SignatureTypeReceipt represents a Merkle tree receipt.
const SignatureTypeRemote SignatureType = 7
SignatureTypeRemote is used when forwarding a signature from one partition to another.
const SignatureTypeSet SignatureType = 6
SignatureTypeSet is used when forwarding multiple signatures.
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 (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 Signer2 GetAuthority() *url.URL }
func CopySigner ¶ added in v1.1.0
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 SyntheticBurnTokens ¶
type SyntheticBurnTokens struct { SyntheticOrigin Amount big.Int `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` IsRefund bool `json:"isRefund,omitempty" form:"isRefund" query:"isRefund" 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) 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SyntheticBurnTokens) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SyntheticBurnTokens) UnmarshalJSON ¶
func (v *SyntheticBurnTokens) UnmarshalJSON(data []byte) error
type SyntheticCreateIdentity ¶ added in v0.6.0
type SyntheticCreateIdentity struct { SyntheticOrigin Accounts []Account `json:"accounts,omitempty" form:"accounts" query:"accounts" validate:"required"` // contains filtered or unexported fields }
func (*SyntheticCreateIdentity) Copy ¶ added in v0.6.0
func (v *SyntheticCreateIdentity) Copy() *SyntheticCreateIdentity
func (*SyntheticCreateIdentity) CopyAsInterface ¶ added in v0.6.0
func (v *SyntheticCreateIdentity) CopyAsInterface() interface{}
func (*SyntheticCreateIdentity) Equal ¶ added in v0.6.0
func (v *SyntheticCreateIdentity) Equal(u *SyntheticCreateIdentity) bool
func (*SyntheticCreateIdentity) IsValid ¶ added in v0.6.0
func (v *SyntheticCreateIdentity) IsValid() error
func (*SyntheticCreateIdentity) MarshalBinary ¶ added in v0.6.0
func (v *SyntheticCreateIdentity) MarshalBinary() ([]byte, error)
func (*SyntheticCreateIdentity) MarshalJSON ¶ added in v0.6.0
func (v *SyntheticCreateIdentity) MarshalJSON() ([]byte, error)
func (*SyntheticCreateIdentity) Type ¶ added in v0.6.0
func (*SyntheticCreateIdentity) Type() TransactionType
func (*SyntheticCreateIdentity) UnmarshalBinary ¶ added in v0.6.0
func (v *SyntheticCreateIdentity) UnmarshalBinary(data []byte) error
func (*SyntheticCreateIdentity) UnmarshalBinaryFrom ¶ added in v0.6.0
func (v *SyntheticCreateIdentity) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticCreateIdentity) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SyntheticCreateIdentity) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SyntheticCreateIdentity) UnmarshalJSON ¶ added in v0.6.0
func (v *SyntheticCreateIdentity) UnmarshalJSON(data []byte) error
type SyntheticDepositCredits ¶
type SyntheticDepositCredits struct { SyntheticOrigin Amount uint64 `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"` // AcmeRefundAmount is the amount of ACME that will be refunded if the deposit fails. AcmeRefundAmount *big.Int `json:"acmeRefundAmount,omitempty" form:"acmeRefundAmount" query:"acmeRefundAmount" validate:"required"` IsRefund bool `json:"isRefund,omitempty" form:"isRefund" query:"isRefund" 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) 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SyntheticDepositCredits) UnmarshalFieldsFrom(reader *encoding.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"` IsIssuer bool `json:"isIssuer,omitempty" form:"isIssuer" query:"isIssuer" validate:"required"` IsRefund bool `json:"isRefund,omitempty" form:"isRefund" query:"isRefund" 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) 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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SyntheticDepositTokens) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SyntheticDepositTokens) UnmarshalJSON ¶
func (v *SyntheticDepositTokens) UnmarshalJSON(data []byte) error
type SyntheticForwardTransaction ¶ added in v0.6.0
type SyntheticForwardTransaction struct { Signatures []RemoteSignature `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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SyntheticForwardTransaction) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SyntheticForwardTransaction) UnmarshalJSON ¶ added in v0.6.0
func (v *SyntheticForwardTransaction) UnmarshalJSON(data []byte) error
type SyntheticLedger ¶
type SyntheticLedger struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` // Sequence tracks sent and received synthetic transactions. Sequence []*PartitionSyntheticLedger `json:"sequence,omitempty" form:"sequence" query:"sequence" 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) GetUrl ¶ added in v1.0.0
func (a *SyntheticLedger) GetUrl() *url.URL
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) Partition ¶ added in v1.0.0
func (s *SyntheticLedger) Partition(url *url.URL) *PartitionSyntheticLedger
Partition finds or creates a synthetic ledger entry for the given partition.
func (*SyntheticLedger) StripUrl ¶ added in v1.0.0
func (a *SyntheticLedger) StripUrl()
func (*SyntheticLedger) Type ¶ added in v1.0.0
func (*SyntheticLedger) Type() AccountType
func (*SyntheticLedger) UnmarshalBinary ¶
func (v *SyntheticLedger) UnmarshalBinary(data []byte) error
func (*SyntheticLedger) UnmarshalBinaryFrom ¶
func (v *SyntheticLedger) UnmarshalBinaryFrom(rd io.Reader) error
func (*SyntheticLedger) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SyntheticLedger) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SyntheticLedger) UnmarshalJSON ¶
func (v *SyntheticLedger) UnmarshalJSON(data []byte) error
type SyntheticOrigin ¶ added in v0.5.1
type SyntheticOrigin struct { // Cause is the ID of the transaction that produced this transaction. Cause *url.TxID `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` // Initiator is the initiator of the cause. Initiator *url.URL `json:"initiator,omitempty" form:"initiator" query:"initiator" validate:"required"` // FeeRefund is portion of the cause's fee that will be refunded if this transaction fails. FeeRefund uint64 `json:"feeRefund,omitempty" form:"feeRefund" query:"feeRefund" 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) GetCause ¶ added in v0.6.0
func (so *SyntheticOrigin) GetCause() (cause [32]byte, source *url.URL)
func (*SyntheticOrigin) GetRefund ¶ added in v0.6.0
func (so *SyntheticOrigin) GetRefund() (initiator *url.URL, refund Fee)
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) SetCause ¶ added in v0.6.0
func (so *SyntheticOrigin) SetCause(cause [32]byte, source *url.URL)
func (*SyntheticOrigin) SetRefund ¶ added in v0.6.0
func (so *SyntheticOrigin) SetRefund(initiator *url.URL, refund Fee)
func (*SyntheticOrigin) Source ¶ added in v0.5.1
func (so *SyntheticOrigin) 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
type SyntheticTransaction ¶
type SyntheticTransaction interface { TransactionBody }
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) GetHash ¶ added in v1.0.0
func (w *SyntheticWriteData) GetHash() []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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SyntheticWriteData) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SyntheticWriteData) UnmarshalJSON ¶
func (v *SyntheticWriteData) UnmarshalJSON(data []byte) error
type SystemGenesis ¶ added in v1.0.0
type SystemGenesis struct {
// contains filtered or unexported fields
}
func (*SystemGenesis) Copy ¶ added in v1.0.0
func (v *SystemGenesis) Copy() *SystemGenesis
func (*SystemGenesis) CopyAsInterface ¶ added in v1.0.0
func (v *SystemGenesis) CopyAsInterface() interface{}
func (*SystemGenesis) Equal ¶ added in v1.0.0
func (v *SystemGenesis) Equal(u *SystemGenesis) bool
func (*SystemGenesis) IsValid ¶ added in v1.0.0
func (v *SystemGenesis) IsValid() error
func (*SystemGenesis) MarshalBinary ¶ added in v1.0.0
func (v *SystemGenesis) MarshalBinary() ([]byte, error)
func (*SystemGenesis) MarshalJSON ¶ added in v1.0.0
func (v *SystemGenesis) MarshalJSON() ([]byte, error)
func (*SystemGenesis) Type ¶ added in v1.0.0
func (*SystemGenesis) Type() TransactionType
func (*SystemGenesis) UnmarshalBinary ¶ added in v1.0.0
func (v *SystemGenesis) UnmarshalBinary(data []byte) error
func (*SystemGenesis) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *SystemGenesis) UnmarshalBinaryFrom(rd io.Reader) error
func (*SystemGenesis) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SystemGenesis) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SystemGenesis) UnmarshalJSON ¶ added in v1.0.0
func (v *SystemGenesis) UnmarshalJSON(data []byte) error
type SystemLedger ¶ added in v1.0.0
type SystemLedger struct { Url *url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"` Index uint64 `json:"index,omitempty" form:"index" query:"index" validate:"required"` Timestamp time.Time `json:"timestamp,omitempty" form:"timestamp" query:"timestamp" validate:"required"` AcmeBurnt big.Int `json:"acmeBurnt,omitempty" form:"acmeBurnt" query:"acmeBurnt" validate:"required"` PendingUpdates []NetworkAccountUpdate `json:"pendingUpdates,omitempty" form:"pendingUpdates" query:"pendingUpdates" validate:"required"` // Anchor is the block anchor that should be sent for the last block. Anchor AnchorBody `json:"anchor,omitempty" form:"anchor" query:"anchor" validate:"required"` // ExecutorVersion is the active executor version. ExecutorVersion ExecutorVersion `json:"executorVersion,omitempty" form:"executorVersion" query:"executorVersion"` // contains filtered or unexported fields }
func (*SystemLedger) Copy ¶ added in v1.0.0
func (v *SystemLedger) Copy() *SystemLedger
func (*SystemLedger) CopyAsInterface ¶ added in v1.0.0
func (v *SystemLedger) CopyAsInterface() interface{}
func (*SystemLedger) Equal ¶ added in v1.0.0
func (v *SystemLedger) Equal(u *SystemLedger) bool
func (*SystemLedger) GetUrl ¶ added in v1.0.0
func (a *SystemLedger) GetUrl() *url.URL
func (*SystemLedger) IsValid ¶ added in v1.0.0
func (v *SystemLedger) IsValid() error
func (*SystemLedger) MarshalBinary ¶ added in v1.0.0
func (v *SystemLedger) MarshalBinary() ([]byte, error)
func (*SystemLedger) MarshalJSON ¶ added in v1.0.0
func (v *SystemLedger) MarshalJSON() ([]byte, error)
func (*SystemLedger) StripUrl ¶ added in v1.0.0
func (a *SystemLedger) StripUrl()
func (*SystemLedger) Type ¶ added in v1.0.0
func (*SystemLedger) Type() AccountType
func (*SystemLedger) UnmarshalBinary ¶ added in v1.0.0
func (v *SystemLedger) UnmarshalBinary(data []byte) error
func (*SystemLedger) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *SystemLedger) UnmarshalBinaryFrom(rd io.Reader) error
func (*SystemLedger) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SystemLedger) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SystemLedger) UnmarshalJSON ¶ added in v1.0.0
func (v *SystemLedger) UnmarshalJSON(data []byte) error
type SystemWriteData ¶ added in v1.0.0
type SystemWriteData struct { Entry DataEntry `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` // WriteToState writes the data entry to the account state. WriteToState bool `json:"writeToState,omitempty" form:"writeToState" query:"writeToState"` // contains filtered or unexported fields }
func (*SystemWriteData) Copy ¶ added in v1.0.0
func (v *SystemWriteData) Copy() *SystemWriteData
func (*SystemWriteData) CopyAsInterface ¶ added in v1.0.0
func (v *SystemWriteData) CopyAsInterface() interface{}
func (*SystemWriteData) Equal ¶ added in v1.0.0
func (v *SystemWriteData) Equal(u *SystemWriteData) bool
func (*SystemWriteData) GetHash ¶ added in v1.0.0
func (w *SystemWriteData) GetHash() []byte
func (*SystemWriteData) IsValid ¶ added in v1.0.0
func (v *SystemWriteData) IsValid() error
func (*SystemWriteData) MarshalBinary ¶ added in v1.0.0
func (v *SystemWriteData) MarshalBinary() ([]byte, error)
func (*SystemWriteData) MarshalJSON ¶ added in v1.0.0
func (v *SystemWriteData) MarshalJSON() ([]byte, error)
func (*SystemWriteData) Type ¶ added in v1.0.0
func (*SystemWriteData) Type() TransactionType
func (*SystemWriteData) UnmarshalBinary ¶ added in v1.0.0
func (v *SystemWriteData) UnmarshalBinary(data []byte) error
func (*SystemWriteData) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *SystemWriteData) UnmarshalBinaryFrom(rd io.Reader) error
func (*SystemWriteData) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *SystemWriteData) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SystemWriteData) UnmarshalJSON ¶ added in v1.0.0
func (v *SystemWriteData) 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"` // 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) StripUrl ¶ added in v1.0.0
func (a *TokenAccount) StripUrl()
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *TokenAccount) UnmarshalFieldsFrom(reader *encoding.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) StripUrl ¶ added in v1.0.0
func (a *TokenIssuer) StripUrl()
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *TokenIssuer) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*TokenIssuer) UnmarshalJSON ¶
func (v *TokenIssuer) UnmarshalJSON(data []byte) error
type TokenIssuerProof ¶ added in v1.0.0
type TokenIssuerProof struct { Transaction *CreateToken `json:"transaction,omitempty" form:"transaction" query:"transaction" validate:"required"` Receipt *merkle.Receipt `json:"receipt,omitempty" form:"receipt" query:"receipt" validate:"required"` // contains filtered or unexported fields }
func (*TokenIssuerProof) Copy ¶ added in v1.0.0
func (v *TokenIssuerProof) Copy() *TokenIssuerProof
func (*TokenIssuerProof) CopyAsInterface ¶ added in v1.0.0
func (v *TokenIssuerProof) CopyAsInterface() interface{}
func (*TokenIssuerProof) Equal ¶ added in v1.0.0
func (v *TokenIssuerProof) Equal(u *TokenIssuerProof) bool
func (*TokenIssuerProof) IsValid ¶ added in v1.0.0
func (v *TokenIssuerProof) IsValid() error
func (*TokenIssuerProof) MarshalBinary ¶ added in v1.0.0
func (v *TokenIssuerProof) MarshalBinary() ([]byte, error)
func (*TokenIssuerProof) UnmarshalBinary ¶ added in v1.0.0
func (v *TokenIssuerProof) UnmarshalBinary(data []byte) error
func (*TokenIssuerProof) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *TokenIssuerProof) UnmarshalBinaryFrom(rd io.Reader) 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) BodyIs64Bytes ¶ added in v1.1.0
func (t *Transaction) BodyIs64Bytes() bool
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) GetAdditionalAuthorities ¶ added in v1.1.0
func (t *Transaction) GetAdditionalAuthorities() []*url.URL
GetAdditionalAuthorities returns a list of additional authorities that must sign the transaction, beyond the authorities of the principal.
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) ID ¶ added in v1.0.0
func (t *Transaction) ID() *url.TxID
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) 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.UnionValue Type() TransactionType }
func CopyTransactionBody ¶ added in v1.1.0
func CopyTransactionBody(v TransactionBody) TransactionBody
CopyTransactionBody copies a TransactionBody.
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.Reader) (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"` // HoldUntil holds the transaction as pending until the threshold is met. HoldUntil *BlockThreshold `json:"holdUntil,omitempty" form:"holdUntil" query:"holdUntil"` // 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 TransactionMaxSynthetic TransactionMax = 95
TransactionMaxSynthetic is the highest number reserved for synthetic transactions.
const TransactionMaxSystem TransactionMax = 255
TransactionMaxSystem is the highest number reserved for internal 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 { encoding.UnionValue Type() TransactionType }
func CopyTransactionResult ¶ added in v1.1.0
func CopyTransactionResult(v TransactionResult) TransactionResult
func NewTransactionResult ¶
func NewTransactionResult(typ TransactionType) (TransactionResult, error)
func UnmarshalTransactionResult ¶
func UnmarshalTransactionResult(data []byte) (TransactionResult, error)
func UnmarshalTransactionResultFrom ¶
func UnmarshalTransactionResultFrom(rd io.Reader) (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 TransactionStatus ¶
type TransactionStatus struct { TxID *url.TxID `json:"txID,omitempty" form:"txID" query:"txID" validate:"required"` Code errors2.Status `json:"code,omitempty" form:"code" query:"code" 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"` // Received is the block when the transaction was first received. Received uint64 `json:"received,omitempty" form:"received" query:"received" 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"` // 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"` // GotDirectoryReceipt indicates if a receipt has been received from the DN. GotDirectoryReceipt bool `json:"gotDirectoryReceipt,omitempty" form:"gotDirectoryReceipt" query:"gotDirectoryReceipt" validate:"required"` // Proof is the proof of the transaction. Proof *merkle.Receipt `json:"proof,omitempty" form:"proof" query:"proof" validate:"required"` // AnchorSigners is the list of validators that have signed the anchor. AnchorSigners [][]byte `json:"anchorSigners,omitempty" form:"anchorSigners" query:"anchorSigners" validate:"required"` // contains filtered or unexported fields }
func NewErrorStatus ¶ added in v1.1.0
func NewErrorStatus(id *url.TxID, err error) *TransactionStatus
NewErrorStatus returns a new transaction status for the given ID with the given error.
func (*TransactionStatus) AddAnchorSigner ¶ added in v1.0.0
func (s *TransactionStatus) AddAnchorSigner(signature KeySignature)
func (*TransactionStatus) AddSigner ¶ added in v0.5.1
func (s *TransactionStatus) AddSigner(signer Signer2)
AddSigner adds a signer to the object's list of signer using a binary search to ensure ordering.
func (*TransactionStatus) AsError ¶ added in v1.0.4
func (s *TransactionStatus) AsError() error
AsError returns nil or the status wrapped as a TransactionStatusError.
func (*TransactionStatus) CodeNum ¶ added in v1.0.0
func (s *TransactionStatus) CodeNum() uint64
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) Delivered ¶
func (s *TransactionStatus) Delivered() bool
func (*TransactionStatus) Equal ¶
func (v *TransactionStatus) Equal(u *TransactionStatus) bool
func (*TransactionStatus) Failed ¶ added in v1.0.0
func (s *TransactionStatus) Failed() 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) Pending ¶
func (s *TransactionStatus) Pending() bool
func (*TransactionStatus) Remote ¶
func (s *TransactionStatus) Remote() bool
func (*TransactionStatus) Set ¶ added in v1.0.0
func (s *TransactionStatus) Set(err error)
Set sets the status code and the 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 TransactionStatusError ¶ added in v1.0.4
type TransactionStatusError struct {
*TransactionStatus
}
TransactionStatusError wraps a TransactionStatus and implements [error].
func (TransactionStatusError) Error ¶ added in v1.0.4
func (e TransactionStatusError) Error() string
func (TransactionStatusError) Format ¶ added in v1.2.0
func (e TransactionStatusError) Format(f fmt.State, verb rune)
func (TransactionStatusError) Unwrap ¶ added in v1.0.4
func (e TransactionStatusError) Unwrap() 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 TransactionTypeActivateProtocolVersion TransactionType = 47
TransactionTypeActivateProtocolVersion activates a new version of the protocol.
const TransactionTypeAddCredits TransactionType = 14
TransactionTypeAddCredits converts ACME tokens to credits, which produces a synthetic deposit credits transaction.
const TransactionTypeBlockValidatorAnchor TransactionType = 98
TransactionTypeBlockValidatorAnchor system transaction for partition data.
const TransactionTypeBurnCredits TransactionType = 17
TransactionTypeBurnCredits burns credits from a credit account.
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 TransactionTypeCreateLiteTokenAccount TransactionType = 11
TransactionTypeCreateLiteTokenAccount create a lite token account.
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 TransactionTypeDirectoryAnchor TransactionType = 97
TransactionTypeDirectoryAnchor anchors one network to another.
const TransactionTypeIssueTokens TransactionType = 9
TransactionTypeIssueTokens issues tokens to a token account, which produces a synthetic token deposit transaction.
const TransactionTypeLockAccount TransactionType = 16
TransactionTypeLockAccount sets a major block height that prevents tokens from being transferred out of a lite token account until that height has been reached.
const TransactionTypeRemote TransactionType = 48
TransactionTypeRemote is used to sign a remote transaction.
const TransactionTypeSendTokens TransactionType = 3
TransactionTypeSendTokens transfers tokens between token accounts, which produces a synthetic deposit tokens transaction.
const TransactionTypeSyntheticBurnTokens TransactionType = 53
TransactionTypeSyntheticBurnTokens returns tokens to a token issuer's pool of issuable tokens.
const TransactionTypeSyntheticCreateIdentity TransactionType = 49
TransactionTypeSyntheticCreateIdentity creates an identity.
const TransactionTypeSyntheticDepositCredits TransactionType = 52
TransactionTypeSyntheticDepositCredits deposits credits into a credit holder.
const TransactionTypeSyntheticDepositTokens TransactionType = 51
TransactionTypeSyntheticDepositTokens deposits tokens into token accounts.
const TransactionTypeSyntheticForwardTransaction TransactionType = 54
TransactionTypeSyntheticForwardTransaction forwards a transaction from one partition to another.
const TransactionTypeSyntheticWriteData TransactionType = 50
TransactionTypeSyntheticWriteData writes data to a data account.
const TransactionTypeSystemGenesis TransactionType = 96
TransactionTypeSystemGenesis initializes system chains.
const TransactionTypeSystemWriteData TransactionType = 99
TransactionTypeSystemWriteData writes data to a system data account.
const TransactionTypeTransferCredits TransactionType = 18
TransactionTypeTransferCredits transfers credits between credit accounts within the same domain.
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 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 (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) IsAnchor ¶ added in v1.0.0
func (t TransactionType) IsAnchor() bool
IsAnchor returns true if the transaction type is directory or block validator anchor.
func (TransactionType) IsSynthetic ¶
func (t TransactionType) IsSynthetic() bool
IsSynthetic returns true if the transaction type is synthetic.
func (TransactionType) IsSystem ¶ added in v1.0.0
func (t TransactionType) IsSystem() bool
IsSystem returns true if the transaction type is system.
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 TransferCredits ¶ added in v1.1.0
type TransferCredits struct { To []*CreditRecipient `json:"to,omitempty" form:"to" query:"to" validate:"required"` // contains filtered or unexported fields }
func (*TransferCredits) Copy ¶ added in v1.1.0
func (v *TransferCredits) Copy() *TransferCredits
func (*TransferCredits) CopyAsInterface ¶ added in v1.1.0
func (v *TransferCredits) CopyAsInterface() interface{}
func (*TransferCredits) Equal ¶ added in v1.1.0
func (v *TransferCredits) Equal(u *TransferCredits) bool
func (*TransferCredits) IsValid ¶ added in v1.1.0
func (v *TransferCredits) IsValid() error
func (*TransferCredits) MarshalBinary ¶ added in v1.1.0
func (v *TransferCredits) MarshalBinary() ([]byte, error)
func (*TransferCredits) MarshalJSON ¶ added in v1.1.0
func (v *TransferCredits) MarshalJSON() ([]byte, error)
func (*TransferCredits) Type ¶ added in v1.1.0
func (*TransferCredits) Type() TransactionType
func (*TransferCredits) UnmarshalBinary ¶ added in v1.1.0
func (v *TransferCredits) UnmarshalBinary(data []byte) error
func (*TransferCredits) UnmarshalBinaryFrom ¶ added in v1.1.0
func (v *TransferCredits) UnmarshalBinaryFrom(rd io.Reader) error
func (*TransferCredits) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *TransferCredits) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*TransferCredits) UnmarshalJSON ¶ added in v1.1.0
func (v *TransferCredits) UnmarshalJSON(data []byte) error
type TxIdSet ¶ added in v1.0.0
type TxIdSet struct { Entries []*url.TxID `json:"entries,omitempty" form:"entries" query:"entries" validate:"required"` // contains filtered or unexported fields }
func (*TxIdSet) ContainsHash ¶ added in v1.0.0
func (*TxIdSet) CopyAsInterface ¶ added in v1.0.0
func (v *TxIdSet) CopyAsInterface() interface{}
func (*TxIdSet) MarshalBinary ¶ added in v1.0.0
func (*TxIdSet) MarshalJSON ¶ added in v1.0.0
func (*TxIdSet) UnmarshalBinary ¶ added in v1.0.0
func (*TxIdSet) UnmarshalBinaryFrom ¶ added in v1.0.0
func (*TxIdSet) UnmarshalJSON ¶ added in v1.0.0
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) StripUrl ¶ added in v1.0.0
func (a *UnknownAccount) StripUrl()
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *UnknownAccount) UnmarshalFieldsFrom(reader *encoding.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) EntryByDelegate ¶ added in v0.6.0
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) GetAuthority ¶ added in v1.1.0
func (s *UnknownSigner) GetAuthority() *url.URL
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) StripUrl ¶ added in v1.0.0
func (s *UnknownSigner) StripUrl()
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *UnknownSigner) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *UpdateAccountAuth) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *UpdateAllowedKeyPageOperation) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom ¶ added in v1.1.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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *UpdateKeyOperation) UnmarshalFieldsFrom(reader *encoding.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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *UpdateKeyPage) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*UpdateKeyPage) UnmarshalJSON ¶
func (v *UpdateKeyPage) UnmarshalJSON(data []byte) error
type UserSignature ¶ added in v1.1.0
type UserSignature interface { Signature Initiator() (hash.Hasher, error) Verify(sigMdHash, hash []byte) bool }
UserSignature is a type of signature that can initiate transactions with a special initiator hash. This type of initiator hash has been deprecated.
type ValidatorInfo ¶ added in v1.0.0
type ValidatorInfo struct { PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` PublicKeyHash [32]byte `json:"publicKeyHash,omitempty" form:"publicKeyHash" query:"publicKeyHash" validate:"required"` Operator *url.URL `json:"operator,omitempty" form:"operator" query:"operator" validate:"required"` Partitions []*ValidatorPartitionInfo `json:"partitions,omitempty" form:"partitions" query:"partitions" validate:"required"` // contains filtered or unexported fields }
func (*ValidatorInfo) Copy ¶ added in v1.0.0
func (v *ValidatorInfo) Copy() *ValidatorInfo
func (*ValidatorInfo) CopyAsInterface ¶ added in v1.0.0
func (v *ValidatorInfo) CopyAsInterface() interface{}
func (*ValidatorInfo) Equal ¶ added in v1.0.0
func (v *ValidatorInfo) Equal(u *ValidatorInfo) bool
func (*ValidatorInfo) IsActiveOn ¶ added in v1.0.0
func (v *ValidatorInfo) IsActiveOn(partition string) bool
IsActiveOn returns true if the validator is active on the partition.
func (*ValidatorInfo) IsValid ¶ added in v1.0.0
func (v *ValidatorInfo) IsValid() error
func (*ValidatorInfo) MarshalBinary ¶ added in v1.0.0
func (v *ValidatorInfo) MarshalBinary() ([]byte, error)
func (*ValidatorInfo) MarshalJSON ¶ added in v1.0.0
func (v *ValidatorInfo) MarshalJSON() ([]byte, error)
func (*ValidatorInfo) UnmarshalBinary ¶ added in v1.0.0
func (v *ValidatorInfo) UnmarshalBinary(data []byte) error
func (*ValidatorInfo) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *ValidatorInfo) UnmarshalBinaryFrom(rd io.Reader) error
func (*ValidatorInfo) UnmarshalJSON ¶ added in v1.0.0
func (v *ValidatorInfo) UnmarshalJSON(data []byte) error
type ValidatorPartitionInfo ¶ added in v1.0.0
type ValidatorPartitionInfo struct { ID string `json:"id,omitempty" form:"id" query:"id" validate:"required"` Active bool `json:"active" form:"active" query:"active" validate:"required"` // contains filtered or unexported fields }
func (*ValidatorPartitionInfo) Copy ¶ added in v1.0.0
func (v *ValidatorPartitionInfo) Copy() *ValidatorPartitionInfo
func (*ValidatorPartitionInfo) CopyAsInterface ¶ added in v1.0.0
func (v *ValidatorPartitionInfo) CopyAsInterface() interface{}
func (*ValidatorPartitionInfo) Equal ¶ added in v1.0.0
func (v *ValidatorPartitionInfo) Equal(u *ValidatorPartitionInfo) bool
func (*ValidatorPartitionInfo) IsValid ¶ added in v1.0.0
func (v *ValidatorPartitionInfo) IsValid() error
func (*ValidatorPartitionInfo) MarshalBinary ¶ added in v1.0.0
func (v *ValidatorPartitionInfo) MarshalBinary() ([]byte, error)
func (*ValidatorPartitionInfo) UnmarshalBinary ¶ added in v1.0.0
func (v *ValidatorPartitionInfo) UnmarshalBinary(data []byte) error
func (*ValidatorPartitionInfo) UnmarshalBinaryFrom ¶ added in v1.0.0
func (v *ValidatorPartitionInfo) UnmarshalBinaryFrom(rd io.Reader) 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"` Scratch bool `json:"scratch,omitempty" form:"scratch" query:"scratch"` // WriteToState writes the data entry to the account state. WriteToState bool `json:"writeToState,omitempty" form:"writeToState" query:"writeToState"` // 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) UnmarshalFieldsFrom ¶ added in v1.1.0
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *WriteDataResult) UnmarshalFieldsFrom(reader *encoding.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) GetHash ¶ added in v1.0.0
func (w *WriteDataTo) GetHash() []byte
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) UnmarshalFieldsFrom ¶ added in v1.1.0
func (v *WriteDataTo) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*WriteDataTo) UnmarshalJSON ¶
func (v *WriteDataTo) UnmarshalJSON(data []byte) error
Source Files ¶
- 1_mainnet.go
- access_control.go
- account_auth.go
- accounts.go
- anchor.go
- authority.go
- credits_account.go
- data_entry.go
- enums_gen.go
- factoid.go
- factom_data_entry.go
- faucet.go
- fee_schedule.go
- format.go
- keys.go
- ledger.go
- lite_data_account.go
- lock.go
- network_def.go
- object.go
- protocol.go
- rational.go
- routing.go
- signature.go
- synthetic_origin.go
- system.go
- token_account.go
- transaction.go
- transaction_hash.go
- tx_result.go
- txid_set.go
- types.go
- types_gen.go
- unions.go
- unions_gen.go
- version.go