Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var SignMode_name = map[int32]string{
0: "SIGN_MODE_UNSPECIFIED",
1: "SIGN_MODE_DIRECT",
2: "SIGN_MODE_TEXTUAL",
127: "SIGN_MODE_LEGACY_AMINO_JSON",
}
var SignMode_value = map[string]int32{
"SIGN_MODE_UNSPECIFIED": 0,
"SIGN_MODE_DIRECT": 1,
"SIGN_MODE_TEXTUAL": 2,
"SIGN_MODE_LEGACY_AMINO_JSON": 127,
}
Functions ¶
This section is empty.
Types ¶
type MultiSignatureData ¶
type MultiSignatureData struct { // BitArray is a compact way of indicating which signers from the multisig key // have signed BitArray *types.CompactBitArray // Signatures is the nested SignatureData's for each signer Signatures []SignatureData }
MultiSignatureData represents the nested SignatureData of a multisig signature
type SignMode ¶
type SignMode int32
SignMode represents a signing mode with its own security guarantees
const ( // SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be rejected SignMode_SIGN_MODE_UNSPECIFIED SignMode = 0 // SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is verified // with raw bytes from Tx SignMode_SIGN_MODE_DIRECT SignMode = 1 // SIGN_MODE_TEXTUAL is a future signing mode that will verify some human-readable // textual representation on top of the binary representation from SIGN_MODE_DIRECT SignMode_SIGN_MODE_TEXTUAL SignMode = 2 // SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses // Amino JSON and will be removed in the future SignMode_SIGN_MODE_LEGACY_AMINO_JSON SignMode = 127 )
func (SignMode) EnumDescriptor ¶
type SignatureData ¶
type SignatureData interface {
// contains filtered or unexported methods
}
SignatureData represents either a *SingleSignatureData or *MultiSignatureData. It is a convenience type that is easier to use in business logic than the encoded protobuf ModeInfo's and raw signatures.
type SignatureV2 ¶
type SignatureV2 struct { // PubKey is the public key to use for verifying the signature PubKey crypto.PubKey // Data is the actual data of the signature which includes SignMode's and // the signatures themselves for either single or multi-signatures. Data SignatureData }
SignatureV2 is a convenience type that is easier to use in application logic than the protobuf SignerInfo's and raw signature bytes. It goes beyond the first sdk.Signature types by supporting sign modes and explicitly nested multi-signatures. It is intended to be used for both building and verifying signatures.
type SingleSignatureData ¶
type SingleSignatureData struct { // SignMode represents the SignMode of the signature SignMode SignMode // SignMode represents the SignMode of the signature Signature []byte }
SingleSignatureData represents the signature and SignMode of a single (non-multisig) signer