blsgroup

package
v0.11.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "blsgroup"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName
)

Variables

View Source
var (
	ErrEmpty                 = sdkerrors.Register(ModuleName, 202, "value is empty")
	ErrDuplicate             = sdkerrors.Register(ModuleName, 203, "duplicate value")
	ErrMaxLimit              = sdkerrors.Register(ModuleName, 204, "limit exceeded")
	ErrType                  = sdkerrors.Register(ModuleName, 205, "invalid type")
	ErrInvalid               = sdkerrors.Register(ModuleName, 206, "invalid value")
	ErrUnauthorized          = sdkerrors.Register(ModuleName, 207, "unauthorized")
	ErrModified              = sdkerrors.Register(ModuleName, 208, "modified")
	ErrExpired               = sdkerrors.Register(ModuleName, 209, "expired")
	ErrBlsRequired           = sdkerrors.Register(ModuleName, 210, "bls required")
	ErrSignatureVerification = sdkerrors.Register(ModuleName, 211, "failed to verify signature")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	GroupPrefixKey = []byte{0x00}
)

KVStore keys

View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func DefaultAggSigVerifyGasConsumer

func DefaultAggSigVerifyGasConsumer(meter sdk.GasMeter, numPk uint64, numMsg uint64, sigVerifyCost uint64) error

DefaultSigVerificationGasConsumer computes and consumes gas cost using the formula: gas := base + pairingCost * (numMsg - 1) + additionCost * (numPk - numMsg)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers all the necessary group module concrete types and interfaces with the provided codec reference. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func VerifyAggregateSignature

func VerifyAggregateSignature(msgs [][]byte, msgCheck bool, sig []byte, pks []cryptotypes.PubKey) error

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(sdk.Context, sdk.AccAddress) authtypes.AccountI
}

type MsgClient

