signingv1beta1

package
v0.6.6-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	SignMode_name = map[int32]string{
		0:   "SIGN_MODE_UNSPECIFIED",
		1:   "SIGN_MODE_DIRECT",
		2:   "SIGN_MODE_TEXTUAL",
		3:   "SIGN_MODE_DIRECT_AUX",
		127: "SIGN_MODE_LEGACY_AMINO_JSON",
		191: "SIGN_MODE_EIP_191",
	}
	SignMode_value = map[string]int32{
		"SIGN_MODE_UNSPECIFIED":       0,
		"SIGN_MODE_DIRECT":            1,
		"SIGN_MODE_TEXTUAL":           2,
		"SIGN_MODE_DIRECT_AUX":        3,
		"SIGN_MODE_LEGACY_AMINO_JSON": 127,
		"SIGN_MODE_EIP_191":           191,
	}
)

Enum value maps for SignMode.

View Source
var File_cosmos_tx_signing_v1beta1_signing_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SignMode

type SignMode int32

SignMode represents a signing mode with its own security guarantees.

This enum should be considered a registry of all known sign modes in the Cosmos ecosystem. Apps are not expected to support all known sign modes. Apps that would like to support custom sign modes are encouraged to open a small PR against this file to add a new case to this SignMode enum describing their sign mode so that different apps have a consistent version of this enum.

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. It is currently not supported.
	SignMode_SIGN_MODE_TEXTUAL SignMode = 2
	// SIGN_MODE_DIRECT_AUX specifies a signing mode which uses
	// SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not
	// require signers signing over other signers' `signer_info`. It also allows
	// for adding Tips in transactions.
	//
	// Since: cosmos-sdk 0.46
	SignMode_SIGN_MODE_DIRECT_AUX SignMode = 3
	// 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
	// SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos
	// SDK. Ref: https://eips.ethereum.org/EIPS/eip-191
	//
	// Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant,
	// but is not implemented on the SDK by default. To enable EIP-191, you need
	// to pass a custom `TxConfig` that has an implementation of
	// `SignModeHandler` for EIP-191. The SDK may decide to fully support
	// EIP-191 in the future.
	//
	// Since: cosmos-sdk 0.45.2
	SignMode_SIGN_MODE_EIP_191 SignMode = 191
)

func (SignMode) Descriptor

func (SignMode) Descriptor() protoreflect.EnumDescriptor

func (SignMode) Enum

func (x SignMode) Enum() *SignMode

func (SignMode) EnumDescriptor deprecated

