Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(addr sdk.AccAddress) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
- 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)
- func ValidateRecipientKey(key string) error
- type EncryptionKeyEntry
- func (*EncryptionKeyEntry) Descriptor() ([]byte, []int)
- func (m *EncryptionKeyEntry) GetAddress() string
- func (m *EncryptionKeyEntry) GetKey() string
- func (m *EncryptionKeyEntry) Marshal() (dAtA []byte, err error)
- func (m *EncryptionKeyEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *EncryptionKeyEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EncryptionKeyEntry) ProtoMessage()
- func (m *EncryptionKeyEntry) Reset()
- func (m *EncryptionKeyEntry) Size() (n int)
- func (m *EncryptionKeyEntry) String() string
- func (m *EncryptionKeyEntry) Unmarshal(dAtA []byte) error
- func (e EncryptionKeyEntry) Validate() error
- func (m *EncryptionKeyEntry) XXX_DiscardUnknown()
- func (m *EncryptionKeyEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncryptionKeyEntry) XXX_Merge(src proto.Message)
- func (m *EncryptionKeyEntry) XXX_Size() int
- func (m *EncryptionKeyEntry) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetKeys() []EncryptionKeyEntry
- 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 KeyRequest
- func (*KeyRequest) Descriptor() ([]byte, []int)
- func (m *KeyRequest) GetAddress() string
- func (m *KeyRequest) Marshal() (dAtA []byte, err error)
- func (m *KeyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *KeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KeyRequest) ProtoMessage()
- func (m *KeyRequest) Reset()
- func (m *KeyRequest) Size() (n int)
- func (m *KeyRequest) String() string
- func (m *KeyRequest) Unmarshal(dAtA []byte) error
- func (m *KeyRequest) XXX_DiscardUnknown()
- func (m *KeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyRequest) XXX_Merge(src proto.Message)
- func (m *KeyRequest) XXX_Size() int
- func (m *KeyRequest) XXX_Unmarshal(b []byte) error
- type KeyResponse
- func (*KeyResponse) Descriptor() ([]byte, []int)
- func (m *KeyResponse) GetKey() string
- func (m *KeyResponse) Marshal() (dAtA []byte, err error)
- func (m *KeyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *KeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KeyResponse) ProtoMessage()
- func (m *KeyResponse) Reset()
- func (m *KeyResponse) Size() (n int)
- func (m *KeyResponse) String() string
- func (m *KeyResponse) Unmarshal(dAtA []byte) error
- func (m *KeyResponse) XXX_DiscardUnknown()
- func (m *KeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyResponse) XXX_Merge(src proto.Message)
- func (m *KeyResponse) XXX_Size() int
- func (m *KeyResponse) XXX_Unmarshal(b []byte) error
- type KeysRequest
- func (*KeysRequest) Descriptor() ([]byte, []int)
- func (m *KeysRequest) GetAddresses() []string
- func (m *KeysRequest) Marshal() (dAtA []byte, err error)
- func (m *KeysRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *KeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KeysRequest) ProtoMessage()
- func (m *KeysRequest) Reset()
- func (m *KeysRequest) Size() (n int)
- func (m *KeysRequest) String() string
- func (m *KeysRequest) Unmarshal(dAtA []byte) error
- func (m *KeysRequest) XXX_DiscardUnknown()
- func (m *KeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeysRequest) XXX_Merge(src proto.Message)
- func (m *KeysRequest) XXX_Size() int
- func (m *KeysRequest) XXX_Unmarshal(b []byte) error
- type KeysResponse
- func (*KeysResponse) Descriptor() ([]byte, []int)
- func (m *KeysResponse) GetKeys() []string
- func (m *KeysResponse) Marshal() (dAtA []byte, err error)
- func (m *KeysResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *KeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KeysResponse) ProtoMessage()
- func (m *KeysResponse) Reset()
- func (m *KeysResponse) Size() (n int)
- func (m *KeysResponse) String() string
- func (m *KeysResponse) Unmarshal(dAtA []byte) error
- func (m *KeysResponse) XXX_DiscardUnknown()
- func (m *KeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeysResponse) XXX_Merge(src proto.Message)
- func (m *KeysResponse) XXX_Size() int
- func (m *KeysResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgRegisterEncryptionKey
- func (*MsgRegisterEncryptionKey) Descriptor() ([]byte, []int)
- func (m *MsgRegisterEncryptionKey) GetAddress() string
- func (m *MsgRegisterEncryptionKey) GetKey() string
- func (m *MsgRegisterEncryptionKey) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterEncryptionKey) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterEncryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterEncryptionKey) ProtoMessage()
- func (m *MsgRegisterEncryptionKey) Reset()
- func (m *MsgRegisterEncryptionKey) Size() (n int)
- func (m *MsgRegisterEncryptionKey) String() string
- func (m *MsgRegisterEncryptionKey) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterEncryptionKey) ValidateBasic() error
- func (m *MsgRegisterEncryptionKey) XXX_DiscardUnknown()
- func (m *MsgRegisterEncryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterEncryptionKey) XXX_Merge(src proto.Message)
- func (m *MsgRegisterEncryptionKey) XXX_Size() int
- func (m *MsgRegisterEncryptionKey) XXX_Unmarshal(b []byte) error
- type MsgRegisterEncryptionKeyResponse
- func (*MsgRegisterEncryptionKeyResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterEncryptionKeyResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterEncryptionKeyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterEncryptionKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterEncryptionKeyResponse) ProtoMessage()
- func (m *MsgRegisterEncryptionKeyResponse) Reset()
- func (m *MsgRegisterEncryptionKeyResponse) Size() (n int)
- func (m *MsgRegisterEncryptionKeyResponse) String() string
- func (m *MsgRegisterEncryptionKeyResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterEncryptionKeyResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterEncryptionKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterEncryptionKeyResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterEncryptionKeyResponse) XXX_Size() int
- func (m *MsgRegisterEncryptionKeyResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "e2ee" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for e2ee RouterKey = ModuleName )
const (
DefaultKeyringName = "e2ee-identity"
)
Variables ¶
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
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 KeyPrefixEncryptionKey = []byte{prefixEncryptionKey}
Functions ¶
func KeyPrefix ¶
func KeyPrefix(addr sdk.AccAddress) []byte
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/e2ee interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
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 ¶
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 ¶
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 ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateRecipientKey ¶
Types ¶
type EncryptionKeyEntry ¶
type EncryptionKeyEntry struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` }
EncryptionKeyEntry is a type that contains the owner and the public key.
func (*EncryptionKeyEntry) Descriptor ¶
func (*EncryptionKeyEntry) Descriptor() ([]byte, []int)
func (*EncryptionKeyEntry) GetAddress ¶
func (m *EncryptionKeyEntry) GetAddress() string
func (*EncryptionKeyEntry) GetKey ¶
func (m *EncryptionKeyEntry) GetKey() string
func (*EncryptionKeyEntry) Marshal ¶
func (m *EncryptionKeyEntry) Marshal() (dAtA []byte, err error)
func (*EncryptionKeyEntry) MarshalTo ¶
func (m *EncryptionKeyEntry) MarshalTo(dAtA []byte) (int, error)
func (*EncryptionKeyEntry) MarshalToSizedBuffer ¶
func (m *EncryptionKeyEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EncryptionKeyEntry) ProtoMessage ¶
func (*EncryptionKeyEntry) ProtoMessage()
func (*EncryptionKeyEntry) Reset ¶
func (m *EncryptionKeyEntry) Reset()
func (*EncryptionKeyEntry) Size ¶
func (m *EncryptionKeyEntry) Size() (n int)
func (*EncryptionKeyEntry) String ¶
func (m *EncryptionKeyEntry) String() string
func (*EncryptionKeyEntry) Unmarshal ¶
func (m *EncryptionKeyEntry) Unmarshal(dAtA []byte) error
func (EncryptionKeyEntry) Validate ¶
func (e EncryptionKeyEntry) Validate() error
Validate checks for address and key correctness.
func (*EncryptionKeyEntry) XXX_DiscardUnknown ¶
func (m *EncryptionKeyEntry) XXX_DiscardUnknown()
func (*EncryptionKeyEntry) XXX_Marshal ¶
func (m *EncryptionKeyEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncryptionKeyEntry) XXX_Merge ¶
func (m *EncryptionKeyEntry) XXX_Merge(src proto.Message)
func (*EncryptionKeyEntry) XXX_Size ¶
func (m *EncryptionKeyEntry) XXX_Size() int
func (*EncryptionKeyEntry) XXX_Unmarshal ¶
func (m *EncryptionKeyEntry) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params defines all the paramaters of the module. Keys []EncryptionKeyEntry `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys"` }
GenesisState defines the e2ee module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetKeys ¶
func (m *GenesisState) GetKeys() []EncryptionKeyEntry
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type KeyRequest ¶
type KeyRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
KeyRequest is the request type for the Query/Key RPC method.
func (*KeyRequest) Descriptor ¶
func (*KeyRequest) Descriptor() ([]byte, []int)
func (*KeyRequest) GetAddress ¶
func (m *KeyRequest) GetAddress() string
func (*KeyRequest) Marshal ¶
func (m *KeyRequest) Marshal() (dAtA []byte, err error)
func (*KeyRequest) MarshalToSizedBuffer ¶
func (m *KeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*KeyRequest) ProtoMessage ¶
func (*KeyRequest) ProtoMessage()
func (*KeyRequest) Reset ¶
func (m *KeyRequest) Reset()
func (*KeyRequest) Size ¶
func (m *KeyRequest) Size() (n int)
func (*KeyRequest) String ¶
func (m *KeyRequest) String() string
func (*KeyRequest) Unmarshal ¶
func (m *KeyRequest) Unmarshal(dAtA []byte) error
func (*KeyRequest) XXX_DiscardUnknown ¶
func (m *KeyRequest) XXX_DiscardUnknown()
func (*KeyRequest) XXX_Marshal ¶
func (m *KeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyRequest) XXX_Merge ¶
func (m *KeyRequest) XXX_Merge(src proto.Message)
func (*KeyRequest) XXX_Size ¶
func (m *KeyRequest) XXX_Size() int
func (*KeyRequest) XXX_Unmarshal ¶
func (m *KeyRequest) XXX_Unmarshal(b []byte) error
type KeyResponse ¶
type KeyResponse struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
KeyResponse is the response type for the Query/Key RPC method.
func (*KeyResponse) Descriptor ¶
func (*KeyResponse) Descriptor() ([]byte, []int)
func (*KeyResponse) GetKey ¶
func (m *KeyResponse) GetKey() string
func (*KeyResponse) Marshal ¶
func (m *KeyResponse) Marshal() (dAtA []byte, err error)
func (*KeyResponse) MarshalToSizedBuffer ¶
func (m *KeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*KeyResponse) ProtoMessage ¶
func (*KeyResponse) ProtoMessage()
func (*KeyResponse) Reset ¶
func (m *KeyResponse) Reset()
func (*KeyResponse) Size ¶
func (m *KeyResponse) Size() (n int)
func (*KeyResponse) String ¶
func (m *KeyResponse) String() string
func (*KeyResponse) Unmarshal ¶
func (m *KeyResponse) Unmarshal(dAtA []byte) error
func (*KeyResponse) XXX_DiscardUnknown ¶
func (m *KeyResponse) XXX_DiscardUnknown()
func (*KeyResponse) XXX_Marshal ¶
func (m *KeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyResponse) XXX_Merge ¶
func (m *KeyResponse) XXX_Merge(src proto.Message)
func (*KeyResponse) XXX_Size ¶
func (m *KeyResponse) XXX_Size() int
func (*KeyResponse) XXX_Unmarshal ¶
func (m *KeyResponse) XXX_Unmarshal(b []byte) error
type KeysRequest ¶
type KeysRequest struct {
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}
KeysRequest is the request type for the Query/Key RPC method.
func (*KeysRequest) Descriptor ¶
func (*KeysRequest) Descriptor() ([]byte, []int)
func (*KeysRequest) GetAddresses ¶
func (m *KeysRequest) GetAddresses() []string
func (*KeysRequest) Marshal ¶
func (m *KeysRequest) Marshal() (dAtA []byte, err error)
func (*KeysRequest) MarshalToSizedBuffer ¶
func (m *KeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*KeysRequest) ProtoMessage ¶
func (*KeysRequest) ProtoMessage()
func (*KeysRequest) Reset ¶
func (m *KeysRequest) Reset()
func (*KeysRequest) Size ¶
func (m *KeysRequest) Size() (n int)
func (*KeysRequest) String ¶
func (m *KeysRequest) String() string
func (*KeysRequest) Unmarshal ¶
func (m *KeysRequest) Unmarshal(dAtA []byte) error
func (*KeysRequest) XXX_DiscardUnknown ¶
func (m *KeysRequest) XXX_DiscardUnknown()
func (*KeysRequest) XXX_Marshal ¶
func (m *KeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeysRequest) XXX_Merge ¶
func (m *KeysRequest) XXX_Merge(src proto.Message)
func (*KeysRequest) XXX_Size ¶
func (m *KeysRequest) XXX_Size() int
func (*KeysRequest) XXX_Unmarshal ¶
func (m *KeysRequest) XXX_Unmarshal(b []byte) error
type KeysResponse ¶
type KeysResponse struct {
Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
}
KeysResponse is the response type for the Query/Key RPC method.
func (*KeysResponse) Descriptor ¶
func (*KeysResponse) Descriptor() ([]byte, []int)
func (*KeysResponse) GetKeys ¶
func (m *KeysResponse) GetKeys() []string
func (*KeysResponse) Marshal ¶
func (m *KeysResponse) Marshal() (dAtA []byte, err error)
func (*KeysResponse) MarshalToSizedBuffer ¶
func (m *KeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*KeysResponse) ProtoMessage ¶
func (*KeysResponse) ProtoMessage()
func (*KeysResponse) Reset ¶
func (m *KeysResponse) Reset()
func (*KeysResponse) Size ¶
func (m *KeysResponse) Size() (n int)
func (*KeysResponse) String ¶
func (m *KeysResponse) String() string
func (*KeysResponse) Unmarshal ¶
func (m *KeysResponse) Unmarshal(dAtA []byte) error
func (*KeysResponse) XXX_DiscardUnknown ¶
func (m *KeysResponse) XXX_DiscardUnknown()
func (*KeysResponse) XXX_Marshal ¶
func (m *KeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeysResponse) XXX_Merge ¶
func (m *KeysResponse) XXX_Merge(src proto.Message)
func (*KeysResponse) XXX_Size ¶
func (m *KeysResponse) XXX_Size() int
func (*KeysResponse) XXX_Unmarshal ¶
func (m *KeysResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // RegisterEncryptionKey registers a new encryption key to a specific account RegisterEncryptionKey(ctx context.Context, in *MsgRegisterEncryptionKey, opts ...grpc.CallOption) (*MsgRegisterEncryptionKeyResponse, 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 MsgRegisterEncryptionKey ¶
type MsgRegisterEncryptionKey struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` }
MsgRegisterEncryptionKey defines the Msg/RegisterEncryptionKey request type
func (*MsgRegisterEncryptionKey) Descriptor ¶
func (*MsgRegisterEncryptionKey) Descriptor() ([]byte, []int)
func (*MsgRegisterEncryptionKey) GetAddress ¶
func (m *MsgRegisterEncryptionKey) GetAddress() string
func (*MsgRegisterEncryptionKey) GetKey ¶
func (m *MsgRegisterEncryptionKey) GetKey() string
func (*MsgRegisterEncryptionKey) Marshal ¶
func (m *MsgRegisterEncryptionKey) Marshal() (dAtA []byte, err error)
func (*MsgRegisterEncryptionKey) MarshalTo ¶
func (m *MsgRegisterEncryptionKey) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterEncryptionKey) MarshalToSizedBuffer ¶
func (m *MsgRegisterEncryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterEncryptionKey) ProtoMessage ¶
func (*MsgRegisterEncryptionKey) ProtoMessage()
func (*MsgRegisterEncryptionKey) Reset ¶
func (m *MsgRegisterEncryptionKey) Reset()
func (*MsgRegisterEncryptionKey) Size ¶
func (m *MsgRegisterEncryptionKey) Size() (n int)
func (*MsgRegisterEncryptionKey) String ¶
func (m *MsgRegisterEncryptionKey) String() string
func (*MsgRegisterEncryptionKey) Unmarshal ¶
func (m *MsgRegisterEncryptionKey) Unmarshal(dAtA []byte) error
func (*MsgRegisterEncryptionKey) ValidateBasic ¶
func (m *MsgRegisterEncryptionKey) ValidateBasic() error
func (*MsgRegisterEncryptionKey) XXX_DiscardUnknown ¶
func (m *MsgRegisterEncryptionKey) XXX_DiscardUnknown()
func (*MsgRegisterEncryptionKey) XXX_Marshal ¶
func (m *MsgRegisterEncryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterEncryptionKey) XXX_Merge ¶
func (m *MsgRegisterEncryptionKey) XXX_Merge(src proto.Message)
func (*MsgRegisterEncryptionKey) XXX_Size ¶
func (m *MsgRegisterEncryptionKey) XXX_Size() int
func (*MsgRegisterEncryptionKey) XXX_Unmarshal ¶
func (m *MsgRegisterEncryptionKey) XXX_Unmarshal(b []byte) error
type MsgRegisterEncryptionKeyResponse ¶
type MsgRegisterEncryptionKeyResponse struct { }
MsgRegisterEncryptionKeyResponse defines the Msg/RegisterEncryptionKey response type
func (*MsgRegisterEncryptionKeyResponse) Descriptor ¶
func (*MsgRegisterEncryptionKeyResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterEncryptionKeyResponse) Marshal ¶
func (m *MsgRegisterEncryptionKeyResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterEncryptionKeyResponse) MarshalTo ¶
func (m *MsgRegisterEncryptionKeyResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterEncryptionKeyResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterEncryptionKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterEncryptionKeyResponse) ProtoMessage ¶
func (*MsgRegisterEncryptionKeyResponse) ProtoMessage()
func (*MsgRegisterEncryptionKeyResponse) Reset ¶
func (m *MsgRegisterEncryptionKeyResponse) Reset()
func (*MsgRegisterEncryptionKeyResponse) Size ¶
func (m *MsgRegisterEncryptionKeyResponse) Size() (n int)
func (*MsgRegisterEncryptionKeyResponse) String ¶
func (m *MsgRegisterEncryptionKeyResponse) String() string
func (*MsgRegisterEncryptionKeyResponse) Unmarshal ¶
func (m *MsgRegisterEncryptionKeyResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterEncryptionKeyResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterEncryptionKeyResponse) XXX_DiscardUnknown()
func (*MsgRegisterEncryptionKeyResponse) XXX_Marshal ¶
func (m *MsgRegisterEncryptionKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterEncryptionKeyResponse) XXX_Merge ¶
func (m *MsgRegisterEncryptionKeyResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterEncryptionKeyResponse) XXX_Size ¶
func (m *MsgRegisterEncryptionKeyResponse) XXX_Size() int
func (*MsgRegisterEncryptionKeyResponse) XXX_Unmarshal ¶
func (m *MsgRegisterEncryptionKeyResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // RegisterEncryptionKey registers a new encryption key to a specific account RegisterEncryptionKey(context.Context, *MsgRegisterEncryptionKey) (*MsgRegisterEncryptionKeyResponse, error) }
MsgServer is the server API for Msg service.
type QueryClient ¶
type QueryClient interface { // Key queries the encryption key of a given address Key(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*KeyResponse, error) // Keys queries the encryption keys for a batch of addresses Keys(ctx context.Context, in *KeysRequest, opts ...grpc.CallOption) (*KeysResponse, 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 ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryServer ¶
type QueryServer interface { // Key queries the encryption key of a given address Key(context.Context, *KeyRequest) (*KeyResponse, error) // Keys queries the encryption keys for a batch of addresses Keys(context.Context, *KeysRequest) (*KeysResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) RegisterEncryptionKey ¶
func (*UnimplementedMsgServer) RegisterEncryptionKey(ctx context.Context, req *MsgRegisterEncryptionKey) (*MsgRegisterEncryptionKeyResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Key ¶
func (*UnimplementedQueryServer) Key(ctx context.Context, req *KeyRequest) (*KeyResponse, error)
func (*UnimplementedQueryServer) Keys ¶
func (*UnimplementedQueryServer) Keys(ctx context.Context, req *KeysRequest) (*KeysResponse, error)