Documentation ¶
Overview ¶
Package identity is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetAddressByPublicKey(pubKey []byte, coinType modulev1.CoinType) (string, error)
- func GetCoinTypeDIDMethod(coinType modulev1.CoinType) string
- func GetCoinTypeHRP(coinType modulev1.CoinType) string
- func GetDIDMethodCoinType(didMethod string) (modulev1.CoinType, error)
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type BankKeeper
- type Counter
- func (*Counter) Descriptor() ([]byte, []int)
- func (m *Counter) GetAddress() string
- func (m *Counter) GetCount() uint64
- func (m *Counter) Marshal() (dAtA []byte, err error)
- func (m *Counter) MarshalTo(dAtA []byte) (int, error)
- func (m *Counter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Counter) ProtoMessage()
- func (m *Counter) Reset()
- func (m *Counter) Size() (n int)
- func (m *Counter) String() string
- func (m *Counter) Unmarshal(dAtA []byte) error
- func (m *Counter) XXX_DiscardUnknown()
- func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Counter) XXX_Merge(src proto.Message)
- func (m *Counter) XXX_Size() int
- func (m *Counter) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCounters() []Counter
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs *GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgInitializeIdentity
- func (*MsgInitializeIdentity) Descriptor() ([]byte, []int)
- func (m *MsgInitializeIdentity) GetAccumulatorKey() []byte
- func (m *MsgInitializeIdentity) GetAddress() string
- func (m *MsgInitializeIdentity) GetIpns() string
- func (m *MsgInitializeIdentity) GetNetwork() string
- func (m *MsgInitializeIdentity) GetPeerId() string
- func (m *MsgInitializeIdentity) GetPublicKey() []byte
- func (m *MsgInitializeIdentity) GetSender() string
- func (m *MsgInitializeIdentity) Marshal() (dAtA []byte, err error)
- func (m *MsgInitializeIdentity) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInitializeIdentity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInitializeIdentity) ProtoMessage()
- func (m *MsgInitializeIdentity) Reset()
- func (m *MsgInitializeIdentity) Size() (n int)
- func (m *MsgInitializeIdentity) String() string
- func (m *MsgInitializeIdentity) Unmarshal(dAtA []byte) error
- func (m *MsgInitializeIdentity) XXX_DiscardUnknown()
- func (m *MsgInitializeIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInitializeIdentity) XXX_Merge(src proto.Message)
- func (m *MsgInitializeIdentity) XXX_Size() int
- func (m *MsgInitializeIdentity) XXX_Unmarshal(b []byte) error
- type MsgInitializeIdentityResponse
- func (*MsgInitializeIdentityResponse) Descriptor() ([]byte, []int)
- func (m *MsgInitializeIdentityResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgInitializeIdentityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInitializeIdentityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInitializeIdentityResponse) ProtoMessage()
- func (m *MsgInitializeIdentityResponse) Reset()
- func (m *MsgInitializeIdentityResponse) Size() (n int)
- func (m *MsgInitializeIdentityResponse) String() string
- func (m *MsgInitializeIdentityResponse) Unmarshal(dAtA []byte) error
- func (m *MsgInitializeIdentityResponse) XXX_DiscardUnknown()
- func (m *MsgInitializeIdentityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInitializeIdentityResponse) XXX_Merge(src proto.Message)
- func (m *MsgInitializeIdentityResponse) XXX_Size() int
- func (m *MsgInitializeIdentityResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UserIdentifier
- func (*UserIdentifier) Descriptor() ([]byte, []int)
- func (m *UserIdentifier) GetIdentifierType() UserIdentifierType
- func (m *UserIdentifier) GetValue() string
- func (m *UserIdentifier) Marshal() (dAtA []byte, err error)
- func (m *UserIdentifier) MarshalTo(dAtA []byte) (int, error)
- func (m *UserIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserIdentifier) ProtoMessage()
- func (m *UserIdentifier) Reset()
- func (m *UserIdentifier) Size() (n int)
- func (m *UserIdentifier) String() string
- func (m *UserIdentifier) Unmarshal(dAtA []byte) error
- func (m *UserIdentifier) XXX_DiscardUnknown()
- func (m *UserIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserIdentifier) XXX_Merge(src proto.Message)
- func (m *UserIdentifier) XXX_Size() int
- func (m *UserIdentifier) XXX_Unmarshal(b []byte) error
- type UserIdentifierType
- type WalletIdentifier
- func (*WalletIdentifier) Descriptor() ([]byte, []int)
- func (m *WalletIdentifier) GetCoinType() uint32
- func (m *WalletIdentifier) GetValue() string
- func (m *WalletIdentifier) Marshal() (dAtA []byte, err error)
- func (m *WalletIdentifier) MarshalTo(dAtA []byte) (int, error)
- func (m *WalletIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WalletIdentifier) ProtoMessage()
- func (m *WalletIdentifier) Reset()
- func (m *WalletIdentifier) Size() (n int)
- func (m *WalletIdentifier) String() string
- func (m *WalletIdentifier) Unmarshal(dAtA []byte) error
- func (m *WalletIdentifier) XXX_DiscardUnknown()
- func (m *WalletIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletIdentifier) XXX_Merge(src proto.Message)
- func (m *WalletIdentifier) XXX_Size() int
- func (m *WalletIdentifier) XXX_Unmarshal(b []byte) error
Constants ¶
const ModuleName = "identity"
Variables ¶
var ( ErrInvalidLengthIdentifier = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIdentifier = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIdentifier = fmt.Errorf("proto: unexpected end of group") )
var ( ParamsKey = collections.NewPrefix(0) CounterKey = collections.NewPrefix(1) )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var ( // ErrDuplicateAddress error if there is a duplicate address ErrDuplicateAddress = errors.Register(ModuleName, 2, "duplicate address") )
var UserIdentifierType_name = map[int32]string{
0: "USER_IDENTIFIER_TYPE_UNSPECIFIED",
1: "USER_IDENTIFIER_TYPE_EMAIL",
2: "USER_IDENTIFIER_TYPE_PHONE",
3: "USER_IDENTIFIER_TYPE_FIDO",
4: "USER_IDENTIFIER_TYPE_PASSKEY",
5: "USER_IDENTIFIER_TYPE_PUBLIC_KEY",
}
var UserIdentifierType_value = map[string]int32{
"USER_IDENTIFIER_TYPE_UNSPECIFIED": 0,
"USER_IDENTIFIER_TYPE_EMAIL": 1,
"USER_IDENTIFIER_TYPE_PHONE": 2,
"USER_IDENTIFIER_TYPE_FIDO": 3,
"USER_IDENTIFIER_TYPE_PASSKEY": 4,
"USER_IDENTIFIER_TYPE_PUBLIC_KEY": 5,
}
Functions ¶
func GetAddressByPublicKey ¶ added in v0.14.0
func GetCoinTypeDIDMethod ¶ added in v0.14.0
GetCoinTypeDIDMethod returns the DID method for a given coin type
func GetCoinTypeHRP ¶ added in v0.14.0
GetCoinTypeHRP returns the HRP for a given coin type
func GetDIDMethodCoinType ¶ added in v0.14.0
GetDIDMethodCoinType returns the coin type for a given DID method
func RegisterInterfaces ¶ added in v0.8.10
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the interfaces types with the interface registry.
func RegisterMsgServer ¶ added in v0.8.10
func RegisterQueryHandler ¶ added in v0.8.10
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.8.10
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶ added in v0.8.10
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶ added in v0.8.10
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.8.10
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type BankKeeper ¶ added in v0.8.10
BankKeeper defines the expected interface needed to retrieve account balances.
type Counter ¶ added in v0.8.10
type Counter struct { // count defines the count of the counter. Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // address defines the address that is associated with the count. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` }
Counter defines a counter object. It is used only for genesis purposes. Collections does not need to use it.
func (*Counter) Descriptor ¶ added in v0.8.10
func (*Counter) GetAddress ¶ added in v0.8.10
func (*Counter) MarshalToSizedBuffer ¶ added in v0.8.10
func (*Counter) ProtoMessage ¶ added in v0.8.10
func (*Counter) ProtoMessage()
func (*Counter) XXX_DiscardUnknown ¶ added in v0.8.10
func (m *Counter) XXX_DiscardUnknown()
func (*Counter) XXX_Marshal ¶ added in v0.8.10
func (*Counter) XXX_Unmarshal ¶ added in v0.8.10
type GenesisState ¶ added in v0.8.10
type GenesisState struct { // counter defines the counter object. Counters []Counter `protobuf:"bytes,1,rep,name=counters,proto3" json:"counters"` // params defines all the parameters of the module. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
GenesisState is the state that must be provided at genesis.
func NewGenesisState ¶ added in v0.8.10
func NewGenesisState() *GenesisState
NewGenesisState creates a new genesis state with default values.
func (*GenesisState) Descriptor ¶ added in v0.8.10
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetCounters ¶ added in v0.8.10
func (m *GenesisState) GetCounters() []Counter
func (*GenesisState) GetParams ¶ added in v0.8.10
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶ added in v0.8.10
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.8.10
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.8.10
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.8.10
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.8.10
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.8.10
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.8.10
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.8.10
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) Validate ¶ added in v0.8.10
func (gs *GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.8.10
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.8.10
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.8.10
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.8.10
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.8.10
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v0.8.10
type MsgClient interface { // IncrementCounter increments the counter. InitializeIdentity(ctx context.Context, in *MsgInitializeIdentity, opts ...grpc.CallOption) (*MsgInitializeIdentityResponse, error) // UpdateParams updates the module parameters. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 ¶ added in v0.8.10
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgInitializeIdentity ¶ added in v0.14.0
type MsgInitializeIdentity struct { // sender is the message sender. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // peer_id is the peer id of the identity. PeerId string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` // address is the address of the identity. Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // public_key is the public key of the identity. PublicKey []byte `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // ipns is the ipns of the identity. Ipns string `protobuf:"bytes,5,opt,name=ipns,proto3" json:"ipns,omitempty"` // accumulator_key is the accumulator key of the identity. AccumulatorKey []byte `protobuf:"bytes,6,opt,name=accumulator_key,json=accumulatorKey,proto3" json:"accumulator_key,omitempty"` // network is the network of the identity. Network string `protobuf:"bytes,7,opt,name=network,proto3" json:"network,omitempty"` }
MsgInitializeIdentity defines the Msg/IncrementCounter request type.
func (*MsgInitializeIdentity) Descriptor ¶ added in v0.14.0
func (*MsgInitializeIdentity) Descriptor() ([]byte, []int)
func (*MsgInitializeIdentity) GetAccumulatorKey ¶ added in v0.14.0
func (m *MsgInitializeIdentity) GetAccumulatorKey() []byte
func (*MsgInitializeIdentity) GetAddress ¶ added in v0.14.0
func (m *MsgInitializeIdentity) GetAddress() string
func (*MsgInitializeIdentity) GetIpns ¶ added in v0.14.0
func (m *MsgInitializeIdentity) GetIpns() string
func (*MsgInitializeIdentity) GetNetwork ¶ added in v0.14.0
func (m *MsgInitializeIdentity) GetNetwork() string
func (*MsgInitializeIdentity) GetPeerId ¶ added in v0.14.0
func (m *MsgInitializeIdentity) GetPeerId() string
func (*MsgInitializeIdentity) GetPublicKey ¶ added in v0.14.0
func (m *MsgInitializeIdentity) GetPublicKey() []byte
func (*MsgInitializeIdentity) GetSender ¶ added in v0.14.0
func (m *MsgInitializeIdentity) GetSender() string
func (*MsgInitializeIdentity) Marshal ¶ added in v0.14.0
func (m *MsgInitializeIdentity) Marshal() (dAtA []byte, err error)
func (*MsgInitializeIdentity) MarshalTo ¶ added in v0.14.0
func (m *MsgInitializeIdentity) MarshalTo(dAtA []byte) (int, error)
func (*MsgInitializeIdentity) MarshalToSizedBuffer ¶ added in v0.14.0
func (m *MsgInitializeIdentity) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInitializeIdentity) ProtoMessage ¶ added in v0.14.0
func (*MsgInitializeIdentity) ProtoMessage()
func (*MsgInitializeIdentity) Reset ¶ added in v0.14.0
func (m *MsgInitializeIdentity) Reset()
func (*MsgInitializeIdentity) Size ¶ added in v0.14.0
func (m *MsgInitializeIdentity) Size() (n int)
func (*MsgInitializeIdentity) String ¶ added in v0.14.0
func (m *MsgInitializeIdentity) String() string
func (*MsgInitializeIdentity) Unmarshal ¶ added in v0.14.0
func (m *MsgInitializeIdentity) Unmarshal(dAtA []byte) error
func (*MsgInitializeIdentity) XXX_DiscardUnknown ¶ added in v0.14.0
func (m *MsgInitializeIdentity) XXX_DiscardUnknown()
func (*MsgInitializeIdentity) XXX_Marshal ¶ added in v0.14.0
func (m *MsgInitializeIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInitializeIdentity) XXX_Merge ¶ added in v0.14.0
func (m *MsgInitializeIdentity) XXX_Merge(src proto.Message)
func (*MsgInitializeIdentity) XXX_Size ¶ added in v0.14.0
func (m *MsgInitializeIdentity) XXX_Size() int
func (*MsgInitializeIdentity) XXX_Unmarshal ¶ added in v0.14.0
func (m *MsgInitializeIdentity) XXX_Unmarshal(b []byte) error
type MsgInitializeIdentityResponse ¶ added in v0.14.0
type MsgInitializeIdentityResponse struct { }
MsgInitializeIdentityResponse defines the Msg/InitializeIdentity response type.
func (*MsgInitializeIdentityResponse) Descriptor ¶ added in v0.14.0
func (*MsgInitializeIdentityResponse) Descriptor() ([]byte, []int)
func (*MsgInitializeIdentityResponse) Marshal ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) Marshal() (dAtA []byte, err error)
func (*MsgInitializeIdentityResponse) MarshalTo ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgInitializeIdentityResponse) MarshalToSizedBuffer ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInitializeIdentityResponse) ProtoMessage ¶ added in v0.14.0
func (*MsgInitializeIdentityResponse) ProtoMessage()
func (*MsgInitializeIdentityResponse) Reset ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) Reset()
func (*MsgInitializeIdentityResponse) Size ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) Size() (n int)
func (*MsgInitializeIdentityResponse) String ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) String() string
func (*MsgInitializeIdentityResponse) Unmarshal ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) Unmarshal(dAtA []byte) error
func (*MsgInitializeIdentityResponse) XXX_DiscardUnknown ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) XXX_DiscardUnknown()
func (*MsgInitializeIdentityResponse) XXX_Marshal ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInitializeIdentityResponse) XXX_Merge ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) XXX_Merge(src proto.Message)
func (*MsgInitializeIdentityResponse) XXX_Size ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) XXX_Size() int
func (*MsgInitializeIdentityResponse) XXX_Unmarshal ¶ added in v0.14.0
func (m *MsgInitializeIdentityResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶ added in v0.8.10
type MsgServer interface { // IncrementCounter increments the counter. InitializeIdentity(context.Context, *MsgInitializeIdentity) (*MsgInitializeIdentityResponse, error) // UpdateParams updates the module parameters. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶ added in v0.8.10
type MsgUpdateParams struct { // authority is the address that controls the module // NOTE: Defaults to the governance module unless overwritten. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the module parameters to update. // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor ¶ added in v0.8.10
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v0.8.10
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v0.8.10
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶ added in v0.8.10
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v0.8.10
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v0.8.10
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v0.8.10
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v0.8.10
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶ added in v0.8.10
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v0.8.10
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶ added in v0.8.10
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v0.8.10
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v0.8.10
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v0.8.10
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v0.8.10
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v0.8.10
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v0.8.10
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v0.8.10
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v0.8.10
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v0.8.10
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶ added in v0.8.10
type Params struct { }
Params defines the parameters of the module.
func DefaultParams ¶ added in v0.8.10
func DefaultParams() Params
DefaultParams returns default module parameters.
func (*Params) Descriptor ¶ added in v0.8.10
func (*Params) MarshalToSizedBuffer ¶ added in v0.8.10
func (*Params) ProtoMessage ¶ added in v0.8.10
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.8.10
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.8.10
func (*Params) XXX_Unmarshal ¶ added in v0.8.10
type QueryClient ¶ added in v0.8.10
type QueryClient interface { // Params returns the module parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶ added in v0.8.10
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶ added in v0.8.10
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶ added in v0.8.10
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.8.10
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.8.10
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.8.10
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.8.10
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.8.10
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.8.10
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.8.10
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.8.10
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.8.10
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.8.10
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.8.10
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.8.10
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.8.10
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.8.10
type QueryParamsResponse struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶ added in v0.8.10
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v0.8.10
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v0.8.10
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.8.10
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.8.10
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.8.10
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.8.10
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.8.10
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.8.10
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.8.10
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.8.10
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.8.10
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.8.10
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.8.10
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.8.10
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.8.10
type QueryServer interface { // Params returns the module parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶ added in v0.8.10
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) InitializeIdentity ¶ added in v0.14.0
func (*UnimplementedMsgServer) InitializeIdentity(ctx context.Context, req *MsgInitializeIdentity) (*MsgInitializeIdentityResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.8.10
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶ added in v0.8.10
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶ added in v0.8.10
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
type UserIdentifier ¶ added in v0.8.10
type UserIdentifier struct { // The type of identifier. IdentifierType UserIdentifierType `` /* 145-byte string literal not displayed */ // The value of the identifier. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
UserIdentifier represents the structure of a user identifier.
func (*UserIdentifier) Descriptor ¶ added in v0.8.10
func (*UserIdentifier) Descriptor() ([]byte, []int)
func (*UserIdentifier) GetIdentifierType ¶ added in v0.8.10
func (m *UserIdentifier) GetIdentifierType() UserIdentifierType
func (*UserIdentifier) GetValue ¶ added in v0.8.10
func (m *UserIdentifier) GetValue() string
func (*UserIdentifier) Marshal ¶ added in v0.8.10
func (m *UserIdentifier) Marshal() (dAtA []byte, err error)
func (*UserIdentifier) MarshalTo ¶ added in v0.8.10
func (m *UserIdentifier) MarshalTo(dAtA []byte) (int, error)
func (*UserIdentifier) MarshalToSizedBuffer ¶ added in v0.8.10
func (m *UserIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserIdentifier) ProtoMessage ¶ added in v0.8.10
func (*UserIdentifier) ProtoMessage()
func (*UserIdentifier) Reset ¶ added in v0.8.10
func (m *UserIdentifier) Reset()
func (*UserIdentifier) Size ¶ added in v0.8.10
func (m *UserIdentifier) Size() (n int)
func (*UserIdentifier) String ¶ added in v0.8.10
func (m *UserIdentifier) String() string
func (*UserIdentifier) Unmarshal ¶ added in v0.8.10
func (m *UserIdentifier) Unmarshal(dAtA []byte) error
func (*UserIdentifier) XXX_DiscardUnknown ¶ added in v0.8.10
func (m *UserIdentifier) XXX_DiscardUnknown()
func (*UserIdentifier) XXX_Marshal ¶ added in v0.8.10
func (m *UserIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserIdentifier) XXX_Merge ¶ added in v0.8.10
func (m *UserIdentifier) XXX_Merge(src proto.Message)
func (*UserIdentifier) XXX_Size ¶ added in v0.8.10
func (m *UserIdentifier) XXX_Size() int
func (*UserIdentifier) XXX_Unmarshal ¶ added in v0.8.10
func (m *UserIdentifier) XXX_Unmarshal(b []byte) error
type UserIdentifierType ¶ added in v0.8.10
type UserIdentifierType int32
UserIdentifierType represents the type of a user identifier.
const ( // The type of identifier is unknown. UserIdentifierType_USER_IDENTIFIER_TYPE_UNSPECIFIED UserIdentifierType = 0 // The type of identifier is an email address. UserIdentifierType_USER_IDENTIFIER_TYPE_EMAIL UserIdentifierType = 1 // The type of identifier is a phone number. UserIdentifierType_USER_IDENTIFIER_TYPE_PHONE UserIdentifierType = 2 // The type of identifier is a FIDO credential ID. UserIdentifierType_USER_IDENTIFIER_TYPE_FIDO UserIdentifierType = 3 // The type of a Passkey identifier. UserIdentifierType_USER_IDENTIFIER_TYPE_PASSKEY UserIdentifierType = 4 // The type of a public key identifier. UserIdentifierType_USER_IDENTIFIER_TYPE_PUBLIC_KEY UserIdentifierType = 5 )
func (UserIdentifierType) EnumDescriptor ¶ added in v0.8.10
func (UserIdentifierType) EnumDescriptor() ([]byte, []int)
func (UserIdentifierType) String ¶ added in v0.8.10
func (x UserIdentifierType) String() string
type WalletIdentifier ¶ added in v0.8.10
type WalletIdentifier struct { // The bip44 coin type. CoinType uint32 `protobuf:"varint,1,opt,name=coin_type,json=coinType,proto3" json:"coin_type,omitempty"` // The value of the identifier is the address of the wallet. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
WalletIdentifier represents the structure of a wallet identifier.
func (*WalletIdentifier) Descriptor ¶ added in v0.8.10
func (*WalletIdentifier) Descriptor() ([]byte, []int)
func (*WalletIdentifier) GetCoinType ¶ added in v0.8.10
func (m *WalletIdentifier) GetCoinType() uint32
func (*WalletIdentifier) GetValue ¶ added in v0.8.10
func (m *WalletIdentifier) GetValue() string
func (*WalletIdentifier) Marshal ¶ added in v0.8.10
func (m *WalletIdentifier) Marshal() (dAtA []byte, err error)
func (*WalletIdentifier) MarshalTo ¶ added in v0.8.10
func (m *WalletIdentifier) MarshalTo(dAtA []byte) (int, error)
func (*WalletIdentifier) MarshalToSizedBuffer ¶ added in v0.8.10
func (m *WalletIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WalletIdentifier) ProtoMessage ¶ added in v0.8.10
func (*WalletIdentifier) ProtoMessage()
func (*WalletIdentifier) Reset ¶ added in v0.8.10
func (m *WalletIdentifier) Reset()
func (*WalletIdentifier) Size ¶ added in v0.8.10
func (m *WalletIdentifier) Size() (n int)
func (*WalletIdentifier) String ¶ added in v0.8.10
func (m *WalletIdentifier) String() string
func (*WalletIdentifier) Unmarshal ¶ added in v0.8.10
func (m *WalletIdentifier) Unmarshal(dAtA []byte) error
func (*WalletIdentifier) XXX_DiscardUnknown ¶ added in v0.8.10
func (m *WalletIdentifier) XXX_DiscardUnknown()
func (*WalletIdentifier) XXX_Marshal ¶ added in v0.8.10
func (m *WalletIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletIdentifier) XXX_Merge ¶ added in v0.8.10
func (m *WalletIdentifier) XXX_Merge(src proto.Message)
func (*WalletIdentifier) XXX_Size ¶ added in v0.8.10
func (m *WalletIdentifier) XXX_Size() int
func (*WalletIdentifier) XXX_Unmarshal ¶ added in v0.8.10
func (m *WalletIdentifier) XXX_Unmarshal(b []byte) error