type MsgClient interface {
	// RegisterBlsGroup checks that all group members have a bls key, and they proven possession of the corresponding private key.
	// It then register the groupID as a bls group to enable the other BLS feature (such as VoteAgg).
	RegisterBlsGroup(ctx context.Context, in *MsgRegisterBlsGroup, opts ...grpc.CallOption) (*MsgRegisterBlsGroupResponse, error)
	// UnregisterBlsGroup delete a BLS group registration
	UnregisterBlsGroup(ctx context.Context, in *MsgUnregisterBlsGroup, opts ...grpc.CallOption) (*MsgUnregisterBlsGroupResponse, error)
	// VoteAgg allows a sender to submit a set of votes
	VoteAgg(ctx context.Context, in *MsgVoteAgg, opts ...grpc.CallOption) (*MsgVoteAggResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgRegisterBlsGroup

type MsgRegisterBlsGroup struct {
	// admin is the current account address of the group admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// group_id is the group ID to register as a BLS group.
	GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
}

func (*MsgRegisterBlsGroup) Descriptor

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

func (*MsgRegisterBlsGroup) GetAdmin

func (m *MsgRegisterBlsGroup) GetAdmin() string

func (*MsgRegisterBlsGroup) GetGroupId

func (m *MsgRegisterBlsGroup) GetGroupId() uint64

func (MsgRegisterBlsGroup) GetSigners

func (m MsgRegisterBlsGroup) GetSigners() []sdk.AccAddress

Signers returns the addrs of signers that must sign. CONTRACT: All signatures must be present to be valid. CONTRACT: Returns addrs in some deterministic order.

func (*MsgRegisterBlsGroup) Marshal

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

func (*MsgRegisterBlsGroup) MarshalTo

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

func (*MsgRegisterBlsGroup) MarshalToSizedBuffer

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

func (*MsgRegisterBlsGroup) ProtoMessage

func (*MsgRegisterBlsGroup) ProtoMessage()

func (*MsgRegisterBlsGroup) Reset

func (m *MsgRegisterBlsGroup) Reset()

func (*MsgRegisterBlsGroup) Size

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

func (*MsgRegisterBlsGroup) String

func (m *MsgRegisterBlsGroup) String() string

func (*MsgRegisterBlsGroup) Unmarshal

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

func (MsgRegisterBlsGroup) ValidateBasic

func (m MsgRegisterBlsGroup) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgRegisterBlsGroup) XXX_DiscardUnknown

func (m *MsgRegisterBlsGroup) XXX_DiscardUnknown()

func (*MsgRegisterBlsGroup) XXX_Marshal

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

func (*MsgRegisterBlsGroup) XXX_Merge

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

func (*MsgRegisterBlsGroup) XXX_Size

func (m *MsgRegisterBlsGroup) XXX_Size() int

func (*MsgRegisterBlsGroup) XXX_Unmarshal

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

type MsgRegisterBlsGroupResponse

type MsgRegisterBlsGroupResponse struct {
}

func (*MsgRegisterBlsGroupResponse) Descriptor

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

func (*MsgRegisterBlsGroupResponse) Marshal

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

func (*MsgRegisterBlsGroupResponse) MarshalTo

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

func (*MsgRegisterBlsGroupResponse) MarshalToSizedBuffer

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

func (*MsgRegisterBlsGroupResponse) ProtoMessage

func (*MsgRegisterBlsGroupResponse) ProtoMessage()

func (*MsgRegisterBlsGroupResponse) Reset

func (m *MsgRegisterBlsGroupResponse) Reset()

func (*MsgRegisterBlsGroupResponse) Size

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

func (*MsgRegisterBlsGroupResponse) String

func (m *MsgRegisterBlsGroupResponse) String() string

func (*MsgRegisterBlsGroupResponse) Unmarshal

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

func (*MsgRegisterBlsGroupResponse) XXX_DiscardUnknown

func (m *MsgRegisterBlsGroupResponse) XXX_DiscardUnknown()

func (*MsgRegisterBlsGroupResponse) XXX_Marshal

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

func (*MsgRegisterBlsGroupResponse) XXX_Merge

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

func (*MsgRegisterBlsGroupResponse) XXX_Size

func (m *MsgRegisterBlsGroupResponse) XXX_Size() int

func (*MsgRegisterBlsGroupResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// RegisterBlsGroup checks that all group members have a bls key, and they proven possession of the corresponding private key.
	// It then register the groupID as a bls group to enable the other BLS feature (such as VoteAgg).
	RegisterBlsGroup(context.Context, *MsgRegisterBlsGroup) (*MsgRegisterBlsGroupResponse, error)
	// UnregisterBlsGroup delete a BLS group registration
	UnregisterBlsGroup(context.Context, *MsgUnregisterBlsGroup) (*MsgUnregisterBlsGroupResponse, error)
	// VoteAgg allows a sender to submit a set of votes
	VoteAgg(context.Context, *MsgVoteAgg) (*MsgVoteAggResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUnregisterBlsGroup

type MsgUnregisterBlsGroup struct {
	// admin is the current account address of the group admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// group_id is the group ID to unregister.
	GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
}

func (*MsgUnregisterBlsGroup) Descriptor

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

func (*MsgUnregisterBlsGroup) GetAdmin

func (m *MsgUnregisterBlsGroup) GetAdmin() string

func (*MsgUnregisterBlsGroup) GetGroupId

func (m *MsgUnregisterBlsGroup) GetGroupId() uint64

func (MsgUnregisterBlsGroup) GetSigners

func (m MsgUnregisterBlsGroup) GetSigners() []sdk.AccAddress

Signers returns the addrs of signers that must sign. CONTRACT: All signatures must be present to be valid. CONTRACT: Returns addrs in some deterministic order.

func (*MsgUnregisterBlsGroup) Marshal

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

func (*MsgUnregisterBlsGroup) MarshalTo

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

func (*MsgUnregisterBlsGroup) MarshalToSizedBuffer

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

func (*MsgUnregisterBlsGroup) ProtoMessage

func (*MsgUnregisterBlsGroup) ProtoMessage()

func (*MsgUnregisterBlsGroup) Reset

func (m *MsgUnregisterBlsGroup) Reset()

func (*MsgUnregisterBlsGroup) Size

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

func (*MsgUnregisterBlsGroup) String

func (m *MsgUnregisterBlsGroup) String() string

func (*MsgUnregisterBlsGroup) Unmarshal

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

func (MsgUnregisterBlsGroup) ValidateBasic

func (m MsgUnregisterBlsGroup) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgUnregisterBlsGroup) XXX_DiscardUnknown

func (m *MsgUnregisterBlsGroup) XXX_DiscardUnknown()

func (*MsgUnregisterBlsGroup) XXX_Marshal

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

func (*MsgUnregisterBlsGroup) XXX_Merge

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

func (*MsgUnregisterBlsGroup) XXX_Size

func (m *MsgUnregisterBlsGroup) XXX_Size() int

func (*MsgUnregisterBlsGroup) XXX_Unmarshal

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

type MsgUnregisterBlsGroupResponse

type MsgUnregisterBlsGroupResponse struct {
}

func (*MsgUnregisterBlsGroupResponse) Descriptor

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

func (*MsgUnregisterBlsGroupResponse) Marshal

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

func (*MsgUnregisterBlsGroupResponse) MarshalTo

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

func (*MsgUnregisterBlsGroupResponse) MarshalToSizedBuffer

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

func (*MsgUnregisterBlsGroupResponse) ProtoMessage

func (*MsgUnregisterBlsGroupResponse) ProtoMessage()

func (*MsgUnregisterBlsGroupResponse) Reset

func (m *MsgUnregisterBlsGroupResponse) Reset()

func (*MsgUnregisterBlsGroupResponse) Size

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

func (*MsgUnregisterBlsGroupResponse) String

func (*MsgUnregisterBlsGroupResponse) Unmarshal

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

func (*MsgUnregisterBlsGroupResponse) XXX_DiscardUnknown

func (m *MsgUnregisterBlsGroupResponse) XXX_DiscardUnknown()

func (*MsgUnregisterBlsGroupResponse) XXX_Marshal

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

func (*MsgUnregisterBlsGroupResponse) XXX_Merge

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

func (*MsgUnregisterBlsGroupResponse) XXX_Size

func (m *MsgUnregisterBlsGroupResponse) XXX_Size() int

func (*MsgUnregisterBlsGroupResponse) XXX_Unmarshal

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

type MsgVote

type MsgVote struct {
	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// voter is the voter account address.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// option is the voter's choice on the proposal.
	Option group.VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1.VoteOption" json:"option,omitempty"`
	// timeout_height set a block timeout height to prevent the vote from being used past a certain height.
	// Voters must not issue new votes until their previous vote has expired to prevent
	// swapping them when aggregating.
	TimeoutHeight int64 `protobuf:"varint,4,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"`
}

MsgVote is the Msg/Vote request type.

func (*MsgVote) Descriptor

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

func (*MsgVote) GetOption

func (m *MsgVote) GetOption() group.VoteOption

func (*MsgVote) GetProposalId

func (m *MsgVote) GetProposalId() uint64

func (MsgVote) GetSignBytes

func (m MsgVote) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgVote) GetSigners

func (m MsgVote) GetSigners() []sdk.AccAddress

GetSignerMsgVotes returns the expected signers for a MsgVoteAgg.

func (*MsgVote) GetTimeoutHeight

func (m *MsgVote) GetTimeoutHeight() int64

func (*MsgVote) GetVoter

func (m *MsgVote) GetVoter() string

func (*MsgVote) Marshal

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

func (*MsgVote) MarshalTo

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

func (*MsgVote) MarshalToSizedBuffer

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

func (*MsgVote) ProtoMessage

func (*MsgVote) ProtoMessage()

func (*MsgVote) Reset

func (m *MsgVote) Reset()

func (*MsgVote) Size

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

func (*MsgVote) String

func (m *MsgVote) String() string

func (*MsgVote) Unmarshal

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

func (MsgVote) ValidateBasic

func (m MsgVote) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgVote) XXX_DiscardUnknown

