directaux

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignModeHandler

type SignModeHandler struct {
	// contains filtered or unexported fields
}

SignModeHandler is the SIGN_MODE_DIRECT_AUX implementation of signing.SignModeHandler.

func NewSignModeHandler

func NewSignModeHandler(options SignModeHandlerOptions) (SignModeHandler, error)

NewSignModeHandler returns a new SignModeHandler.

func (SignModeHandler) GetSignBytes

func (h SignModeHandler) GetSignBytes(
	_ context.Context, signerData signing.SignerData, txData signing.TxData,
) ([]byte, error)

GetSignBytes implements signing.SignModeHandler.GetSignBytes.

func (SignModeHandler) Mode

Mode implements signing.SignModeHandler.Mode.

type SignModeHandlerOptions

type SignModeHandlerOptions struct {
	// FileResolver is the protodesc.Resolver to use for resolving proto files when unpacking any messages.
	FileResolver signing.ProtoFileResolver

	// TypeResolver is the protoregistry.MessageTypeResolver to use for resolving proto types when unpacking any messages.
	TypeResolver protoregistry.MessageTypeResolver

	// SignersContext is the signing.GetSignersContext to use for getting signers.
	SignersContext *signing.GetSignersContext
}

SignModeHandlerOptions are the options for the SignModeHandler.

Jump to

Keyboard shortcuts

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