func (SignMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use SignMode.Descriptor instead.

func (SignMode) Number

func (x SignMode) Number() protoreflect.EnumNumber

func (SignMode) String

func (x SignMode) String() string

func (SignMode) Type

type SignatureDescriptor

type SignatureDescriptor struct {

	// public_key is the public key of the signer
	PublicKey *anypb.Any                `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Data      *SignatureDescriptor_Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// sequence is the sequence of the account, which describes the
	// number of committed transactions signed by a given address. It is used to prevent
	// replay attacks.
	Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// contains filtered or unexported fields
}

SignatureDescriptor is a convenience type which represents the full data for a signature including the public key of the signer, signing modes and the signature itself. It is primarily used for coordinating signatures between clients.

func (*SignatureDescriptor) Descriptor deprecated

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

Deprecated: Use SignatureDescriptor.ProtoReflect.Descriptor instead.

func (*SignatureDescriptor) GetData

func (*SignatureDescriptor) GetPublicKey

func (x *SignatureDescriptor) GetPublicKey() *anypb.Any

func (*SignatureDescriptor) GetSequence

func (x *SignatureDescriptor) GetSequence() uint64

func (*SignatureDescriptor) ProtoMessage

func (*SignatureDescriptor) ProtoMessage()

func (*SignatureDescriptor) ProtoReflect

func (x *SignatureDescriptor) ProtoReflect() protoreflect.Message

func (*SignatureDescriptor) Reset

func (x *SignatureDescriptor) Reset()

func (*SignatureDescriptor) String

func (x *SignatureDescriptor) String() string

type SignatureDescriptor_Data

type SignatureDescriptor_Data struct {

	// sum is the oneof that specifies whether this represents single or multi-signature data
	//
	// Types that are assignable to Sum:
	//	*SignatureDescriptor_Data_Single_
	//	*SignatureDescriptor_Data_Multi_
	Sum isSignatureDescriptor_Data_Sum `protobuf_oneof:"sum"`
	// contains filtered or unexported fields
}

Data represents signature data

func (*SignatureDescriptor_Data) Descriptor deprecated

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

Deprecated: Use SignatureDescriptor_Data.ProtoReflect.Descriptor instead.

func (*SignatureDescriptor_Data) GetMulti

func (*SignatureDescriptor_Data) GetSingle

func (*SignatureDescriptor_Data) GetSum

func (x *SignatureDescriptor_Data) GetSum() isSignatureDescriptor_Data_Sum

func (*SignatureDescriptor_Data) ProtoMessage

func (*SignatureDescriptor_Data) ProtoMessage()

func (*SignatureDescriptor_Data) ProtoReflect

func (x *SignatureDescriptor_Data) ProtoReflect() protoreflect.Message

func (*SignatureDescriptor_Data) Reset

func (x *SignatureDescriptor_Data) Reset()

func (*SignatureDescriptor_Data) String

func (x *SignatureDescriptor_Data) String() string

type SignatureDescriptor_Data_Multi

type SignatureDescriptor_Data_Multi struct {

	// bitarray specifies which keys within the multisig are signing
	Bitarray *v1beta1.CompactBitArray `protobuf:"bytes,1,opt,name=bitarray,proto3" json:"bitarray,omitempty"`
	// signatures is the signatures of the multi-signature
	Signatures []*SignatureDescriptor_Data `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

Multi is the signature data for a multisig public key

func (*SignatureDescriptor_Data_Multi) Descriptor deprecated

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

Deprecated: Use SignatureDescriptor_Data_Multi.ProtoReflect.Descriptor instead.

func (*SignatureDescriptor_Data_Multi) GetBitarray

func (*SignatureDescriptor_Data_Multi) GetSignatures

func (*SignatureDescriptor_Data_Multi) ProtoMessage

func (*SignatureDescriptor_Data_Multi) ProtoMessage()

func (*SignatureDescriptor_Data_Multi) ProtoReflect

func (*SignatureDescriptor_Data_Multi) Reset

func (x *SignatureDescriptor_Data_Multi) Reset()

func (*SignatureDescriptor_Data_Multi) String

type SignatureDescriptor_Data_Multi_

type SignatureDescriptor_Data_Multi_ struct {
	// multi represents a multisig signer
	Multi *SignatureDescriptor_Data_Multi `protobuf:"bytes,2,opt,name=multi,proto3,oneof"`
}

type SignatureDescriptor_Data_Single

type SignatureDescriptor_Data_Single struct {

	// mode is the signing mode of the single signer
	Mode SignMode `protobuf:"varint,1,opt,name=mode,proto3,enum=cosmos.tx.signing.v1beta1.SignMode" json:"mode,omitempty"`
	// signature is the raw signature bytes
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Single is the signature data for a single signer

func (*SignatureDescriptor_Data_Single) Descriptor deprecated

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

Deprecated: Use SignatureDescriptor_Data_Single.ProtoReflect.Descriptor instead.

func (*SignatureDescriptor_Data_Single) GetMode

func (*SignatureDescriptor_Data_Single) GetSignature

func (x *SignatureDescriptor_Data_Single) GetSignature() []byte

func (*SignatureDescriptor_Data_Single) ProtoMessage

func (*SignatureDescriptor_Data_Single) ProtoMessage()

func (*SignatureDescriptor_Data_Single) ProtoReflect

func (*SignatureDescriptor_Data_Single) Reset

func (*SignatureDescriptor_Data_Single) String

type SignatureDescriptor_Data_Single_

type SignatureDescriptor_Data_Single_ struct {
	// single represents a single signer
	Single *SignatureDescriptor_Data_Single `protobuf:"bytes,1,opt,name=single,proto3,oneof"`
}

type SignatureDescriptors

type SignatureDescriptors struct {

	// signatures are the signature descriptors
	Signatures []*SignatureDescriptor `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

SignatureDescriptors wraps multiple SignatureDescriptor's.

func (*SignatureDescriptors) Descriptor deprecated

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

Deprecated: Use SignatureDescriptors.ProtoReflect.Descriptor instead.

func (*SignatureDescriptors) GetSignatures

func (x *SignatureDescriptors) GetSignatures() []*SignatureDescriptor

func (*SignatureDescriptors) ProtoMessage

func (*SignatureDescriptors) ProtoMessage()

func (*SignatureDescriptors) ProtoReflect

func (x *SignatureDescriptors) ProtoReflect() protoreflect.Message

func (*SignatureDescriptors) Reset

func (x *SignatureDescriptors) Reset()

func (*SignatureDescriptors) String

func (x *SignatureDescriptors) String() string

Jump to

Keyboard shortcuts

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