func (m *MsgVote) XXX_DiscardUnknown()

func (*MsgVote) XXX_Marshal

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

func (*MsgVote) XXX_Merge

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

func (*MsgVote) XXX_Size

func (m *MsgVote) XXX_Size() int

func (*MsgVote) XXX_Unmarshal

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

type MsgVoteAgg

type MsgVoteAgg struct {
	// sender is the account address who submits the votes.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,2,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// votes are the list of voters' choices on the proposal.
	Votes []group.VoteOption `protobuf:"varint,3,rep,packed,name=votes,proto3,enum=cosmos.group.v1.VoteOption" json:"votes,omitempty"`
	// agg_sig is the bls aggregated signature for all the votes.
	AggSig []byte `protobuf:"bytes,4,opt,name=agg_sig,json=aggSig,proto3" json:"agg_sig,omitempty"`
	// exec defines whether the proposal should be executed.
	// immediately after voting or not.
	Exec group.Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=cosmos.group.v1.Exec" json:"exec,omitempty"`
	// timeout_height is a block timeout height to prevent the votes from being used past a certain height
	// all aggregated votes must share the same timeout_height in order to verify the aggregated signature.
	TimeoutHeight int64 `protobuf:"varint,6,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"`
}

MsgVoteAgg is the Msg/VoteAgg request type.

func (*MsgVoteAgg) Descriptor

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

func (*MsgVoteAgg) GetAggSig

func (m *MsgVoteAgg) GetAggSig() []byte

func (*MsgVoteAgg) GetExec

func (m *MsgVoteAgg) GetExec() group.Exec

func (*MsgVoteAgg) GetProposalId

func (m *MsgVoteAgg) GetProposalId() uint64

func (*MsgVoteAgg) GetSender

func (m *MsgVoteAgg) GetSender() string

func (MsgVoteAgg) GetSigners

func (m MsgVoteAgg) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgVoteAgg.

func (*MsgVoteAgg) GetTimeoutHeight

func (m *MsgVoteAgg) GetTimeoutHeight() int64

func (*MsgVoteAgg) GetVotes

func (m *MsgVoteAgg) GetVotes() []group.VoteOption

func (*MsgVoteAgg) Marshal

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

