Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base64Data ¶
type Base64Data []byte
func NewBase64Data ¶
func NewBase64Data(str string) (*Base64Data, error)
func (Base64Data) Data ¶
func (h Base64Data) Data() []byte
func (Base64Data) Length ¶
func (h Base64Data) Length() int
func (Base64Data) MarshalBCS ¶
func (h Base64Data) MarshalBCS() ([]byte, error)
func (Base64Data) MarshalJSON ¶
func (h Base64Data) MarshalJSON() ([]byte, error)
func (Base64Data) String ¶
func (h Base64Data) String() string
func (*Base64Data) UnmarshalJSON ¶
func (h *Base64Data) UnmarshalJSON(data []byte) error
type Intent ¶
type Intent struct { Scope IntentScope Version IntentVersion AppId AppId }
func DefaultIntent ¶
func DefaultIntent() Intent
type IntentMessage ¶
type IntentMessage struct { Intent Intent Value Base64Data }
func NewIntentMessage ¶
func NewIntentMessage(intent Intent, value Base64Data) IntentMessage
type IntentScope ¶
type IntentScope struct { TransactionData *EmptyEnum // Used for a user signature on a transaction data. TransactionEffects *EmptyEnum // Used for an authority signature on transaction effects. CheckpointSummary *EmptyEnum // Used for an authority signature on a checkpoint summary. PersonalMessage *EmptyEnum // Used for a user signature on a personal message. SenderSignedTransaction *EmptyEnum // Used for an authority signature on a user signed transaction. ProofOfPossession *EmptyEnum // Used as a signature representing an authority's proof of possesion of its authority protocol key. HeaderDigest *EmptyEnum // Used for narwhal authority signature on header digest. }
func (IntentScope) IsBcsEnum ¶
func (i IntentScope) IsBcsEnum()
type IntentValue ¶
type IntentVersion ¶
type IntentVersion struct {
V0 *EmptyEnum
}
func (IntentVersion) IsBcsEnum ¶
func (i IntentVersion) IsBcsEnum()
Click to show internal directories.
Click to hide internal directories.