Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func MasterCertPrefix(key string) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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 RegistrationKeyPrefix(key []byte) []byte
- func ValidateGenesis(data GenesisState) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (this *GenesisState) Equal(that interface{}) bool
- 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 (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 Key
- func (*Key) Descriptor() ([]byte, []int)
- func (this *Key) Equal(that interface{}) bool
- func (m *Key) Marshal() (dAtA []byte, err error)
- func (m *Key) MarshalTo(dAtA []byte) (int, error)
- func (m *Key) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Key) ProtoMessage()
- func (m *Key) Reset()
- func (m *Key) Size() (n int)
- func (m *Key) String() string
- func (m *Key) Unmarshal(dAtA []byte) error
- func (m *Key) XXX_DiscardUnknown()
- func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Key) XXX_Merge(src proto.Message)
- func (m *Key) XXX_Size() int
- func (m *Key) XXX_Unmarshal(b []byte) error
- type MasterCertificate
- func (*MasterCertificate) Descriptor() ([]byte, []int)
- func (this *MasterCertificate) Equal(that interface{}) bool
- func (m *MasterCertificate) Marshal() (dAtA []byte, err error)
- func (m *MasterCertificate) MarshalTo(dAtA []byte) (int, error)
- func (m *MasterCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MasterCertificate) ProtoMessage()
- func (m *MasterCertificate) Reset()
- func (m *MasterCertificate) Size() (n int)
- func (m *MasterCertificate) String() string
- func (m *MasterCertificate) Unmarshal(dAtA []byte) error
- func (m *MasterCertificate) XXX_DiscardUnknown()
- func (m *MasterCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MasterCertificate) XXX_Merge(src proto.Message)
- func (m *MasterCertificate) XXX_Size() int
- func (m *MasterCertificate) XXX_Unmarshal(b []byte) error
- type NodeID
- type PublicKey
- type QueryClient
- type QueryEncryptedSeedRequest
- func (*QueryEncryptedSeedRequest) Descriptor() ([]byte, []int)
- func (this *QueryEncryptedSeedRequest) Equal(that interface{}) bool
- func (m *QueryEncryptedSeedRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryEncryptedSeedRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEncryptedSeedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEncryptedSeedRequest) ProtoMessage()
- func (m *QueryEncryptedSeedRequest) Reset()
- func (m *QueryEncryptedSeedRequest) Size() (n int)
- func (m *QueryEncryptedSeedRequest) String() string
- func (m *QueryEncryptedSeedRequest) Unmarshal(dAtA []byte) error
- func (m *QueryEncryptedSeedRequest) XXX_DiscardUnknown()
- func (m *QueryEncryptedSeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEncryptedSeedRequest) XXX_Merge(src proto.Message)
- func (m *QueryEncryptedSeedRequest) XXX_Size() int
- func (m *QueryEncryptedSeedRequest) XXX_Unmarshal(b []byte) error
- type QueryEncryptedSeedResponse
- func (*QueryEncryptedSeedResponse) Descriptor() ([]byte, []int)
- func (this *QueryEncryptedSeedResponse) Equal(that interface{}) bool
- func (m *QueryEncryptedSeedResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryEncryptedSeedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEncryptedSeedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEncryptedSeedResponse) ProtoMessage()
- func (m *QueryEncryptedSeedResponse) Reset()
- func (m *QueryEncryptedSeedResponse) Size() (n int)
- func (m *QueryEncryptedSeedResponse) String() string
- func (m *QueryEncryptedSeedResponse) Unmarshal(dAtA []byte) error
- func (m *QueryEncryptedSeedResponse) XXX_DiscardUnknown()
- func (m *QueryEncryptedSeedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEncryptedSeedResponse) XXX_Merge(src proto.Message)
- func (m *QueryEncryptedSeedResponse) XXX_Size() int
- func (m *QueryEncryptedSeedResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RaAuthenticate
- func (*RaAuthenticate) Descriptor() ([]byte, []int)
- func (this *RaAuthenticate) Equal(that interface{}) bool
- func (msg RaAuthenticate) GetSignBytes() []byte
- func (msg RaAuthenticate) GetSigners() []sdk.AccAddress
- func (m *RaAuthenticate) Marshal() (dAtA []byte, err error)
- func (m *RaAuthenticate) MarshalTo(dAtA []byte) (int, error)
- func (m *RaAuthenticate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RaAuthenticate) ProtoMessage()
- func (m *RaAuthenticate) Reset()
- func (msg RaAuthenticate) Route() string
- func (m *RaAuthenticate) Size() (n int)
- func (m *RaAuthenticate) String() string
- func (msg RaAuthenticate) Type() string
- func (m *RaAuthenticate) Unmarshal(dAtA []byte) error
- func (msg RaAuthenticate) ValidateBasic() error
- func (m *RaAuthenticate) XXX_DiscardUnknown()
- func (m *RaAuthenticate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RaAuthenticate) XXX_Merge(src proto.Message)
- func (m *RaAuthenticate) XXX_Size() int
- func (m *RaAuthenticate) XXX_Unmarshal(b []byte) error
- type RegistrationNodeInfo
- func (*RegistrationNodeInfo) Descriptor() ([]byte, []int)
- func (this *RegistrationNodeInfo) Equal(that interface{}) bool
- func (m *RegistrationNodeInfo) Marshal() (dAtA []byte, err error)
- func (m *RegistrationNodeInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *RegistrationNodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegistrationNodeInfo) ProtoMessage()
- func (m *RegistrationNodeInfo) Reset()
- func (m *RegistrationNodeInfo) Size() (n int)
- func (m *RegistrationNodeInfo) String() string
- func (m *RegistrationNodeInfo) Unmarshal(dAtA []byte) error
- func (m *RegistrationNodeInfo) XXX_DiscardUnknown()
- func (m *RegistrationNodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegistrationNodeInfo) XXX_Merge(src proto.Message)
- func (m *RegistrationNodeInfo) XXX_Size() int
- func (m *RegistrationNodeInfo) XXX_Unmarshal(b []byte) error
- type SeedConfig
- func (c SeedConfig) Decode() ([]byte, []byte, error)
- func (*SeedConfig) Descriptor() ([]byte, []int)
- func (this *SeedConfig) Equal(that interface{}) bool
- func (m *SeedConfig) Marshal() (dAtA []byte, err error)
- func (m *SeedConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *SeedConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SeedConfig) ProtoMessage()
- func (m *SeedConfig) Reset()
- func (m *SeedConfig) Size() (n int)
- func (m *SeedConfig) String() string
- func (m *SeedConfig) Unmarshal(dAtA []byte) error
- func (m *SeedConfig) XXX_DiscardUnknown()
- func (m *SeedConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SeedConfig) XXX_Merge(src proto.Message)
- func (m *SeedConfig) XXX_Size() int
- func (m *SeedConfig) XXX_Unmarshal(b []byte) error
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) EncryptedSeed(ctx context.Context, req *QueryEncryptedSeedRequest) (*QueryEncryptedSeedResponse, error)
- func (*UnimplementedQueryServer) RegistrationKey(ctx context.Context, req *emptypb.Empty) (*Key, error)
- func (*UnimplementedQueryServer) TxKey(ctx context.Context, req *emptypb.Empty) (*Key, error)
Constants ¶
const ( // ModuleName is the name of the contract module ModuleName = "register" // StoreKey is the string store representation StoreKey = ModuleName // TStoreKey is the string transient store representation TStoreKey = "transient_" + ModuleName // QuerierRoute is the querier route for the staking module QuerierRoute = ModuleName // RouterKey is the msg router key for the staking module RouterKey = ModuleName )
const ( EnclaveRegistrationKey = "new_node_seed_exchange_keypair.sealed" PublicKeyLength = 64 // encoded length EncryptedKeyLength = 96 // encoded length MasterNodeKeyId = "NodeExchMasterKey" MasterIoKeyId = "IoExchMasterKey" SecretNodeSeedConfig = "seed.json" SecretNodeCfgFolder = ".node" )
const ( NodeExchMasterCertPath = "node-master-cert.der" IoExchMasterCertPath = "io-master-cert.der" )
const AttestationCertPath = "attestation_cert.der"
const (
MaxCertificateSize = 20 * 1024
)
Variables ¶
var ( DefaultCodespace = ModuleName // ErrSeedInitFailed error when the seed initialization fails ErrSeedInitFailed = sdkErrors.Register(DefaultCodespace, 1, "Initialize node seed failed") ErrAuthenticateFailed = sdkErrors.Register(DefaultCodespace, 2, "Failed to authenticate node") // ErrSeedInitFailed error when the seed initialization fails ErrSeedValidationParams = sdkErrors.Register(DefaultCodespace, 3, "Failed to validate seed parameters") // ErrSeedInitFailed error when the seed initialization fails BootstrapInitFailed = sdkErrors.Register(DefaultCodespace, 4, "Failed to initialize bootstrap") ErrInvalidType = sdkErrors.Register(DefaultCodespace, 5, "Type error") ErrCertificateInvalid = sdkErrors.Register(DefaultCodespace, 6, "Certificate invalid or does not exist") ErrNotFound = sdkErrors.Register(DefaultCodespace, 7, "not found") ErrInvalid = sdkErrors.Register(DefaultCodespace, 8, "invalid") )
Codes for wasm contract errors
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 ( RegistrationStorePrefix = []byte{0x01} MasterKeyPrefix = []byte{0x02} )
nolint
var ( ErrInvalidLengthMsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsg = 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 ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func MasterCertPrefix ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterCodec registers the account types and interface
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func RegistrationKeyPrefix ¶
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis performs basic validation of supply genesis data returning an error for any failed validation criteria.
Types ¶
type GenesisState ¶
type GenesisState struct { Registration []*RegistrationNodeInfo `protobuf:"bytes,1,rep,name=registration,proto3" json:"reg_info"` NodeExchMasterCertificate *MasterCertificate `protobuf:"bytes,2,opt,name=node_exch_master_certificate,json=nodeExchMasterCertificate,proto3" json:"node_exch_cert"` IoMasterCertificate *MasterCertificate `protobuf:"bytes,3,opt,name=io_master_certificate,json=ioMasterCertificate,proto3" json:"io_exch_cert"` }
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Equal ¶
func (this *GenesisState) Equal(that interface{}) bool
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) 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 Key ¶
type Key struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key"`
}
func (*Key) Descriptor ¶
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) XXX_DiscardUnknown ¶
func (m *Key) XXX_DiscardUnknown()
func (*Key) XXX_Unmarshal ¶
type MasterCertificate ¶
type MasterCertificate struct {
Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"`
}
func (*MasterCertificate) Descriptor ¶
func (*MasterCertificate) Descriptor() ([]byte, []int)
func (*MasterCertificate) Equal ¶
func (this *MasterCertificate) Equal(that interface{}) bool
func (*MasterCertificate) Marshal ¶
func (m *MasterCertificate) Marshal() (dAtA []byte, err error)
func (*MasterCertificate) MarshalTo ¶
func (m *MasterCertificate) MarshalTo(dAtA []byte) (int, error)
func (*MasterCertificate) MarshalToSizedBuffer ¶
func (m *MasterCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MasterCertificate) ProtoMessage ¶
func (*MasterCertificate) ProtoMessage()
func (*MasterCertificate) Reset ¶
func (m *MasterCertificate) Reset()
func (*MasterCertificate) Size ¶
func (m *MasterCertificate) Size() (n int)
func (*MasterCertificate) String ¶
func (m *MasterCertificate) String() string
func (*MasterCertificate) Unmarshal ¶
func (m *MasterCertificate) Unmarshal(dAtA []byte) error
func (*MasterCertificate) XXX_DiscardUnknown ¶
func (m *MasterCertificate) XXX_DiscardUnknown()
func (*MasterCertificate) XXX_Marshal ¶
func (m *MasterCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MasterCertificate) XXX_Merge ¶
func (m *MasterCertificate) XXX_Merge(src proto.Message)
func (*MasterCertificate) XXX_Size ¶
func (m *MasterCertificate) XXX_Size() int
func (*MasterCertificate) XXX_Unmarshal ¶
func (m *MasterCertificate) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Returns the key used for transactions TxKey(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Key, error) // Returns the key used for registration RegistrationKey(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Key, error) // Returns the encrypted seed for a registered node by public key EncryptedSeed(ctx context.Context, in *QueryEncryptedSeedRequest, opts ...grpc.CallOption) (*QueryEncryptedSeedResponse, 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 QueryEncryptedSeedRequest ¶
type QueryEncryptedSeedRequest struct {
PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
}
func (*QueryEncryptedSeedRequest) Descriptor ¶
func (*QueryEncryptedSeedRequest) Descriptor() ([]byte, []int)
func (*QueryEncryptedSeedRequest) Equal ¶
func (this *QueryEncryptedSeedRequest) Equal(that interface{}) bool
func (*QueryEncryptedSeedRequest) Marshal ¶
func (m *QueryEncryptedSeedRequest) Marshal() (dAtA []byte, err error)
func (*QueryEncryptedSeedRequest) MarshalTo ¶
func (m *QueryEncryptedSeedRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryEncryptedSeedRequest) MarshalToSizedBuffer ¶
func (m *QueryEncryptedSeedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEncryptedSeedRequest) ProtoMessage ¶
func (*QueryEncryptedSeedRequest) ProtoMessage()
func (*QueryEncryptedSeedRequest) Reset ¶
func (m *QueryEncryptedSeedRequest) Reset()
func (*QueryEncryptedSeedRequest) Size ¶
func (m *QueryEncryptedSeedRequest) Size() (n int)
func (*QueryEncryptedSeedRequest) String ¶
func (m *QueryEncryptedSeedRequest) String() string
func (*QueryEncryptedSeedRequest) Unmarshal ¶
func (m *QueryEncryptedSeedRequest) Unmarshal(dAtA []byte) error
func (*QueryEncryptedSeedRequest) XXX_DiscardUnknown ¶
func (m *QueryEncryptedSeedRequest) XXX_DiscardUnknown()
func (*QueryEncryptedSeedRequest) XXX_Marshal ¶
func (m *QueryEncryptedSeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEncryptedSeedRequest) XXX_Merge ¶
func (m *QueryEncryptedSeedRequest) XXX_Merge(src proto.Message)
func (*QueryEncryptedSeedRequest) XXX_Size ¶
func (m *QueryEncryptedSeedRequest) XXX_Size() int
func (*QueryEncryptedSeedRequest) XXX_Unmarshal ¶
func (m *QueryEncryptedSeedRequest) XXX_Unmarshal(b []byte) error
type QueryEncryptedSeedResponse ¶
type QueryEncryptedSeedResponse struct {
EncryptedSeed []byte `protobuf:"bytes,1,opt,name=encrypted_seed,json=encryptedSeed,proto3" json:"encrypted_seed,omitempty"`
}
func (*QueryEncryptedSeedResponse) Descriptor ¶
func (*QueryEncryptedSeedResponse) Descriptor() ([]byte, []int)
func (*QueryEncryptedSeedResponse) Equal ¶
func (this *QueryEncryptedSeedResponse) Equal(that interface{}) bool
func (*QueryEncryptedSeedResponse) Marshal ¶
func (m *QueryEncryptedSeedResponse) Marshal() (dAtA []byte, err error)
func (*QueryEncryptedSeedResponse) MarshalTo ¶
func (m *QueryEncryptedSeedResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryEncryptedSeedResponse) MarshalToSizedBuffer ¶
func (m *QueryEncryptedSeedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEncryptedSeedResponse) ProtoMessage ¶
func (*QueryEncryptedSeedResponse) ProtoMessage()
func (*QueryEncryptedSeedResponse) Reset ¶
func (m *QueryEncryptedSeedResponse) Reset()
func (*QueryEncryptedSeedResponse) Size ¶
func (m *QueryEncryptedSeedResponse) Size() (n int)
func (*QueryEncryptedSeedResponse) String ¶
func (m *QueryEncryptedSeedResponse) String() string
func (*QueryEncryptedSeedResponse) Unmarshal ¶
func (m *QueryEncryptedSeedResponse) Unmarshal(dAtA []byte) error
func (*QueryEncryptedSeedResponse) XXX_DiscardUnknown ¶
func (m *QueryEncryptedSeedResponse) XXX_DiscardUnknown()
func (*QueryEncryptedSeedResponse) XXX_Marshal ¶
func (m *QueryEncryptedSeedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEncryptedSeedResponse) XXX_Merge ¶
func (m *QueryEncryptedSeedResponse) XXX_Merge(src proto.Message)
func (*QueryEncryptedSeedResponse) XXX_Size ¶
func (m *QueryEncryptedSeedResponse) XXX_Size() int
func (*QueryEncryptedSeedResponse) XXX_Unmarshal ¶
func (m *QueryEncryptedSeedResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Returns the key used for transactions TxKey(context.Context, *emptypb.Empty) (*Key, error) // Returns the key used for registration RegistrationKey(context.Context, *emptypb.Empty) (*Key, error) // Returns the encrypted seed for a registered node by public key EncryptedSeed(context.Context, *QueryEncryptedSeedRequest) (*QueryEncryptedSeedResponse, error) }
QueryServer is the server API for Query service.
type RaAuthenticate ¶
type RaAuthenticate struct { Sender github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=sender,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"sender,omitempty"` Certificate github_com_enigmampc_SecretNetwork_x_registration_remote_attestation.Certificate `` /* 150-byte string literal not displayed */ }
func (*RaAuthenticate) Descriptor ¶
func (*RaAuthenticate) Descriptor() ([]byte, []int)
func (*RaAuthenticate) Equal ¶
func (this *RaAuthenticate) Equal(that interface{}) bool
func (RaAuthenticate) GetSignBytes ¶
func (msg RaAuthenticate) GetSignBytes() []byte
func (RaAuthenticate) GetSigners ¶
func (msg RaAuthenticate) GetSigners() []sdk.AccAddress
func (*RaAuthenticate) Marshal ¶
func (m *RaAuthenticate) Marshal() (dAtA []byte, err error)
func (*RaAuthenticate) MarshalToSizedBuffer ¶
func (m *RaAuthenticate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RaAuthenticate) ProtoMessage ¶
func (*RaAuthenticate) ProtoMessage()
func (*RaAuthenticate) Reset ¶
func (m *RaAuthenticate) Reset()
func (RaAuthenticate) Route ¶
func (msg RaAuthenticate) Route() string
func (*RaAuthenticate) Size ¶
func (m *RaAuthenticate) Size() (n int)
func (*RaAuthenticate) String ¶
func (m *RaAuthenticate) String() string
func (RaAuthenticate) Type ¶
func (msg RaAuthenticate) Type() string
func (*RaAuthenticate) Unmarshal ¶
func (m *RaAuthenticate) Unmarshal(dAtA []byte) error
func (RaAuthenticate) ValidateBasic ¶
func (msg RaAuthenticate) ValidateBasic() error
func (*RaAuthenticate) XXX_DiscardUnknown ¶
func (m *RaAuthenticate) XXX_DiscardUnknown()
func (*RaAuthenticate) XXX_Marshal ¶
func (m *RaAuthenticate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RaAuthenticate) XXX_Merge ¶
func (m *RaAuthenticate) XXX_Merge(src proto.Message)
func (*RaAuthenticate) XXX_Size ¶
func (m *RaAuthenticate) XXX_Size() int
func (*RaAuthenticate) XXX_Unmarshal ¶
func (m *RaAuthenticate) XXX_Unmarshal(b []byte) error
type RegistrationNodeInfo ¶
type RegistrationNodeInfo struct { Certificate github_com_enigmampc_SecretNetwork_x_registration_remote_attestation.Certificate `` /* 164-byte string literal not displayed */ EncryptedSeed []byte `protobuf:"bytes,2,opt,name=encrypted_seed,json=encryptedSeed,proto3" json:"encrypted_seed,omitempty"` }
func (*RegistrationNodeInfo) Descriptor ¶
func (*RegistrationNodeInfo) Descriptor() ([]byte, []int)
func (*RegistrationNodeInfo) Equal ¶
func (this *RegistrationNodeInfo) Equal(that interface{}) bool
func (*RegistrationNodeInfo) Marshal ¶
func (m *RegistrationNodeInfo) Marshal() (dAtA []byte, err error)
func (*RegistrationNodeInfo) MarshalTo ¶
func (m *RegistrationNodeInfo) MarshalTo(dAtA []byte) (int, error)
func (*RegistrationNodeInfo) MarshalToSizedBuffer ¶
func (m *RegistrationNodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RegistrationNodeInfo) ProtoMessage ¶
func (*RegistrationNodeInfo) ProtoMessage()
func (*RegistrationNodeInfo) Reset ¶
func (m *RegistrationNodeInfo) Reset()
func (*RegistrationNodeInfo) Size ¶
func (m *RegistrationNodeInfo) Size() (n int)
func (*RegistrationNodeInfo) String ¶
func (m *RegistrationNodeInfo) String() string
func (*RegistrationNodeInfo) Unmarshal ¶
func (m *RegistrationNodeInfo) Unmarshal(dAtA []byte) error
func (*RegistrationNodeInfo) XXX_DiscardUnknown ¶
func (m *RegistrationNodeInfo) XXX_DiscardUnknown()
func (*RegistrationNodeInfo) XXX_Marshal ¶
func (m *RegistrationNodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegistrationNodeInfo) XXX_Merge ¶
func (m *RegistrationNodeInfo) XXX_Merge(src proto.Message)
func (*RegistrationNodeInfo) XXX_Size ¶
func (m *RegistrationNodeInfo) XXX_Size() int
func (*RegistrationNodeInfo) XXX_Unmarshal ¶
func (m *RegistrationNodeInfo) XXX_Unmarshal(b []byte) error
type SeedConfig ¶
type SeedConfig struct { MasterCert string `protobuf:"bytes,1,opt,name=master_cert,json=masterCert,proto3" json:"pk"` EncryptedKey string `protobuf:"bytes,2,opt,name=encrypted_key,json=encryptedKey,proto3" json:"encKey"` }
func (*SeedConfig) Descriptor ¶
func (*SeedConfig) Descriptor() ([]byte, []int)
func (*SeedConfig) Equal ¶
func (this *SeedConfig) Equal(that interface{}) bool
func (*SeedConfig) Marshal ¶
func (m *SeedConfig) Marshal() (dAtA []byte, err error)
func (*SeedConfig) MarshalToSizedBuffer ¶
func (m *SeedConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SeedConfig) ProtoMessage ¶
func (*SeedConfig) ProtoMessage()
func (*SeedConfig) Reset ¶
func (m *SeedConfig) Reset()
func (*SeedConfig) Size ¶
func (m *SeedConfig) Size() (n int)
func (*SeedConfig) String ¶
func (m *SeedConfig) String() string
func (*SeedConfig) Unmarshal ¶
func (m *SeedConfig) Unmarshal(dAtA []byte) error
func (*SeedConfig) XXX_DiscardUnknown ¶
func (m *SeedConfig) XXX_DiscardUnknown()
func (*SeedConfig) XXX_Marshal ¶
func (m *SeedConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SeedConfig) XXX_Merge ¶
func (m *SeedConfig) XXX_Merge(src proto.Message)
func (*SeedConfig) XXX_Size ¶
func (m *SeedConfig) XXX_Size() int
func (*SeedConfig) XXX_Unmarshal ¶
func (m *SeedConfig) XXX_Unmarshal(b []byte) error
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) EncryptedSeed ¶
func (*UnimplementedQueryServer) EncryptedSeed(ctx context.Context, req *QueryEncryptedSeedRequest) (*QueryEncryptedSeedResponse, error)