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 ¶
func (h SignModeHandler) Mode() signingv1beta1.SignMode
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.
Click to show internal directories.
Click to hide internal directories.