sign

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSign        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSign          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSign = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	MsgTypeSignData = ""
)

Functions

func StdSignBytes

func StdSignBytes(cdc *codec.LegacyAmino, chainID string, accnum, sequence, timeout uint64, fee legacytx.StdFee, msgs []sdk.Msg, memo string) []byte

StdSignBytes returns the bytes to sign for a transaction. Deprecated: Please use x/tx/signing/aminojson instead.

Types

type MsgSignData

type MsgSignData struct {
	// Signer is the sdk.AccAddress of the message signer
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer" yaml:"signer"`
	// Data represents the raw bytes of the content that is signed (text, json, etc)
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data"`
}

MsgSignData defines an arbitrary, general-purpose, off-chain message

func (*MsgSignData) Descriptor

func (*MsgSignData) Descriptor() ([]byte, []int)

func (*MsgSignData) GetData

func (m *MsgSignData) GetData() []byte

func (*MsgSignData) GetSignBytes

func (m *MsgSignData) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (*MsgSignData) GetSigner

func (m *MsgSignData) GetSigner() string

func (*MsgSignData) Marshal

func (m *MsgSignData) Marshal() (dAtA []byte, err error)

func (*MsgSignData) MarshalTo

func (m *MsgSignData) MarshalTo(dAtA []byte) (int, error)

func (*MsgSignData) MarshalToSizedBuffer

func (m *MsgSignData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSignData) ProtoMessage

func (*MsgSignData) ProtoMessage()

func (*MsgSignData) Reset

func (m *MsgSignData) Reset()

func (*MsgSignData) Route

func (m *MsgSignData) Route() string

func (*MsgSignData) Size

func (m *MsgSignData) Size() (n int)

func (*MsgSignData) String

func (m *MsgSignData) String() string

func (*MsgSignData) Type

func (m *MsgSignData) Type() string

Type implements the sdk.Msg interface

func (*MsgSignData) Unmarshal

func (m *MsgSignData) Unmarshal(dAtA []byte) error

func (*MsgSignData) XXX_DiscardUnknown

func (m *MsgSignData) XXX_DiscardUnknown()

func (*MsgSignData) XXX_Marshal

func (m *MsgSignData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSignData) XXX_Merge

func (m *MsgSignData) XXX_Merge(src proto.Message)

func (*MsgSignData) XXX_Size

func (m *MsgSignData) XXX_Size() int

func (*MsgSignData) XXX_Unmarshal

func (m *MsgSignData) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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