Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultAggSigVerifyGasConsumer(meter sdk.GasMeter, numPk uint64, numMsg uint64, sigVerifyCost uint64) error
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func VerifyAggregateSignature(msgs [][]byte, msgCheck bool, sig []byte, pks []cryptotypes.PubKey) error
- type AccountKeeper
- type GroupKeeper
- type MsgClient
- type MsgRegisterBlsGroup
- func (*MsgRegisterBlsGroup) Descriptor() ([]byte, []int)
- func (m *MsgRegisterBlsGroup) GetAdmin() string
- func (m *MsgRegisterBlsGroup) GetGroupId() uint64
- func (m MsgRegisterBlsGroup) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterBlsGroup) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterBlsGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterBlsGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterBlsGroup) ProtoMessage()
- func (m *MsgRegisterBlsGroup) Reset()
- func (m *MsgRegisterBlsGroup) Size() (n int)
- func (m *MsgRegisterBlsGroup) String() string
- func (m *MsgRegisterBlsGroup) Unmarshal(dAtA []byte) error
- func (m MsgRegisterBlsGroup) ValidateBasic() error
- func (m *MsgRegisterBlsGroup) XXX_DiscardUnknown()
- func (m *MsgRegisterBlsGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterBlsGroup) XXX_Merge(src proto.Message)
- func (m *MsgRegisterBlsGroup) XXX_Size() int
- func (m *MsgRegisterBlsGroup) XXX_Unmarshal(b []byte) error
- type MsgRegisterBlsGroupResponse
- func (*MsgRegisterBlsGroupResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterBlsGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterBlsGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterBlsGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterBlsGroupResponse) ProtoMessage()
- func (m *MsgRegisterBlsGroupResponse) Reset()
- func (m *MsgRegisterBlsGroupResponse) Size() (n int)
- func (m *MsgRegisterBlsGroupResponse) String() string
- func (m *MsgRegisterBlsGroupResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterBlsGroupResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterBlsGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterBlsGroupResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterBlsGroupResponse) XXX_Size() int
- func (m *MsgRegisterBlsGroupResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUnregisterBlsGroup
- func (*MsgUnregisterBlsGroup) Descriptor() ([]byte, []int)
- func (m *MsgUnregisterBlsGroup) GetAdmin() string
- func (m *MsgUnregisterBlsGroup) GetGroupId() uint64
- func (m MsgUnregisterBlsGroup) GetSigners() []sdk.AccAddress
- func (m *MsgUnregisterBlsGroup) Marshal() (dAtA []byte, err error)
- func (m *MsgUnregisterBlsGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnregisterBlsGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnregisterBlsGroup) ProtoMessage()
- func (m *MsgUnregisterBlsGroup) Reset()
- func (m *MsgUnregisterBlsGroup) Size() (n int)
- func (m *MsgUnregisterBlsGroup) String() string
- func (m *MsgUnregisterBlsGroup) Unmarshal(dAtA []byte) error
- func (m MsgUnregisterBlsGroup) ValidateBasic() error
- func (m *MsgUnregisterBlsGroup) XXX_DiscardUnknown()
- func (m *MsgUnregisterBlsGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnregisterBlsGroup) XXX_Merge(src proto.Message)
- func (m *MsgUnregisterBlsGroup) XXX_Size() int
- func (m *MsgUnregisterBlsGroup) XXX_Unmarshal(b []byte) error
- type MsgUnregisterBlsGroupResponse
- func (*MsgUnregisterBlsGroupResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnregisterBlsGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnregisterBlsGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnregisterBlsGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnregisterBlsGroupResponse) ProtoMessage()
- func (m *MsgUnregisterBlsGroupResponse) Reset()
- func (m *MsgUnregisterBlsGroupResponse) Size() (n int)
- func (m *MsgUnregisterBlsGroupResponse) String() string
- func (m *MsgUnregisterBlsGroupResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnregisterBlsGroupResponse) XXX_DiscardUnknown()
- func (m *MsgUnregisterBlsGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnregisterBlsGroupResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnregisterBlsGroupResponse) XXX_Size() int
- func (m *MsgUnregisterBlsGroupResponse) XXX_Unmarshal(b []byte) error
- type MsgVote
- func (*MsgVote) Descriptor() ([]byte, []int)
- func (m *MsgVote) GetOption() group.VoteOption
- func (m *MsgVote) GetProposalId() uint64
- func (m MsgVote) GetSignBytes() []byte
- func (m MsgVote) GetSigners() []sdk.AccAddress
- func (m *MsgVote) GetTimeoutHeight() int64
- func (m *MsgVote) GetVoter() string
- func (m *MsgVote) Marshal() (dAtA []byte, err error)
- func (m *MsgVote) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVote) ProtoMessage()
- func (m *MsgVote) Reset()
- func (m *MsgVote) Size() (n int)
- func (m *MsgVote) String() string
- func (m *MsgVote) Unmarshal(dAtA []byte) error
- func (m MsgVote) ValidateBasic() error
- func (m *MsgVote) XXX_DiscardUnknown()
- func (m *MsgVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVote) XXX_Merge(src proto.Message)
- func (m *MsgVote) XXX_Size() int
- func (m *MsgVote) XXX_Unmarshal(b []byte) error
- type MsgVoteAgg
- func (*MsgVoteAgg) Descriptor() ([]byte, []int)
- func (m *MsgVoteAgg) GetAggSig() []byte
- func (m *MsgVoteAgg) GetExec() group.Exec
- func (m *MsgVoteAgg) GetProposalId() uint64
- func (m *MsgVoteAgg) GetSender() string
- func (m MsgVoteAgg) GetSigners() []sdk.AccAddress
- func (m *MsgVoteAgg) GetTimeoutHeight() int64
- func (m *MsgVoteAgg) GetVotes() []group.VoteOption
- func (m *MsgVoteAgg) Marshal() (dAtA []byte, err error)
- func (m *MsgVoteAgg) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVoteAgg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVoteAgg) ProtoMessage()
- func (m *MsgVoteAgg) Reset()
- func (m *MsgVoteAgg) Size() (n int)
- func (m *MsgVoteAgg) String() string
- func (m *MsgVoteAgg) Unmarshal(dAtA []byte) error
- func (m MsgVoteAgg) ValidateBasic() error
- func (m *MsgVoteAgg) XXX_DiscardUnknown()
- func (m *MsgVoteAgg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVoteAgg) XXX_Merge(src proto.Message)
- func (m *MsgVoteAgg) XXX_Size() int
- func (m *MsgVoteAgg) XXX_Unmarshal(b []byte) error
- type MsgVoteAggResponse
- func (*MsgVoteAggResponse) Descriptor() ([]byte, []int)
- func (m *MsgVoteAggResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgVoteAggResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVoteAggResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVoteAggResponse) ProtoMessage()
- func (m *MsgVoteAggResponse) Reset()
- func (m *MsgVoteAggResponse) Size() (n int)
- func (m *MsgVoteAggResponse) String() string
- func (m *MsgVoteAggResponse) Unmarshal(dAtA []byte) error
- func (m *MsgVoteAggResponse) XXX_DiscardUnknown()
- func (m *MsgVoteAggResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVoteAggResponse) XXX_Merge(src proto.Message)
- func (m *MsgVoteAggResponse) XXX_Size() int
- func (m *MsgVoteAggResponse) XXX_Unmarshal(b []byte) error
- type MsgVoteResponse
- func (*MsgVoteResponse) Descriptor() ([]byte, []int)
- func (m *MsgVoteResponse) GetOption() group.VoteOption
- func (m *MsgVoteResponse) GetProposalId() uint64
- func (m *MsgVoteResponse) GetPubKey() *types.Any
- func (m *MsgVoteResponse) GetSig() []byte
- func (m *MsgVoteResponse) GetTimeoutHeight() int64
- func (m *MsgVoteResponse) GetVoter() string
- func (m *MsgVoteResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgVoteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVoteResponse) ProtoMessage()
- func (m *MsgVoteResponse) Reset()
- func (m *MsgVoteResponse) Size() (n int)
- func (m *MsgVoteResponse) String() string
- func (m *MsgVoteResponse) Unmarshal(dAtA []byte) error
- func (m *MsgVoteResponse) XXX_DiscardUnknown()
- func (m *MsgVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVoteResponse) XXX_Merge(src proto.Message)
- func (m *MsgVoteResponse) XXX_Size() int
- func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) RegisterBlsGroup(ctx context.Context, req *MsgRegisterBlsGroup) (*MsgRegisterBlsGroupResponse, error)
- func (*UnimplementedMsgServer) UnregisterBlsGroup(ctx context.Context, req *MsgUnregisterBlsGroup) (*MsgUnregisterBlsGroupResponse, error)
- func (*UnimplementedMsgServer) VoteAgg(ctx context.Context, req *MsgVoteAgg) (*MsgVoteAggResponse, error)
Constants ¶
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 ¶
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") 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") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
GroupPrefixKey = []byte{0x00}
)
KVStore keys
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 ¶
Types ¶
type AccountKeeper ¶
type GroupKeeper ¶
type GroupKeeper interface {
Proposal(goCtx context.Context, request *group.QueryProposalRequest) (*group.QueryProposalResponse, error)
GroupInfo(goCtx context.Context, request *group.QueryGroupInfoRequest) (*group.QueryGroupInfoResponse, error)
GroupPolicyInfo(goCtx context.Context, request *group.QueryGroupPolicyInfoRequest) (*group.QueryGroupPolicyInfoResponse, error)
GroupMembers(goCtx context.Context, request *group.QueryGroupMembersRequest) (*group.QueryGroupMembersResponse, error)
Vote(goCtx context.Context, req *group.MsgVote) (*group.MsgVoteResponse, error)
Exec(goCtx context.Context, req *group.MsgExec) (*group.MsgExecResponse, error)
}
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 (m *MsgUnregisterBlsGroupResponse) String() 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) GetOption ¶
func (m *MsgVote) GetOption() group.VoteOption
func (*MsgVote) GetProposalId ¶
func (MsgVote) GetSigners ¶
func (m MsgVote) GetSigners() []sdk.AccAddress
GetSignerMsgVotes returns the expected signers for a MsgVoteAgg.
func (*MsgVote) GetTimeoutHeight ¶
func (*MsgVote) MarshalToSizedBuffer ¶
func (*MsgVote) ProtoMessage ¶
func (*MsgVote) ProtoMessage()
func (MsgVote) ValidateBasic ¶
ValidateBasic does a sanity check on the provided data
func (*MsgVote) XXX_DiscardUnknown ¶
func (m *MsgVote) XXX_DiscardUnknown()
func (*MsgVote) XXX_Marshal ¶
func (*MsgVote) XXX_Unmarshal ¶
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) 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) 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) RegisterBlsGroup(ctx context.Context, req *MsgRegisterBlsGroup) (*MsgRegisterBlsGroupResponse, error)
func (*UnimplementedMsgServer) UnregisterBlsGroup ¶
func (*UnimplementedMsgServer) UnregisterBlsGroup(ctx context.Context, req *MsgUnregisterBlsGroup) (*MsgUnregisterBlsGroupResponse, error)
func (*UnimplementedMsgServer) VoteAgg ¶
func (*UnimplementedMsgServer) VoteAgg(ctx context.Context, req *MsgVoteAgg) (*MsgVoteAggResponse, error)