types

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppId

type AppId struct {
	Sui     *EmptyEnum
	Narwhal *EmptyEnum
}

func (AppId) IsBcsEnum

func (a AppId) IsBcsEnum()

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 EmptyEnum

type EmptyEnum struct {
}

func (EmptyEnum) MarshalBCS

func (e EmptyEnum) MarshalBCS() ([]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 IntentValue interface {
	MarshalBCS() ([]byte, error)
}

type IntentVersion

type IntentVersion struct {
	V0 *EmptyEnum
}

func (IntentVersion) IsBcsEnum

func (i IntentVersion) IsBcsEnum()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL