direct

package
v0.0.0-...-7c30539 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignBytes

func SignBytes(bodyBytes, authInfoBytes []byte, chainID string, accnum, sequence uint64) ([]byte, error)

SignBytes returns the SIGN_MODE_DIRECT sign bytes for the provided TxBody bytes, AuthInfo bytes, chain ID, account number and sequence.

Types

type ModeHandler

type ModeHandler struct{}

ModeHandler defines the SIGN_MODE_DIRECT SignModeHandler

func (ModeHandler) DefaultMode

func (ModeHandler) DefaultMode() signingtypes.SignMode

DefaultMode implements SignModeHandler.DefaultMode

func (ModeHandler) GetSignBytes

func (ModeHandler) GetSignBytes(mode signingtypes.SignMode, data signing.SignerData, tx sdk.Tx) ([]byte, error)

GetSignBytes implements SignModeHandler.GetSignBytes

func (ModeHandler) Modes

func (ModeHandler) Modes() []signingtypes.SignMode

Modes implements SignModeHandler.Modes

type ProtoTx

type ProtoTx interface {
	// GetBodyBytes returns the raw serialized bytes for TxBody
	GetBodyBytes() []byte

	// GetBodyBytes returns the raw serialized bytes for AuthInfo
	GetAuthInfoBytes() []byte
}

ProtoTx defines an interface which protobuf transactions must implement for signature verification via SignModeDirect

Jump to

Keyboard shortcuts

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