func (*MsgVoteAgg) MarshalTo

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

func (*MsgVoteAgg) MarshalToSizedBuffer

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

func (*MsgVoteAgg) ProtoMessage

func (*MsgVoteAgg) ProtoMessage()

func (*MsgVoteAgg) Reset

func (m *MsgVoteAgg) Reset()

func (*MsgVoteAgg) Size

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

func (*MsgVoteAgg) String

func (m *MsgVoteAgg) String() string

func (*MsgVoteAgg) Unmarshal

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

func (MsgVoteAgg) ValidateBasic

func (m MsgVoteAgg) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgVoteAgg) XXX_DiscardUnknown

func (m *MsgVoteAgg) XXX_DiscardUnknown()

func (*MsgVoteAgg) XXX_Marshal

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

func (*MsgVoteAgg) XXX_Merge

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

func (*MsgVoteAgg) XXX_Size

func (m *MsgVoteAgg) XXX_Size() int

func (*MsgVoteAgg) XXX_Unmarshal

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

type MsgVoteAggResponse

type MsgVoteAggResponse struct {
}

MsgVoteResponse is the Msg/Vote response type.

func (*MsgVoteAggResponse) Descriptor

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

func (*MsgVoteAggResponse) Marshal

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

func (*MsgVoteAggResponse) MarshalTo

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

func (*MsgVoteAggResponse) MarshalToSizedBuffer

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

func (*MsgVoteAggResponse) ProtoMessage

func (*MsgVoteAggResponse) ProtoMessage()

func (*MsgVoteAggResponse) Reset

func (m *MsgVoteAggResponse) Reset()

func (*MsgVoteAggResponse) Size

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

func (*MsgVoteAggResponse) String

func (m *MsgVoteAggResponse) String() string

func (*MsgVoteAggResponse) Unmarshal

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

func (*MsgVoteAggResponse) XXX_DiscardUnknown

func (m *MsgVoteAggResponse) XXX_DiscardUnknown()

func (*MsgVoteAggResponse) XXX_Marshal

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

func (*MsgVoteAggResponse) XXX_Merge

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

func (*MsgVoteAggResponse) XXX_Size

func (m *MsgVoteAggResponse) XXX_Size() int

func (*MsgVoteAggResponse) XXX_Unmarshal

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

type MsgVoteResponse

type MsgVoteResponse struct {
	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// voter is the voter account address.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// option is the voter's choice on the proposal.
	Option group.VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1.VoteOption" json:"option,omitempty"`
	// pub_key is the voter's public key.
	PubKey *types.Any `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3" json:"public_key,omitempty"`
	// sig is the individual signature which will be aggregated with other signatures.
	Sig []byte `protobuf:"bytes,5,opt,name=sig,proto3" json:"sig,omitempty"`
	// timeout_height is a block timeout height to prevent the vote from being used past a certain height.
	TimeoutHeight int64 `protobuf:"varint,6,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"`
}

func (*MsgVoteResponse) Descriptor

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

func (*MsgVoteResponse) GetOption

func (m *MsgVoteResponse) GetOption() group.VoteOption

func (*MsgVoteResponse) GetProposalId

func (m *MsgVoteResponse) GetProposalId() uint64

func (*MsgVoteResponse) GetPubKey

func (m *MsgVoteResponse) GetPubKey() *types.Any

func (*MsgVoteResponse) GetSig

func (m *MsgVoteResponse) GetSig() []byte

func (*MsgVoteResponse) GetTimeoutHeight

func (m *MsgVoteResponse) GetTimeoutHeight() int64

func (*MsgVoteResponse) GetVoter

func (m *MsgVoteResponse) GetVoter() string

func (*MsgVoteResponse) Marshal

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

func (*MsgVoteResponse) MarshalTo

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

func (*MsgVoteResponse) MarshalToSizedBuffer

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

func (*MsgVoteResponse) ProtoMessage

func (*MsgVoteResponse) ProtoMessage()

func (*MsgVoteResponse) Reset

func (m *MsgVoteResponse) Reset()

func (*MsgVoteResponse) Size

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

func (*MsgVoteResponse) String

func (m *MsgVoteResponse) String() string

func (*MsgVoteResponse) Unmarshal

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

func (*MsgVoteResponse) XXX_DiscardUnknown

func (m *MsgVoteResponse) XXX_DiscardUnknown()

func (*MsgVoteResponse) XXX_Marshal

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

func (*MsgVoteResponse) XXX_Merge

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

func (*MsgVoteResponse) XXX_Size

func (m *MsgVoteResponse) XXX_Size() int

func (*MsgVoteResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) RegisterBlsGroup

func (*UnimplementedMsgServer) UnregisterBlsGroup

func (*UnimplementedMsgServer) VoteAgg

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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