Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CleanNameForSuffix(name string) string
- func DecodePublicKey(coseKey *COSEKey) (crypto.PublicKey, error)
- func GenerateApplicationDid(accountAddr, appToRegister string, cred *Credential) (*did.Document, error)
- func GenerateNameDid(accountAddr, nameToRegister string, cred *Credential) (*did.Document, error)
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.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)
- func ValidateAppName(rs string) (string, error)
- func ValidateName(rs string) (string, error)
- func VerifySignature(rawKey cbor.RawMessage, message, sig []byte) error
- func WhoIsKey(index string) []byte
- type AccountKeeper
- type Authenticator
- func (*Authenticator) Descriptor() ([]byte, []int)
- func (m *Authenticator) GetAaguid() []byte
- func (m *Authenticator) GetCloneWarning() bool
- func (m *Authenticator) GetSignCount() uint32
- func (m *Authenticator) Marshal() (dAtA []byte, err error)
- func (m *Authenticator) MarshalTo(dAtA []byte) (int, error)
- func (m *Authenticator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Authenticator) ProtoMessage()
- func (m *Authenticator) Reset()
- func (m *Authenticator) Size() (n int)
- func (m *Authenticator) String() string
- func (auth *Authenticator) ToWebAuthn() webauthn.Authenticator
- func (m *Authenticator) Unmarshal(dAtA []byte) error
- func (m *Authenticator) XXX_DiscardUnknown()
- func (m *Authenticator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Authenticator) XXX_Merge(src proto.Message)
- func (m *Authenticator) XXX_Size() int
- func (m *Authenticator) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type COSEAlgorithmIdentifier
- type COSEEllipticCurve
- type COSEKey
- type COSEKeyType
- type CapabilityKeeper
- type Credential
- func (cred *Credential) DecodePublicKey() (crypto.PublicKey, error)
- func (*Credential) Descriptor() ([]byte, []int)
- func (m *Credential) GetAttestationType() string
- func (m *Credential) GetAuthenticator() *Authenticator
- func (m *Credential) GetID() []byte
- func (m *Credential) GetPublicKey() []byte
- func (m *Credential) Marshal() (dAtA []byte, err error)
- func (m *Credential) MarshalTo(dAtA []byte) (int, error)
- func (m *Credential) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Credential) ProtoMessage()
- func (m *Credential) Reset()
- func (m *Credential) Size() (n int)
- func (m *Credential) String() string
- func (cred *Credential) ToWebAuthn() webauthn.Credential
- func (m *Credential) Unmarshal(dAtA []byte) error
- func (m *Credential) XXX_DiscardUnknown()
- func (m *Credential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Credential) XXX_Merge(src proto.Message)
- func (m *Credential) XXX_Size() int
- func (m *Credential) XXX_Unmarshal(b []byte) error
- type Error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetWhoIsList() []WhoIs
- 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 MintKeeper
- type MsgAccessApplication
- func (*MsgAccessApplication) Descriptor() ([]byte, []int)
- func (m *MsgAccessApplication) GetAppName() string
- func (m *MsgAccessApplication) GetCreator() string
- func (m *MsgAccessApplication) GetCredential() *Credential
- func (msg *MsgAccessApplication) GetSignBytes() []byte
- func (msg *MsgAccessApplication) GetSigners() []sdk.AccAddress
- func (m *MsgAccessApplication) Marshal() (dAtA []byte, err error)
- func (m *MsgAccessApplication) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAccessApplication) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAccessApplication) ProtoMessage()
- func (m *MsgAccessApplication) Reset()
- func (msg *MsgAccessApplication) Route() string
- func (m *MsgAccessApplication) Size() (n int)
- func (m *MsgAccessApplication) String() string
- func (msg *MsgAccessApplication) Type() string
- func (m *MsgAccessApplication) Unmarshal(dAtA []byte) error
- func (msg *MsgAccessApplication) ValidateBasic() error
- func (m *MsgAccessApplication) XXX_DiscardUnknown()
- func (m *MsgAccessApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAccessApplication) XXX_Merge(src proto.Message)
- func (m *MsgAccessApplication) XXX_Size() int
- func (m *MsgAccessApplication) XXX_Unmarshal(b []byte) error
- type MsgAccessApplicationResponse
- func (*MsgAccessApplicationResponse) Descriptor() ([]byte, []int)
- func (m *MsgAccessApplicationResponse) GetCode() int32
- func (m *MsgAccessApplicationResponse) GetMessage() string
- func (m *MsgAccessApplicationResponse) GetMetadata() map[string]string
- func (m *MsgAccessApplicationResponse) GetSession() *Session
- func (m *MsgAccessApplicationResponse) GetWhoIs() *WhoIs
- func (m *MsgAccessApplicationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAccessApplicationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAccessApplicationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAccessApplicationResponse) ProtoMessage()
- func (m *MsgAccessApplicationResponse) Reset()
- func (m *MsgAccessApplicationResponse) Size() (n int)
- func (m *MsgAccessApplicationResponse) String() string
- func (m *MsgAccessApplicationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAccessApplicationResponse) XXX_DiscardUnknown()
- func (m *MsgAccessApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAccessApplicationResponse) XXX_Merge(src proto.Message)
- func (m *MsgAccessApplicationResponse) XXX_Size() int
- func (m *MsgAccessApplicationResponse) XXX_Unmarshal(b []byte) error
- type MsgAccessName
- func (*MsgAccessName) Descriptor() ([]byte, []int)
- func (m *MsgAccessName) GetCreator() string
- func (m *MsgAccessName) GetCredential() *Credential
- func (m *MsgAccessName) GetName() string
- func (msg *MsgAccessName) GetSignBytes() []byte
- func (msg *MsgAccessName) GetSigners() []sdk.AccAddress
- func (m *MsgAccessName) Marshal() (dAtA []byte, err error)
- func (m *MsgAccessName) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAccessName) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAccessName) ProtoMessage()
- func (m *MsgAccessName) Reset()
- func (msg *MsgAccessName) Route() string
- func (m *MsgAccessName) Size() (n int)
- func (m *MsgAccessName) String() string
- func (msg *MsgAccessName) Type() string
- func (m *MsgAccessName) Unmarshal(dAtA []byte) error
- func (msg *MsgAccessName) ValidateBasic() error
- func (m *MsgAccessName) XXX_DiscardUnknown()
- func (m *MsgAccessName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAccessName) XXX_Merge(src proto.Message)
- func (m *MsgAccessName) XXX_Size() int
- func (m *MsgAccessName) XXX_Unmarshal(b []byte) error
- type MsgAccessNameResponse
- func (*MsgAccessNameResponse) Descriptor() ([]byte, []int)
- func (m *MsgAccessNameResponse) GetCode() int32
- func (m *MsgAccessNameResponse) GetMessage() string
- func (m *MsgAccessNameResponse) GetSession() *Session
- func (m *MsgAccessNameResponse) GetWhoIs() *WhoIs
- func (m *MsgAccessNameResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAccessNameResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAccessNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAccessNameResponse) ProtoMessage()
- func (m *MsgAccessNameResponse) Reset()
- func (m *MsgAccessNameResponse) Size() (n int)
- func (m *MsgAccessNameResponse) String() string
- func (m *MsgAccessNameResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAccessNameResponse) XXX_DiscardUnknown()
- func (m *MsgAccessNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAccessNameResponse) XXX_Merge(src proto.Message)
- func (m *MsgAccessNameResponse) XXX_Size() int
- func (m *MsgAccessNameResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateWhoIs
- func (*MsgCreateWhoIs) Descriptor() ([]byte, []int)
- func (m *MsgCreateWhoIs) GetCreator() string
- func (m *MsgCreateWhoIs) GetCredentials() []*Credential
- func (m *MsgCreateWhoIs) GetDid() string
- func (m *MsgCreateWhoIs) GetDocument() []byte
- func (m *MsgCreateWhoIs) GetName() string
- func (msg *MsgCreateWhoIs) GetSignBytes() []byte
- func (msg *MsgCreateWhoIs) GetSigners() []sdk.AccAddress
- func (m *MsgCreateWhoIs) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateWhoIs) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateWhoIs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateWhoIs) ProtoMessage()
- func (m *MsgCreateWhoIs) Reset()
- func (msg *MsgCreateWhoIs) Route() string
- func (m *MsgCreateWhoIs) Size() (n int)
- func (m *MsgCreateWhoIs) String() string
- func (msg *MsgCreateWhoIs) Type() string
- func (m *MsgCreateWhoIs) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateWhoIs) ValidateBasic() error
- func (m *MsgCreateWhoIs) XXX_DiscardUnknown()
- func (m *MsgCreateWhoIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateWhoIs) XXX_Merge(src proto.Message)
- func (m *MsgCreateWhoIs) XXX_Size() int
- func (m *MsgCreateWhoIs) XXX_Unmarshal(b []byte) error
- type MsgCreateWhoIsResponse
- func (*MsgCreateWhoIsResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateWhoIsResponse) GetCode() int32
- func (m *MsgCreateWhoIsResponse) GetMessage() string
- func (m *MsgCreateWhoIsResponse) GetWhoIs() *WhoIs
- func (m *MsgCreateWhoIsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateWhoIsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateWhoIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateWhoIsResponse) ProtoMessage()
- func (m *MsgCreateWhoIsResponse) Reset()
- func (m *MsgCreateWhoIsResponse) Size() (n int)
- func (m *MsgCreateWhoIsResponse) String() string
- func (m *MsgCreateWhoIsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateWhoIsResponse) XXX_DiscardUnknown()
- func (m *MsgCreateWhoIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateWhoIsResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateWhoIsResponse) XXX_Size() int
- func (m *MsgCreateWhoIsResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteWhoIs
- func (*MsgDeleteWhoIs) Descriptor() ([]byte, []int)
- func (m *MsgDeleteWhoIs) GetCreator() string
- func (m *MsgDeleteWhoIs) GetDid() string
- func (msg *MsgDeleteWhoIs) GetSignBytes() []byte
- func (msg *MsgDeleteWhoIs) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteWhoIs) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteWhoIs) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteWhoIs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteWhoIs) ProtoMessage()
- func (m *MsgDeleteWhoIs) Reset()
- func (msg *MsgDeleteWhoIs) Route() string
- func (m *MsgDeleteWhoIs) Size() (n int)
- func (m *MsgDeleteWhoIs) String() string
- func (msg *MsgDeleteWhoIs) Type() string
- func (m *MsgDeleteWhoIs) Unmarshal(dAtA []byte) error
- func (msg *MsgDeleteWhoIs) ValidateBasic() error
- func (m *MsgDeleteWhoIs) XXX_DiscardUnknown()
- func (m *MsgDeleteWhoIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteWhoIs) XXX_Merge(src proto.Message)
- func (m *MsgDeleteWhoIs) XXX_Size() int
- func (m *MsgDeleteWhoIs) XXX_Unmarshal(b []byte) error
- type MsgDeleteWhoIsResponse
- func (*MsgDeleteWhoIsResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteWhoIsResponse) GetCode() int32
- func (m *MsgDeleteWhoIsResponse) GetMessage() string
- func (m *MsgDeleteWhoIsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteWhoIsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteWhoIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteWhoIsResponse) ProtoMessage()
- func (m *MsgDeleteWhoIsResponse) Reset()
- func (m *MsgDeleteWhoIsResponse) Size() (n int)
- func (m *MsgDeleteWhoIsResponse) String() string
- func (m *MsgDeleteWhoIsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteWhoIsResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteWhoIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteWhoIsResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteWhoIsResponse) XXX_Size() int
- func (m *MsgDeleteWhoIsResponse) XXX_Unmarshal(b []byte) error
- type MsgRegisterApplication
- func (*MsgRegisterApplication) Descriptor() ([]byte, []int)
- func (m *MsgRegisterApplication) GetApplicationCategory() string
- func (m *MsgRegisterApplication) GetApplicationDescription() string
- func (m *MsgRegisterApplication) GetApplicationName() string
- func (m *MsgRegisterApplication) GetApplicationUrl() string
- func (m *MsgRegisterApplication) GetCreator() string
- func (m *MsgRegisterApplication) GetCredential() *Credential
- func (msg *MsgRegisterApplication) GetSignBytes() []byte
- func (msg *MsgRegisterApplication) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterApplication) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterApplication) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterApplication) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterApplication) ProtoMessage()
- func (m *MsgRegisterApplication) Reset()
- func (msg *MsgRegisterApplication) Route() string
- func (m *MsgRegisterApplication) Size() (n int)
- func (m *MsgRegisterApplication) String() string
- func (msg *MsgRegisterApplication) Type() string
- func (m *MsgRegisterApplication) Unmarshal(dAtA []byte) error
- func (msg *MsgRegisterApplication) ValidateBasic() error
- func (m *MsgRegisterApplication) XXX_DiscardUnknown()
- func (m *MsgRegisterApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterApplication) XXX_Merge(src proto.Message)
- func (m *MsgRegisterApplication) XXX_Size() int
- func (m *MsgRegisterApplication) XXX_Unmarshal(b []byte) error
- type MsgRegisterApplicationResponse
- func (*MsgRegisterApplicationResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterApplicationResponse) GetCode() int32
- func (m *MsgRegisterApplicationResponse) GetMessage() string
- func (m *MsgRegisterApplicationResponse) GetSession() *Session
- func (m *MsgRegisterApplicationResponse) GetWhoIs() *WhoIs
- func (m *MsgRegisterApplicationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterApplicationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterApplicationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterApplicationResponse) ProtoMessage()
- func (m *MsgRegisterApplicationResponse) Reset()
- func (m *MsgRegisterApplicationResponse) Size() (n int)
- func (m *MsgRegisterApplicationResponse) String() string
- func (m *MsgRegisterApplicationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterApplicationResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterApplicationResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterApplicationResponse) XXX_Size() int
- func (m *MsgRegisterApplicationResponse) XXX_Unmarshal(b []byte) error
- type MsgRegisterName
- func (*MsgRegisterName) Descriptor() ([]byte, []int)
- func (m *MsgRegisterName) GetCreator() string
- func (m *MsgRegisterName) GetCredential() *Credential
- func (m *MsgRegisterName) GetMetadata() map[string]string
- func (m *MsgRegisterName) GetNameToRegister() string
- func (msg *MsgRegisterName) GetSignBytes() []byte
- func (msg *MsgRegisterName) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterName) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterName) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterName) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterName) ProtoMessage()
- func (m *MsgRegisterName) Reset()
- func (msg *MsgRegisterName) Route() string
- func (m *MsgRegisterName) Size() (n int)
- func (m *MsgRegisterName) String() string
- func (msg *MsgRegisterName) Type() string
- func (m *MsgRegisterName) Unmarshal(dAtA []byte) error
- func (msg *MsgRegisterName) ValidateBasic() error
- func (m *MsgRegisterName) XXX_DiscardUnknown()
- func (m *MsgRegisterName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterName) XXX_Merge(src proto.Message)
- func (m *MsgRegisterName) XXX_Size() int
- func (m *MsgRegisterName) XXX_Unmarshal(b []byte) error
- type MsgRegisterNameResponse
- func (*MsgRegisterNameResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterNameResponse) GetCode() int32
- func (m *MsgRegisterNameResponse) GetMessage() string
- func (m *MsgRegisterNameResponse) GetSession() *Session
- func (m *MsgRegisterNameResponse) GetWhoIs() *WhoIs
- func (m *MsgRegisterNameResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterNameResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterNameResponse) ProtoMessage()
- func (m *MsgRegisterNameResponse) Reset()
- func (m *MsgRegisterNameResponse) Size() (n int)
- func (m *MsgRegisterNameResponse) String() string
- func (m *MsgRegisterNameResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterNameResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterNameResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterNameResponse) XXX_Size() int
- func (m *MsgRegisterNameResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateApplication
- func (*MsgUpdateApplication) Descriptor() ([]byte, []int)
- func (m *MsgUpdateApplication) GetCreator() string
- func (m *MsgUpdateApplication) GetDid() string
- func (m *MsgUpdateApplication) GetMetadata() map[string]string
- func (m *MsgUpdateApplication) GetSession() *Session
- func (msg *MsgUpdateApplication) GetSignBytes() []byte
- func (msg *MsgUpdateApplication) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateApplication) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateApplication) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateApplication) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateApplication) ProtoMessage()
- func (m *MsgUpdateApplication) Reset()
- func (msg *MsgUpdateApplication) Route() string
- func (m *MsgUpdateApplication) Size() (n int)
- func (m *MsgUpdateApplication) String() string
- func (msg *MsgUpdateApplication) Type() string
- func (m *MsgUpdateApplication) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateApplication) ValidateBasic() error
- func (m *MsgUpdateApplication) XXX_DiscardUnknown()
- func (m *MsgUpdateApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateApplication) XXX_Merge(src proto.Message)
- func (m *MsgUpdateApplication) XXX_Size() int
- func (m *MsgUpdateApplication) XXX_Unmarshal(b []byte) error
- type MsgUpdateApplicationResponse
- func (*MsgUpdateApplicationResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateApplicationResponse) GetCode() int32
- func (m *MsgUpdateApplicationResponse) GetMessage() string
- func (m *MsgUpdateApplicationResponse) GetMetadata() map[string]string
- func (m *MsgUpdateApplicationResponse) GetWhoIs() *WhoIs
- func (m *MsgUpdateApplicationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateApplicationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateApplicationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateApplicationResponse) ProtoMessage()
- func (m *MsgUpdateApplicationResponse) Reset()
- func (m *MsgUpdateApplicationResponse) Size() (n int)
- func (m *MsgUpdateApplicationResponse) String() string
- func (m *MsgUpdateApplicationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateApplicationResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateApplicationResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateApplicationResponse) XXX_Size() int
- func (m *MsgUpdateApplicationResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateName
- func (*MsgUpdateName) Descriptor() ([]byte, []int)
- func (m *MsgUpdateName) GetCreator() string
- func (m *MsgUpdateName) GetCredential() *Credential
- func (m *MsgUpdateName) GetDid() string
- func (m *MsgUpdateName) GetMetadata() map[string]string
- func (m *MsgUpdateName) GetSession() *Session
- func (msg *MsgUpdateName) GetSignBytes() []byte
- func (msg *MsgUpdateName) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateName) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateName) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateName) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateName) ProtoMessage()
- func (m *MsgUpdateName) Reset()
- func (msg *MsgUpdateName) Route() string
- func (m *MsgUpdateName) Size() (n int)
- func (m *MsgUpdateName) String() string
- func (msg *MsgUpdateName) Type() string
- func (m *MsgUpdateName) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateName) ValidateBasic() error
- func (m *MsgUpdateName) XXX_DiscardUnknown()
- func (m *MsgUpdateName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateName) XXX_Merge(src proto.Message)
- func (m *MsgUpdateName) XXX_Size() int
- func (m *MsgUpdateName) XXX_Unmarshal(b []byte) error
- type MsgUpdateNameResponse
- func (*MsgUpdateNameResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateNameResponse) GetCode() int32
- func (m *MsgUpdateNameResponse) GetMessage() string
- func (m *MsgUpdateNameResponse) GetWhoIs() *WhoIs
- func (m *MsgUpdateNameResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateNameResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateNameResponse) ProtoMessage()
- func (m *MsgUpdateNameResponse) Reset()
- func (m *MsgUpdateNameResponse) Size() (n int)
- func (m *MsgUpdateNameResponse) String() string
- func (m *MsgUpdateNameResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateNameResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateNameResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateNameResponse) XXX_Size() int
- func (m *MsgUpdateNameResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateWhoIs
- func (*MsgUpdateWhoIs) Descriptor() ([]byte, []int)
- func (m *MsgUpdateWhoIs) GetCreator() string
- func (m *MsgUpdateWhoIs) GetCredentials() []*Credential
- func (m *MsgUpdateWhoIs) GetDid() string
- func (m *MsgUpdateWhoIs) GetDocument() []byte
- func (msg *MsgUpdateWhoIs) GetSignBytes() []byte
- func (msg *MsgUpdateWhoIs) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateWhoIs) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateWhoIs) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateWhoIs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateWhoIs) ProtoMessage()
- func (m *MsgUpdateWhoIs) Reset()
- func (msg *MsgUpdateWhoIs) Route() string
- func (m *MsgUpdateWhoIs) Size() (n int)
- func (m *MsgUpdateWhoIs) String() string
- func (msg *MsgUpdateWhoIs) Type() string
- func (m *MsgUpdateWhoIs) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateWhoIs) ValidateBasic() error
- func (m *MsgUpdateWhoIs) XXX_DiscardUnknown()
- func (m *MsgUpdateWhoIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateWhoIs) XXX_Merge(src proto.Message)
- func (m *MsgUpdateWhoIs) XXX_Size() int
- func (m *MsgUpdateWhoIs) XXX_Unmarshal(b []byte) error
- type MsgUpdateWhoIsResponse
- func (*MsgUpdateWhoIsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateWhoIsResponse) GetCode() int32
- func (m *MsgUpdateWhoIsResponse) GetMessage() string
- func (m *MsgUpdateWhoIsResponse) GetWhoIs() *WhoIs
- func (m *MsgUpdateWhoIsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateWhoIsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateWhoIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateWhoIsResponse) ProtoMessage()
- func (m *MsgUpdateWhoIsResponse) Reset()
- func (m *MsgUpdateWhoIsResponse) Size() (n int)
- func (m *MsgUpdateWhoIsResponse) String() string
- func (m *MsgUpdateWhoIsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateWhoIsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateWhoIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateWhoIsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateWhoIsResponse) XXX_Size() int
- func (m *MsgUpdateWhoIsResponse) 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 (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p 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 QueryAllWhoIsRequest
- func (*QueryAllWhoIsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllWhoIsRequest) GetPagination() *query.PageRequest
- func (m *QueryAllWhoIsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllWhoIsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllWhoIsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllWhoIsRequest) ProtoMessage()
- func (m *QueryAllWhoIsRequest) Reset()
- func (m *QueryAllWhoIsRequest) Size() (n int)
- func (m *QueryAllWhoIsRequest) String() string
- func (m *QueryAllWhoIsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllWhoIsRequest) XXX_DiscardUnknown()
- func (m *QueryAllWhoIsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllWhoIsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllWhoIsRequest) XXX_Size() int
- func (m *QueryAllWhoIsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllWhoIsResponse
- func (*QueryAllWhoIsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllWhoIsResponse) GetPagination() *query.PageResponse
- func (m *QueryAllWhoIsResponse) GetWhoIs() []WhoIs
- func (m *QueryAllWhoIsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllWhoIsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllWhoIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllWhoIsResponse) ProtoMessage()
- func (m *QueryAllWhoIsResponse) Reset()
- func (m *QueryAllWhoIsResponse) Size() (n int)
- func (m *QueryAllWhoIsResponse) String() string
- func (m *QueryAllWhoIsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllWhoIsResponse) XXX_DiscardUnknown()
- func (m *QueryAllWhoIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllWhoIsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllWhoIsResponse) XXX_Size() int
- func (m *QueryAllWhoIsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetWhoIsRequest
- func (*QueryGetWhoIsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetWhoIsRequest) GetIndex() string
- func (m *QueryGetWhoIsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetWhoIsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetWhoIsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetWhoIsRequest) ProtoMessage()
- func (m *QueryGetWhoIsRequest) Reset()
- func (m *QueryGetWhoIsRequest) Size() (n int)
- func (m *QueryGetWhoIsRequest) String() string
- func (m *QueryGetWhoIsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetWhoIsRequest) XXX_DiscardUnknown()
- func (m *QueryGetWhoIsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetWhoIsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetWhoIsRequest) XXX_Size() int
- func (m *QueryGetWhoIsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetWhoIsResponse
- func (*QueryGetWhoIsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetWhoIsResponse) GetWhoIs() WhoIs
- func (m *QueryGetWhoIsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetWhoIsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetWhoIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetWhoIsResponse) ProtoMessage()
- func (m *QueryGetWhoIsResponse) Reset()
- func (m *QueryGetWhoIsResponse) Size() (n int)
- func (m *QueryGetWhoIsResponse) String() string
- func (m *QueryGetWhoIsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetWhoIsResponse) XXX_DiscardUnknown()
- func (m *QueryGetWhoIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetWhoIsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetWhoIsResponse) XXX_Size() int
- func (m *QueryGetWhoIsResponse) XXX_Unmarshal(b []byte) error
- 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 Session
- func (s *Session) BaseDID() (*did.DID, error)
- func (s *Session) Creator() string
- func (s *Session) DIDDocument() (*did.Document, error)
- func (*Session) Descriptor() ([]byte, []int)
- func (s *Session) GenerateDID(opts ...did.Option) (*did.DID, error)
- func (m *Session) GetBaseDid() string
- func (m *Session) GetCredential() *Credential
- func (m *Session) GetWhois() *WhoIs
- func (m *Session) Marshal() (dAtA []byte, err error)
- func (m *Session) MarshalTo(dAtA []byte) (int, error)
- func (m *Session) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Session) ProtoMessage()
- func (m *Session) Reset()
- func (m *Session) Size() (n int)
- func (m *Session) String() string
- func (m *Session) Unmarshal(dAtA []byte) error
- func (s *Session) WebAuthnCredential() webauthn.Credential
- func (m *Session) XXX_DiscardUnknown()
- func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Session) XXX_Merge(src proto.Message)
- func (m *Session) XXX_Size() int
- func (m *Session) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AccessApplication(ctx context.Context, req *MsgAccessApplication) (*MsgAccessApplicationResponse, error)
- func (*UnimplementedMsgServer) AccessName(ctx context.Context, req *MsgAccessName) (*MsgAccessNameResponse, error)
- func (*UnimplementedMsgServer) CreateWhoIs(ctx context.Context, req *MsgCreateWhoIs) (*MsgCreateWhoIsResponse, error)
- func (*UnimplementedMsgServer) DeleteWhoIs(ctx context.Context, req *MsgDeleteWhoIs) (*MsgDeleteWhoIsResponse, error)
- func (*UnimplementedMsgServer) RegisterApplication(ctx context.Context, req *MsgRegisterApplication) (*MsgRegisterApplicationResponse, error)
- func (*UnimplementedMsgServer) RegisterName(ctx context.Context, req *MsgRegisterName) (*MsgRegisterNameResponse, error)
- func (*UnimplementedMsgServer) UpdateApplication(ctx context.Context, req *MsgUpdateApplication) (*MsgUpdateApplicationResponse, error)
- func (*UnimplementedMsgServer) UpdateName(ctx context.Context, req *MsgUpdateName) (*MsgUpdateNameResponse, error)
- func (*UnimplementedMsgServer) UpdateWhoIs(ctx context.Context, req *MsgUpdateWhoIs) (*MsgUpdateWhoIsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) WhoIs(ctx context.Context, req *QueryGetWhoIsRequest) (*QueryGetWhoIsResponse, error)
- func (*UnimplementedQueryServer) WhoIsAll(ctx context.Context, req *QueryAllWhoIsRequest) (*QueryAllWhoIsResponse, error)
- type WhoIs
- func (w *WhoIs) AddCredential(cred *Credential)
- func (w *WhoIs) ApplicationCategory() (string, error)
- func (w *WhoIs) ApplicationDescription() (string, error)
- func (w *WhoIs) ApplicationName() (string, error)
- func (w *WhoIs) ApplicationUrl() (string, error)
- func (w *WhoIs) CredentialExcludeList() []protocol.CredentialDescriptor
- func (w *WhoIs) DIDDocument() (*did.Document, error)
- func (w *WhoIs) DIDUrl() (*did.DID, error)
- func (*WhoIs) Descriptor() ([]byte, []int)
- func (m *WhoIs) GetCreator() string
- func (m *WhoIs) GetCredentials() []*Credential
- func (m *WhoIs) GetDid() string
- func (m *WhoIs) GetDocument() []byte
- func (m *WhoIs) GetIsActive() bool
- func (m *WhoIs) GetMetadata() map[string]string
- func (m *WhoIs) GetName() string
- func (m *WhoIs) GetTimestamp() int64
- func (m *WhoIs) GetType() WhoIs_Type
- func (w *WhoIs) IsApplication() bool
- func (w *WhoIs) IsUser() bool
- func (m *WhoIs) Marshal() (dAtA []byte, err error)
- func (m *WhoIs) MarshalTo(dAtA []byte) (int, error)
- func (m *WhoIs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WhoIs) ProtoMessage()
- func (m *WhoIs) Reset()
- func (m *WhoIs) Size() (n int)
- func (m *WhoIs) String() string
- func (m *WhoIs) Unmarshal(dAtA []byte) error
- func (w *WhoIs) WebAuthnCredentials() []webauthn.Credential
- func (w *WhoIs) WebAuthnDisplayName() string
- func (w *WhoIs) WebAuthnID() []byte
- func (w *WhoIs) WebAuthnIcon() string
- func (w *WhoIs) WebAuthnName() string
- func (m *WhoIs) XXX_DiscardUnknown()
- func (m *WhoIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WhoIs) XXX_Merge(src proto.Message)
- func (m *WhoIs) XXX_Size() int
- func (m *WhoIs) XXX_Unmarshal(b []byte) error
- type WhoIs_Type
Constants ¶
const ( // ModuleName defines the module name ModuleName = "registry" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_registry" )
const ( TypeMsgCreateWhoIs = "create_who_is" TypeMsgUpdateWhoIs = "update_who_is" TypeMsgDeleteWhoIs = "delete_who_is" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const TypeMsgAccessApplication = "access_application"
const TypeMsgAccessName = "access_name"
const TypeMsgRegisterApplication = "register_application"
const TypeMsgRegisterName = "register_name"
const TypeMsgUpdateApplication = "update_application"
const TypeMsgUpdateName = "update_name"
const (
// WhoIsKeyPrefix is the prefix to retrieve all WhoIs
WhoIsKeyPrefix = "WhoIs/value/"
)
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthCredential = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCredential = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCredential = fmt.Errorf("proto: unexpected end of group") )
var ( // Validator Errors ErrNameTooShort = sdkerrors.Register(ModuleName, 1100, "Provided Sonr Name is Too Short") ErrNameInvalid = sdkerrors.Register(ModuleName, 1101, "Provided Sonr Name contains invalid characters") ErrNameRegistered = sdkerrors.Register(ModuleName, 1102, "Provided Sonr Name has already been registered") ErrInvalidWhoisType = sdkerrors.Register(ModuleName, 1103, "Returned whois type for name is not of required type") // COSEKey Errors ErrDecodeAttestedCredentialData = Error{/* contains filtered or unexported fields */} ErrDecodeAuthenticatorData = Error{/* contains filtered or unexported fields */} ErrDecodeCOSEKey = Error{/* contains filtered or unexported fields */} ErrECDAANotSupported = Error{/* contains filtered or unexported fields */} ErrEncodeAttestedCredentialData = Error{/* contains filtered or unexported fields */} ErrEncodeAuthenticatorData = Error{/* contains filtered or unexported fields */} ErrGenerateChallenge = Error{/* contains filtered or unexported fields */} ErrMarshalAttestationObject = Error{/* contains filtered or unexported fields */} ErrOption = Error{/* contains filtered or unexported fields */} ErrNotImplemented = Error{/* contains filtered or unexported fields */} ErrUnmarshalAttestationObject = Error{/* contains filtered or unexported fields */} ErrVerifyAttestation = Error{/* contains filtered or unexported fields */} ErrVerifyAuthentication = Error{/* contains filtered or unexported fields */} ErrVerifyClientExtensionOutput = Error{/* contains filtered or unexported fields */} ErrVerifyRegistration = Error{/* contains filtered or unexported fields */} ErrVerifySignature = Error{/* contains filtered or unexported fields */} )
x/registry module sentinel 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 ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = 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 ( ErrInvalidLengthWhoIs = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowWhoIs = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupWhoIs = fmt.Errorf("proto: unexpected end of group") )
var WhoIs_Type_name = map[int32]string{
0: "User",
1: "Application",
}
var WhoIs_Type_value = map[string]int32{
"User": 0,
"Application": 1,
}
Functions ¶
func CleanNameForSuffix ¶ added in v0.0.3
CleanName checks if the username is available
func DecodePublicKey ¶ added in v0.0.3
DecodePublicKey parses a crypto.PublicKey from a COSEKey
func GenerateApplicationDid ¶ added in v0.0.7
func GenerateApplicationDid(accountAddr, appToRegister string, cred *Credential) (*did.Document, error)
GenerateNameDid generates a new did document
func GenerateNameDid ¶ added in v0.0.7
func GenerateNameDid(accountAddr, nameToRegister string, cred *Credential) (*did.Document, error)
GenerateNameDid generates a new did document
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 ValidateAppName ¶ added in v0.0.7
ValidateAppName checks if the given name to register is correct length and valid characters
func ValidateName ¶ added in v0.0.7
ValidateName checks if the given name to register is correct length and valid characters
func VerifySignature ¶ added in v0.0.3
VerifySignature verifies a signature using a provided COSEKey, message, and signature
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type Authenticator ¶ added in v0.0.3
type Authenticator struct { // The AAGUID of the authenticator. An AAGUID is defined as an array containing the globally unique // identifier of the authenticator model being sought. Aaguid []byte `protobuf:"bytes,1,opt,name=aaguid,proto3" json:"aaguid,omitempty"` // SignCount -Upon a new login operation, the Relying Party compares the stored signature counter value // with the new sign_count value returned in the assertion’s authenticator data. If this new // signCount value is less than or equal to the stored value, a cloned authenticator may // exist, or the authenticator may be malfunctioning. SignCount uint32 `protobuf:"varint,2,opt,name=sign_count,json=signCount,proto3" json:"sign_count,omitempty"` // CloneWarning - This is a signal that the authenticator may be cloned, i.e. at least two copies of the // credential private key may exist and are being used in parallel. Relying Parties should incorporate // this information into their risk scoring. Whether the Relying Party updates the stored signature // counter value in this case, or not, or fails the authentication ceremony or not, is Relying Party-specific. CloneWarning bool `protobuf:"varint,3,opt,name=clone_warning,json=cloneWarning,proto3" json:"clone_warning,omitempty"` }
func ConvertToSonrAuthenticator ¶ added in v0.0.3
func ConvertToSonrAuthenticator(auth webauthn.Authenticator) *Authenticator
ConvertToSonrAuthenticator converts a webauthn.Authenticator to a sonrio.sonr.registry.Authenticator
func (*Authenticator) Descriptor ¶ added in v0.0.3
func (*Authenticator) Descriptor() ([]byte, []int)
func (*Authenticator) GetAaguid ¶ added in v0.0.3
func (m *Authenticator) GetAaguid() []byte
func (*Authenticator) GetCloneWarning ¶ added in v0.0.3
func (m *Authenticator) GetCloneWarning() bool
func (*Authenticator) GetSignCount ¶ added in v0.0.3
func (m *Authenticator) GetSignCount() uint32
func (*Authenticator) Marshal ¶ added in v0.0.3
func (m *Authenticator) Marshal() (dAtA []byte, err error)
func (*Authenticator) MarshalTo ¶ added in v0.0.3
func (m *Authenticator) MarshalTo(dAtA []byte) (int, error)
func (*Authenticator) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *Authenticator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Authenticator) ProtoMessage ¶ added in v0.0.3
func (*Authenticator) ProtoMessage()
func (*Authenticator) Reset ¶ added in v0.0.3
func (m *Authenticator) Reset()
func (*Authenticator) Size ¶ added in v0.0.3
func (m *Authenticator) Size() (n int)
func (*Authenticator) String ¶ added in v0.0.3
func (m *Authenticator) String() string
func (*Authenticator) ToWebAuthn ¶ added in v0.0.3
func (auth *Authenticator) ToWebAuthn() webauthn.Authenticator
ToWebAuthn converts a sonrio.sonr.registry.Authenticator to a webauthn.Authenticator
func (*Authenticator) Unmarshal ¶ added in v0.0.3
func (m *Authenticator) Unmarshal(dAtA []byte) error
func (*Authenticator) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *Authenticator) XXX_DiscardUnknown()
func (*Authenticator) XXX_Marshal ¶ added in v0.0.3
func (m *Authenticator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Authenticator) XXX_Merge ¶ added in v0.0.3
func (m *Authenticator) XXX_Merge(src proto.Message)
func (*Authenticator) XXX_Size ¶ added in v0.0.3
func (m *Authenticator) XXX_Size() int
func (*Authenticator) XXX_Unmarshal ¶ added in v0.0.3
func (m *Authenticator) XXX_Unmarshal(b []byte) error
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type COSEAlgorithmIdentifier ¶ added in v0.0.3
type COSEAlgorithmIdentifier int
COSEAlgorithmIdentifier is a number identifying a cryptographic algorithm
const ( AlgorithmRS1 COSEAlgorithmIdentifier = -65535 AlgorithmRS512 COSEAlgorithmIdentifier = -259 AlgorithmRS384 COSEAlgorithmIdentifier = -258 AlgorithmRS256 COSEAlgorithmIdentifier = -257 AlgorithmPS512 COSEAlgorithmIdentifier = -39 AlgorithmPS384 COSEAlgorithmIdentifier = -38 AlgorithmPS256 COSEAlgorithmIdentifier = -37 AlgorithmES512 COSEAlgorithmIdentifier = -36 AlgorithmES384 COSEAlgorithmIdentifier = -35 AlgorithmEdDSA COSEAlgorithmIdentifier = -8 AlgorithmES256 COSEAlgorithmIdentifier = -7 )
enum values for COSEAlgorithmIdentifier type
type COSEEllipticCurve ¶ added in v0.0.3
type COSEEllipticCurve int
COSEEllipticCurve is a number identifying an elliptic curve
const ( CurveP256 COSEEllipticCurve = 1 CurveP384 COSEEllipticCurve = 2 CurveP521 COSEEllipticCurve = 3 )
enum values for COSEEllipticCurve type
type COSEKey ¶ added in v0.0.3
type COSEKey struct { Kty int `cbor:"1,keyasint,omitempty"` Kid []byte `cbor:"2,keyasint,omitempty"` Alg int `cbor:"3,keyasint,omitempty"` KeyOpts int `cbor:"4,keyasint,omitempty"` IV []byte `cbor:"5,keyasint,omitempty"` CrvOrNOrK cbor.RawMessage `cbor:"-1,keyasint,omitempty"` // K for symmetric keys, Crv for elliptic curve keys, N for RSA modulus XOrE cbor.RawMessage `cbor:"-2,keyasint,omitempty"` // X for curve x-coordinate, E for RSA public exponent Y cbor.RawMessage `cbor:"-3,keyasint,omitempty"` // Y for curve y-cooridate D []byte `cbor:"-4,keyasint,omitempty"` }
COSEKey represents a key decoded from COSE format.
type COSEKeyType ¶ added in v0.0.3
type COSEKeyType int
COSEKeyType is a number identifying a key type
const ( KeyTypeOKP COSEKeyType = 1 KeyTypeEC2 COSEKeyType = 2 KeyTypeRSA COSEKeyType = 3 )
enum values for COSEKeyType type
type CapabilityKeeper ¶
type CapabilityKeeper interface { }
type Credential ¶ added in v0.0.3
type Credential struct { // A probabilistically-unique byte sequence identifying a public key credential source and its authentication assertions. ID []byte `protobuf:"bytes,1,opt,name=i_d,json=iD,proto3" json:"i_d,omitempty"` // The public key portion of a Relying Party-specific credential key pair, generated by an authenticator and returned to // a Relying Party at registration time (see also public key credential). The private key portion of the credential key // pair is known as the credential private key. Note that in the case of self attestation, the credential key pair is also // used as the attestation key pair, see self attestation for details. PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // The attestation format used (if any) by the authenticator when creating the credential. AttestationType string `protobuf:"bytes,3,opt,name=attestation_type,json=attestationType,proto3" json:"attestation_type,omitempty"` // The Authenticator information for a given certificate Authenticator *Authenticator `protobuf:"bytes,4,opt,name=authenticator,proto3" json:"authenticator,omitempty"` }
func ConvertToSonrCredential ¶ added in v0.0.3
func ConvertToSonrCredential(cred webauthn.Credential) *Credential
ConvertToSonrCredential converts a webauthn.Credential to a sonrio.sonr.registry.Credential
func (*Credential) DecodePublicKey ¶ added in v0.0.3
func (cred *Credential) DecodePublicKey() (crypto.PublicKey, error)
DecodePublicKey converts a public key from a CBOR encoded byte array to a crypto.PublicKey
func (*Credential) Descriptor ¶ added in v0.0.3
func (*Credential) Descriptor() ([]byte, []int)
func (*Credential) GetAttestationType ¶ added in v0.0.3
func (m *Credential) GetAttestationType() string
func (*Credential) GetAuthenticator ¶ added in v0.0.3
func (m *Credential) GetAuthenticator() *Authenticator
func (*Credential) GetID ¶ added in v0.0.3
func (m *Credential) GetID() []byte
func (*Credential) GetPublicKey ¶ added in v0.0.3
func (m *Credential) GetPublicKey() []byte
func (*Credential) Marshal ¶ added in v0.0.3
func (m *Credential) Marshal() (dAtA []byte, err error)
func (*Credential) MarshalTo ¶ added in v0.0.3
func (m *Credential) MarshalTo(dAtA []byte) (int, error)
func (*Credential) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *Credential) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Credential) ProtoMessage ¶ added in v0.0.3
func (*Credential) ProtoMessage()
func (*Credential) Reset ¶ added in v0.0.3
func (m *Credential) Reset()
func (*Credential) Size ¶ added in v0.0.3
func (m *Credential) Size() (n int)
func (*Credential) String ¶ added in v0.0.3
func (m *Credential) String() string
func (*Credential) ToWebAuthn ¶ added in v0.0.3
func (cred *Credential) ToWebAuthn() webauthn.Credential
ToWebAuthn converts a sonrio.sonr.registry.Credential to a webauthn.Credential
func (*Credential) Unmarshal ¶ added in v0.0.3
func (m *Credential) Unmarshal(dAtA []byte) error
func (*Credential) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *Credential) XXX_DiscardUnknown()
func (*Credential) XXX_Marshal ¶ added in v0.0.3
func (m *Credential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Credential) XXX_Merge ¶ added in v0.0.3
func (m *Credential) XXX_Merge(src proto.Message)
func (*Credential) XXX_Size ¶ added in v0.0.3
func (m *Credential) XXX_Size() int
func (*Credential) XXX_Unmarshal ¶ added in v0.0.3
func (m *Credential) XXX_Unmarshal(b []byte) error
type Error ¶ added in v0.0.3
type Error struct {
// contains filtered or unexported fields
}
Error represents an error in a WebAuthn relying party operation
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` WhoIsList []WhoIs `protobuf:"bytes,2,rep,name=whoIsList,proto3" json:"whoIsList"` }
GenesisState defines the registry 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) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetWhoIsList ¶
func (m *GenesisState) GetWhoIsList() []WhoIs
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 MintKeeper ¶
type MintKeeper interface { }
type MsgAccessApplication ¶ added in v0.0.7
type MsgAccessApplication struct { // The account that is accessing the Application Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // The name of the Application to access AppName string `protobuf:"bytes,2,opt,name=appName,proto3" json:"appName,omitempty"` // Client side JSON Web Token for AssertionMethod Credential *Credential `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` }
func NewMsgAccessApplication ¶ added in v0.0.7
func NewMsgAccessApplication(creator string, appName string) *MsgAccessApplication
func (*MsgAccessApplication) Descriptor ¶ added in v0.0.7
func (*MsgAccessApplication) Descriptor() ([]byte, []int)
func (*MsgAccessApplication) GetAppName ¶ added in v0.0.7
func (m *MsgAccessApplication) GetAppName() string
func (*MsgAccessApplication) GetCreator ¶ added in v0.0.7
func (m *MsgAccessApplication) GetCreator() string
func (*MsgAccessApplication) GetCredential ¶ added in v0.0.8
func (m *MsgAccessApplication) GetCredential() *Credential
func (*MsgAccessApplication) GetSignBytes ¶ added in v0.0.7
func (msg *MsgAccessApplication) GetSignBytes() []byte
func (*MsgAccessApplication) GetSigners ¶ added in v0.0.7
func (msg *MsgAccessApplication) GetSigners() []sdk.AccAddress
func (*MsgAccessApplication) Marshal ¶ added in v0.0.7
func (m *MsgAccessApplication) Marshal() (dAtA []byte, err error)
func (*MsgAccessApplication) MarshalTo ¶ added in v0.0.7
func (m *MsgAccessApplication) MarshalTo(dAtA []byte) (int, error)
func (*MsgAccessApplication) MarshalToSizedBuffer ¶ added in v0.0.7
func (m *MsgAccessApplication) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAccessApplication) ProtoMessage ¶ added in v0.0.7
func (*MsgAccessApplication) ProtoMessage()
func (*MsgAccessApplication) Reset ¶ added in v0.0.7
func (m *MsgAccessApplication) Reset()
func (*MsgAccessApplication) Route ¶ added in v0.0.7
func (msg *MsgAccessApplication) Route() string
func (*MsgAccessApplication) Size ¶ added in v0.0.7
func (m *MsgAccessApplication) Size() (n int)
func (*MsgAccessApplication) String ¶ added in v0.0.7
func (m *MsgAccessApplication) String() string
func (*MsgAccessApplication) Type ¶ added in v0.0.7
func (msg *MsgAccessApplication) Type() string
func (*MsgAccessApplication) Unmarshal ¶ added in v0.0.7
func (m *MsgAccessApplication) Unmarshal(dAtA []byte) error
func (*MsgAccessApplication) ValidateBasic ¶ added in v0.0.7
func (msg *MsgAccessApplication) ValidateBasic() error
func (*MsgAccessApplication) XXX_DiscardUnknown ¶ added in v0.0.7
func (m *MsgAccessApplication) XXX_DiscardUnknown()
func (*MsgAccessApplication) XXX_Marshal ¶ added in v0.0.7
func (m *MsgAccessApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAccessApplication) XXX_Merge ¶ added in v0.0.7
func (m *MsgAccessApplication) XXX_Merge(src proto.Message)
func (*MsgAccessApplication) XXX_Size ¶ added in v0.0.7
func (m *MsgAccessApplication) XXX_Size() int
func (*MsgAccessApplication) XXX_Unmarshal ¶ added in v0.0.7
func (m *MsgAccessApplication) XXX_Unmarshal(b []byte) error
type MsgAccessApplicationResponse ¶ added in v0.0.7
type MsgAccessApplicationResponse struct { // Code of the response Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // Message of the response Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Data of the response Metadata map[string]string `` /* 157-byte string literal not displayed */ // WhoIs for the registered name WhoIs *WhoIs `protobuf:"bytes,4,opt,name=whoIs,proto3" json:"whoIs,omitempty"` // Session returns the session for the name Session *Session `protobuf:"bytes,5,opt,name=session,proto3" json:"session,omitempty"` }
func (*MsgAccessApplicationResponse) Descriptor ¶ added in v0.0.7
func (*MsgAccessApplicationResponse) Descriptor() ([]byte, []int)
func (*MsgAccessApplicationResponse) GetCode ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) GetCode() int32
func (*MsgAccessApplicationResponse) GetMessage ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) GetMessage() string
func (*MsgAccessApplicationResponse) GetMetadata ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) GetMetadata() map[string]string
func (*MsgAccessApplicationResponse) GetSession ¶ added in v0.0.8
func (m *MsgAccessApplicationResponse) GetSession() *Session
func (*MsgAccessApplicationResponse) GetWhoIs ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) GetWhoIs() *WhoIs
func (*MsgAccessApplicationResponse) Marshal ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) Marshal() (dAtA []byte, err error)
func (*MsgAccessApplicationResponse) MarshalTo ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAccessApplicationResponse) MarshalToSizedBuffer ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAccessApplicationResponse) ProtoMessage ¶ added in v0.0.7
func (*MsgAccessApplicationResponse) ProtoMessage()
func (*MsgAccessApplicationResponse) Reset ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) Reset()
func (*MsgAccessApplicationResponse) Size ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) Size() (n int)
func (*MsgAccessApplicationResponse) String ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) String() string
func (*MsgAccessApplicationResponse) Unmarshal ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) Unmarshal(dAtA []byte) error
func (*MsgAccessApplicationResponse) XXX_DiscardUnknown ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) XXX_DiscardUnknown()
func (*MsgAccessApplicationResponse) XXX_Marshal ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAccessApplicationResponse) XXX_Merge ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) XXX_Merge(src proto.Message)
func (*MsgAccessApplicationResponse) XXX_Size ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) XXX_Size() int
func (*MsgAccessApplicationResponse) XXX_Unmarshal ¶ added in v0.0.7
func (m *MsgAccessApplicationResponse) XXX_Unmarshal(b []byte) error
type MsgAccessName ¶
type MsgAccessName struct { // The account that is accessing the name Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // The name to access Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Client side JSON Web Token for AssertionMethod Credential *Credential `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` }
MsgAccessName defines the MsgAccessName transaction.
func NewMsgAccessName ¶
func NewMsgAccessName(creator string, name string, c *Credential) *MsgAccessName
func (*MsgAccessName) Descriptor ¶
func (*MsgAccessName) Descriptor() ([]byte, []int)
func (*MsgAccessName) GetCreator ¶
func (m *MsgAccessName) GetCreator() string
func (*MsgAccessName) GetCredential ¶ added in v0.0.8
func (m *MsgAccessName) GetCredential() *Credential
func (*MsgAccessName) GetName ¶
func (m *MsgAccessName) GetName() string
func (*MsgAccessName) GetSignBytes ¶
func (msg *MsgAccessName) GetSignBytes() []byte
func (*MsgAccessName) GetSigners ¶
func (msg *MsgAccessName) GetSigners() []sdk.AccAddress
func (*MsgAccessName) Marshal ¶
func (m *MsgAccessName) Marshal() (dAtA []byte, err error)
func (*MsgAccessName) MarshalToSizedBuffer ¶
func (m *MsgAccessName) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAccessName) ProtoMessage ¶
func (*MsgAccessName) ProtoMessage()
func (*MsgAccessName) Reset ¶
func (m *MsgAccessName) Reset()
func (*MsgAccessName) Route ¶
func (msg *MsgAccessName) Route() string
func (*MsgAccessName) Size ¶
func (m *MsgAccessName) Size() (n int)
func (*MsgAccessName) String ¶
func (m *MsgAccessName) String() string
func (*MsgAccessName) Type ¶
func (msg *MsgAccessName) Type() string
func (*MsgAccessName) Unmarshal ¶
func (m *MsgAccessName) Unmarshal(dAtA []byte) error
func (*MsgAccessName) ValidateBasic ¶
func (msg *MsgAccessName) ValidateBasic() error
func (*MsgAccessName) XXX_DiscardUnknown ¶
func (m *MsgAccessName) XXX_DiscardUnknown()
func (*MsgAccessName) XXX_Marshal ¶
func (m *MsgAccessName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAccessName) XXX_Merge ¶
func (m *MsgAccessName) XXX_Merge(src proto.Message)
func (*MsgAccessName) XXX_Size ¶
func (m *MsgAccessName) XXX_Size() int
func (*MsgAccessName) XXX_Unmarshal ¶
func (m *MsgAccessName) XXX_Unmarshal(b []byte) error
type MsgAccessNameResponse ¶
type MsgAccessNameResponse struct { // Code of the response Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // Message of the response Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // WhoIs for the registered name WhoIs *WhoIs `protobuf:"bytes,3,opt,name=whoIs,proto3" json:"whoIs,omitempty"` // Session returns the session for the name Session *Session `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"` }
func (*MsgAccessNameResponse) Descriptor ¶
func (*MsgAccessNameResponse) Descriptor() ([]byte, []int)
func (*MsgAccessNameResponse) GetCode ¶ added in v0.0.8
func (m *MsgAccessNameResponse) GetCode() int32
func (*MsgAccessNameResponse) GetMessage ¶ added in v0.0.8
func (m *MsgAccessNameResponse) GetMessage() string
func (*MsgAccessNameResponse) GetSession ¶ added in v0.0.8
func (m *MsgAccessNameResponse) GetSession() *Session
func (*MsgAccessNameResponse) GetWhoIs ¶ added in v0.0.3
func (m *MsgAccessNameResponse) GetWhoIs() *WhoIs
func (*MsgAccessNameResponse) Marshal ¶
func (m *MsgAccessNameResponse) Marshal() (dAtA []byte, err error)
func (*MsgAccessNameResponse) MarshalTo ¶
func (m *MsgAccessNameResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAccessNameResponse) MarshalToSizedBuffer ¶
func (m *MsgAccessNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAccessNameResponse) ProtoMessage ¶
func (*MsgAccessNameResponse) ProtoMessage()
func (*MsgAccessNameResponse) Reset ¶
func (m *MsgAccessNameResponse) Reset()
func (*MsgAccessNameResponse) Size ¶
func (m *MsgAccessNameResponse) Size() (n int)
func (*MsgAccessNameResponse) String ¶
func (m *MsgAccessNameResponse) String() string
func (*MsgAccessNameResponse) Unmarshal ¶
func (m *MsgAccessNameResponse) Unmarshal(dAtA []byte) error
func (*MsgAccessNameResponse) XXX_DiscardUnknown ¶
func (m *MsgAccessNameResponse) XXX_DiscardUnknown()
func (*MsgAccessNameResponse) XXX_Marshal ¶
func (m *MsgAccessNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAccessNameResponse) XXX_Merge ¶
func (m *MsgAccessNameResponse) XXX_Merge(src proto.Message)
func (*MsgAccessNameResponse) XXX_Size ¶
func (m *MsgAccessNameResponse) XXX_Size() int
func (*MsgAccessNameResponse) XXX_Unmarshal ¶
func (m *MsgAccessNameResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { RegisterApplication(ctx context.Context, in *MsgRegisterApplication, opts ...grpc.CallOption) (*MsgRegisterApplicationResponse, error) RegisterName(ctx context.Context, in *MsgRegisterName, opts ...grpc.CallOption) (*MsgRegisterNameResponse, error) AccessName(ctx context.Context, in *MsgAccessName, opts ...grpc.CallOption) (*MsgAccessNameResponse, error) UpdateName(ctx context.Context, in *MsgUpdateName, opts ...grpc.CallOption) (*MsgUpdateNameResponse, error) AccessApplication(ctx context.Context, in *MsgAccessApplication, opts ...grpc.CallOption) (*MsgAccessApplicationResponse, error) UpdateApplication(ctx context.Context, in *MsgUpdateApplication, opts ...grpc.CallOption) (*MsgUpdateApplicationResponse, error) CreateWhoIs(ctx context.Context, in *MsgCreateWhoIs, opts ...grpc.CallOption) (*MsgCreateWhoIsResponse, error) UpdateWhoIs(ctx context.Context, in *MsgUpdateWhoIs, opts ...grpc.CallOption) (*MsgUpdateWhoIsResponse, error) DeleteWhoIs(ctx context.Context, in *MsgDeleteWhoIs, opts ...grpc.CallOption) (*MsgDeleteWhoIsResponse, 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 MsgCreateWhoIs ¶
type MsgCreateWhoIs struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` Document []byte `protobuf:"bytes,3,opt,name=document,proto3" json:"document,omitempty"` Credentials []*Credential `protobuf:"bytes,4,rep,name=credentials,proto3" json:"credentials,omitempty"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` }
func NewMsgCreateWhoIs ¶
func NewMsgCreateWhoIs( creator string, did string, doc []byte, c []*Credential, ) *MsgCreateWhoIs
func (*MsgCreateWhoIs) Descriptor ¶
func (*MsgCreateWhoIs) Descriptor() ([]byte, []int)
func (*MsgCreateWhoIs) GetCreator ¶
func (m *MsgCreateWhoIs) GetCreator() string
func (*MsgCreateWhoIs) GetCredentials ¶ added in v0.0.8
func (m *MsgCreateWhoIs) GetCredentials() []*Credential
func (*MsgCreateWhoIs) GetDid ¶
func (m *MsgCreateWhoIs) GetDid() string
func (*MsgCreateWhoIs) GetDocument ¶ added in v0.0.8
func (m *MsgCreateWhoIs) GetDocument() []byte
func (*MsgCreateWhoIs) GetName ¶ added in v0.0.8
func (m *MsgCreateWhoIs) GetName() string
func (*MsgCreateWhoIs) GetSignBytes ¶
func (msg *MsgCreateWhoIs) GetSignBytes() []byte
func (*MsgCreateWhoIs) GetSigners ¶
func (msg *MsgCreateWhoIs) GetSigners() []sdk.AccAddress
func (*MsgCreateWhoIs) Marshal ¶
func (m *MsgCreateWhoIs) Marshal() (dAtA []byte, err error)
func (*MsgCreateWhoIs) MarshalToSizedBuffer ¶
func (m *MsgCreateWhoIs) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateWhoIs) ProtoMessage ¶
func (*MsgCreateWhoIs) ProtoMessage()
func (*MsgCreateWhoIs) Reset ¶
func (m *MsgCreateWhoIs) Reset()
func (*MsgCreateWhoIs) Route ¶
func (msg *MsgCreateWhoIs) Route() string
func (*MsgCreateWhoIs) Size ¶
func (m *MsgCreateWhoIs) Size() (n int)
func (*MsgCreateWhoIs) String ¶
func (m *MsgCreateWhoIs) String() string
func (*MsgCreateWhoIs) Type ¶
func (msg *MsgCreateWhoIs) Type() string
func (*MsgCreateWhoIs) Unmarshal ¶
func (m *MsgCreateWhoIs) Unmarshal(dAtA []byte) error
func (*MsgCreateWhoIs) ValidateBasic ¶
func (msg *MsgCreateWhoIs) ValidateBasic() error
func (*MsgCreateWhoIs) XXX_DiscardUnknown ¶
func (m *MsgCreateWhoIs) XXX_DiscardUnknown()
func (*MsgCreateWhoIs) XXX_Marshal ¶
func (m *MsgCreateWhoIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateWhoIs) XXX_Merge ¶
func (m *MsgCreateWhoIs) XXX_Merge(src proto.Message)
func (*MsgCreateWhoIs) XXX_Size ¶
func (m *MsgCreateWhoIs) XXX_Size() int
func (*MsgCreateWhoIs) XXX_Unmarshal ¶
func (m *MsgCreateWhoIs) XXX_Unmarshal(b []byte) error
type MsgCreateWhoIsResponse ¶
type MsgCreateWhoIsResponse struct { // Code of the response Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // Message of the response Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` WhoIs *WhoIs `protobuf:"bytes,3,opt,name=who_is,json=whoIs,proto3" json:"who_is,omitempty"` }
func (*MsgCreateWhoIsResponse) Descriptor ¶
func (*MsgCreateWhoIsResponse) Descriptor() ([]byte, []int)
func (*MsgCreateWhoIsResponse) GetCode ¶ added in v0.0.8
func (m *MsgCreateWhoIsResponse) GetCode() int32
func (*MsgCreateWhoIsResponse) GetMessage ¶ added in v0.0.8
func (m *MsgCreateWhoIsResponse) GetMessage() string
func (*MsgCreateWhoIsResponse) GetWhoIs ¶ added in v0.0.8
func (m *MsgCreateWhoIsResponse) GetWhoIs() *WhoIs
func (*MsgCreateWhoIsResponse) Marshal ¶
func (m *MsgCreateWhoIsResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateWhoIsResponse) MarshalTo ¶
func (m *MsgCreateWhoIsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateWhoIsResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateWhoIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateWhoIsResponse) ProtoMessage ¶
func (*MsgCreateWhoIsResponse) ProtoMessage()
func (*MsgCreateWhoIsResponse) Reset ¶
func (m *MsgCreateWhoIsResponse) Reset()
func (*MsgCreateWhoIsResponse) Size ¶
func (m *MsgCreateWhoIsResponse) Size() (n int)
func (*MsgCreateWhoIsResponse) String ¶
func (m *MsgCreateWhoIsResponse) String() string
func (*MsgCreateWhoIsResponse) Unmarshal ¶
func (m *MsgCreateWhoIsResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateWhoIsResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateWhoIsResponse) XXX_DiscardUnknown()
func (*MsgCreateWhoIsResponse) XXX_Marshal ¶
func (m *MsgCreateWhoIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateWhoIsResponse) XXX_Merge ¶
func (m *MsgCreateWhoIsResponse) XXX_Merge(src proto.Message)
func (*MsgCreateWhoIsResponse) XXX_Size ¶
func (m *MsgCreateWhoIsResponse) XXX_Size() int
func (*MsgCreateWhoIsResponse) XXX_Unmarshal ¶
func (m *MsgCreateWhoIsResponse) XXX_Unmarshal(b []byte) error
type MsgDeleteWhoIs ¶
type MsgDeleteWhoIs struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` }
func NewMsgDeleteWhoIs ¶
func NewMsgDeleteWhoIs( creator string, did string, ) *MsgDeleteWhoIs
func (*MsgDeleteWhoIs) Descriptor ¶
func (*MsgDeleteWhoIs) Descriptor() ([]byte, []int)
func (*MsgDeleteWhoIs) GetCreator ¶
func (m *MsgDeleteWhoIs) GetCreator() string
func (*MsgDeleteWhoIs) GetDid ¶ added in v0.0.8
func (m *MsgDeleteWhoIs) GetDid() string
func (*MsgDeleteWhoIs) GetSignBytes ¶
func (msg *MsgDeleteWhoIs) GetSignBytes() []byte
func (*MsgDeleteWhoIs) GetSigners ¶
func (msg *MsgDeleteWhoIs) GetSigners() []sdk.AccAddress
func (*MsgDeleteWhoIs) Marshal ¶
func (m *MsgDeleteWhoIs) Marshal() (dAtA []byte, err error)
func (*MsgDeleteWhoIs) MarshalToSizedBuffer ¶
func (m *MsgDeleteWhoIs) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteWhoIs) ProtoMessage ¶
func (*MsgDeleteWhoIs) ProtoMessage()
func (*MsgDeleteWhoIs) Reset ¶
func (m *MsgDeleteWhoIs) Reset()
func (*MsgDeleteWhoIs) Route ¶
func (msg *MsgDeleteWhoIs) Route() string
func (*MsgDeleteWhoIs) Size ¶
func (m *MsgDeleteWhoIs) Size() (n int)
func (*MsgDeleteWhoIs) String ¶
func (m *MsgDeleteWhoIs) String() string
func (*MsgDeleteWhoIs) Type ¶
func (msg *MsgDeleteWhoIs) Type() string
func (*MsgDeleteWhoIs) Unmarshal ¶
func (m *MsgDeleteWhoIs) Unmarshal(dAtA []byte) error
func (*MsgDeleteWhoIs) ValidateBasic ¶
func (msg *MsgDeleteWhoIs) ValidateBasic() error
func (*MsgDeleteWhoIs) XXX_DiscardUnknown ¶
func (m *MsgDeleteWhoIs) XXX_DiscardUnknown()
func (*MsgDeleteWhoIs) XXX_Marshal ¶
func (m *MsgDeleteWhoIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteWhoIs) XXX_Merge ¶
func (m *MsgDeleteWhoIs) XXX_Merge(src proto.Message)
func (*MsgDeleteWhoIs) XXX_Size ¶
func (m *MsgDeleteWhoIs) XXX_Size() int
func (*MsgDeleteWhoIs) XXX_Unmarshal ¶
func (m *MsgDeleteWhoIs) XXX_Unmarshal(b []byte) error
type MsgDeleteWhoIsResponse ¶
type MsgDeleteWhoIsResponse struct { // Code of the response Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // Message of the response Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` }
func (*MsgDeleteWhoIsResponse) Descriptor ¶
func (*MsgDeleteWhoIsResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteWhoIsResponse) GetCode ¶ added in v0.0.8
func (m *MsgDeleteWhoIsResponse) GetCode() int32
func (*MsgDeleteWhoIsResponse) GetMessage ¶ added in v0.0.8
func (m *MsgDeleteWhoIsResponse) GetMessage() string
func (*MsgDeleteWhoIsResponse) Marshal ¶
func (m *MsgDeleteWhoIsResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteWhoIsResponse) MarshalTo ¶
func (m *MsgDeleteWhoIsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteWhoIsResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteWhoIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteWhoIsResponse) ProtoMessage ¶
func (*MsgDeleteWhoIsResponse) ProtoMessage()
func (*MsgDeleteWhoIsResponse) Reset ¶
func (m *MsgDeleteWhoIsResponse) Reset()
func (*MsgDeleteWhoIsResponse) Size ¶
func (m *MsgDeleteWhoIsResponse) Size() (n int)
func (*MsgDeleteWhoIsResponse) String ¶
func (m *MsgDeleteWhoIsResponse) String() string
func (*MsgDeleteWhoIsResponse) Unmarshal ¶
func (m *MsgDeleteWhoIsResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteWhoIsResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteWhoIsResponse) XXX_DiscardUnknown()
func (*MsgDeleteWhoIsResponse) XXX_Marshal ¶
func (m *MsgDeleteWhoIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteWhoIsResponse) XXX_Merge ¶
func (m *MsgDeleteWhoIsResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteWhoIsResponse) XXX_Size ¶
func (m *MsgDeleteWhoIsResponse) XXX_Size() int
func (*MsgDeleteWhoIsResponse) XXX_Unmarshal ¶
func (m *MsgDeleteWhoIsResponse) XXX_Unmarshal(b []byte) error
type MsgRegisterApplication ¶ added in v0.0.7
type MsgRegisterApplication struct { // Creator is the account address of the creator of the Application. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // Client side JSON Web Token for AssertionMethod Credential *Credential `protobuf:"bytes,2,opt,name=credential,proto3" json:"credential,omitempty"` // Application Name is the endpoint of the Application. ApplicationName string `protobuf:"bytes,3,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"` // Application Description is the description of the Application. ApplicationDescription string `` /* 127-byte string literal not displayed */ // Application URL is the URL of the Application. ApplicationUrl string `protobuf:"bytes,5,opt,name=application_url,json=applicationUrl,proto3" json:"application_url,omitempty"` // Application Category is the category of the Application. ApplicationCategory string `protobuf:"bytes,6,opt,name=application_category,json=applicationCategory,proto3" json:"application_category,omitempty"` }
func NewMsgRegisterApplication ¶ added in v0.0.7
func NewMsgRegisterApplication(creator string, serviceName string, c *Credential) *MsgRegisterApplication
func (*MsgRegisterApplication) Descriptor ¶ added in v0.0.7
func (*MsgRegisterApplication) Descriptor() ([]byte, []int)
func (*MsgRegisterApplication) GetApplicationCategory ¶ added in v0.0.8
func (m *MsgRegisterApplication) GetApplicationCategory() string
func (*MsgRegisterApplication) GetApplicationDescription ¶ added in v0.0.8
func (m *MsgRegisterApplication) GetApplicationDescription() string
func (*MsgRegisterApplication) GetApplicationName ¶ added in v0.0.7
func (m *MsgRegisterApplication) GetApplicationName() string
func (*MsgRegisterApplication) GetApplicationUrl ¶ added in v0.0.8
func (m *MsgRegisterApplication) GetApplicationUrl() string
func (*MsgRegisterApplication) GetCreator ¶ added in v0.0.7
func (m *MsgRegisterApplication) GetCreator() string
func (*MsgRegisterApplication) GetCredential ¶ added in v0.0.7
func (m *MsgRegisterApplication) GetCredential() *Credential
func (*MsgRegisterApplication) GetSignBytes ¶ added in v0.0.7
func (msg *MsgRegisterApplication) GetSignBytes() []byte
func (*MsgRegisterApplication) GetSigners ¶ added in v0.0.7
func (msg *MsgRegisterApplication) GetSigners() []sdk.AccAddress
func (*MsgRegisterApplication) Marshal ¶ added in v0.0.7
func (m *MsgRegisterApplication) Marshal() (dAtA []byte, err error)
func (*MsgRegisterApplication) MarshalTo ¶ added in v0.0.7
func (m *MsgRegisterApplication) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterApplication) MarshalToSizedBuffer ¶ added in v0.0.7
func (m *MsgRegisterApplication) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterApplication) ProtoMessage ¶ added in v0.0.7
func (*MsgRegisterApplication) ProtoMessage()
func (*MsgRegisterApplication) Reset ¶ added in v0.0.7
func (m *MsgRegisterApplication) Reset()
func (*MsgRegisterApplication) Route ¶ added in v0.0.7
func (msg *MsgRegisterApplication) Route() string
func (*MsgRegisterApplication) Size ¶ added in v0.0.7
func (m *MsgRegisterApplication) Size() (n int)
func (*MsgRegisterApplication) String ¶ added in v0.0.7
func (m *MsgRegisterApplication) String() string
func (*MsgRegisterApplication) Type ¶ added in v0.0.7
func (msg *MsgRegisterApplication) Type() string
func (*MsgRegisterApplication) Unmarshal ¶ added in v0.0.7
func (m *MsgRegisterApplication) Unmarshal(dAtA []byte) error
func (*MsgRegisterApplication) ValidateBasic ¶ added in v0.0.7
func (msg *MsgRegisterApplication) ValidateBasic() error
func (*MsgRegisterApplication) XXX_DiscardUnknown ¶ added in v0.0.7
func (m *MsgRegisterApplication) XXX_DiscardUnknown()
func (*MsgRegisterApplication) XXX_Marshal ¶ added in v0.0.7
func (m *MsgRegisterApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterApplication) XXX_Merge ¶ added in v0.0.7
func (m *MsgRegisterApplication) XXX_Merge(src proto.Message)
func (*MsgRegisterApplication) XXX_Size ¶ added in v0.0.7
func (m *MsgRegisterApplication) XXX_Size() int
func (*MsgRegisterApplication) XXX_Unmarshal ¶ added in v0.0.7
func (m *MsgRegisterApplication) XXX_Unmarshal(b []byte) error
type MsgRegisterApplicationResponse ¶ added in v0.0.7
type MsgRegisterApplicationResponse struct { // Code of the response Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // Message of the response Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // WhoIs for the registered name WhoIs *WhoIs `protobuf:"bytes,3,opt,name=whoIs,proto3" json:"whoIs,omitempty"` // Session returns the session for the name Session *Session `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"` }
func (*MsgRegisterApplicationResponse) Descriptor ¶ added in v0.0.7
func (*MsgRegisterApplicationResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterApplicationResponse) GetCode ¶ added in v0.0.8
func (m *MsgRegisterApplicationResponse) GetCode() int32
func (*MsgRegisterApplicationResponse) GetMessage ¶ added in v0.0.8
func (m *MsgRegisterApplicationResponse) GetMessage() string
func (*MsgRegisterApplicationResponse) GetSession ¶ added in v0.0.8
func (m *MsgRegisterApplicationResponse) GetSession() *Session
func (*MsgRegisterApplicationResponse) GetWhoIs ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) GetWhoIs() *WhoIs
func (*MsgRegisterApplicationResponse) Marshal ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterApplicationResponse) MarshalTo ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterApplicationResponse) MarshalToSizedBuffer ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterApplicationResponse) ProtoMessage ¶ added in v0.0.7
func (*MsgRegisterApplicationResponse) ProtoMessage()
func (*MsgRegisterApplicationResponse) Reset ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) Reset()
func (*MsgRegisterApplicationResponse) Size ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) Size() (n int)
func (*MsgRegisterApplicationResponse) String ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) String() string
func (*MsgRegisterApplicationResponse) Unmarshal ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterApplicationResponse) XXX_DiscardUnknown ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) XXX_DiscardUnknown()
func (*MsgRegisterApplicationResponse) XXX_Marshal ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterApplicationResponse) XXX_Merge ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterApplicationResponse) XXX_Size ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) XXX_Size() int
func (*MsgRegisterApplicationResponse) XXX_Unmarshal ¶ added in v0.0.7
func (m *MsgRegisterApplicationResponse) XXX_Unmarshal(b []byte) error
type MsgRegisterName ¶
type MsgRegisterName struct { // Account address of the name owner Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // Selected Name to register NameToRegister string `protobuf:"bytes,2,opt,name=nameToRegister,proto3" json:"nameToRegister,omitempty"` // Client side JSON Web Token for AssertionMethod Credential *Credential `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` // The Updated Metadata Metadata map[string]string `` /* 157-byte string literal not displayed */ }
MsgRegisterName is a request to register a name with the ".snr" name of a peer
func NewMsgRegisterName ¶
func NewMsgRegisterName(creator string, nameToRegister string, cred webauthn.Credential) *MsgRegisterName
NewMsgRegisterName creates a new MsgRegisterName object
func (*MsgRegisterName) Descriptor ¶
func (*MsgRegisterName) Descriptor() ([]byte, []int)
func (*MsgRegisterName) GetCreator ¶
func (m *MsgRegisterName) GetCreator() string
func (*MsgRegisterName) GetCredential ¶ added in v0.0.3
func (m *MsgRegisterName) GetCredential() *Credential
func (*MsgRegisterName) GetMetadata ¶ added in v0.0.8
func (m *MsgRegisterName) GetMetadata() map[string]string
func (*MsgRegisterName) GetNameToRegister ¶
func (m *MsgRegisterName) GetNameToRegister() string
func (*MsgRegisterName) GetSignBytes ¶
func (msg *MsgRegisterName) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (*MsgRegisterName) GetSigners ¶
func (msg *MsgRegisterName) GetSigners() []sdk.AccAddress
GetSigners returns the creator of the message
func (*MsgRegisterName) Marshal ¶
func (m *MsgRegisterName) Marshal() (dAtA []byte, err error)
func (*MsgRegisterName) MarshalToSizedBuffer ¶
func (m *MsgRegisterName) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterName) ProtoMessage ¶
func (*MsgRegisterName) ProtoMessage()
func (*MsgRegisterName) Reset ¶
func (m *MsgRegisterName) Reset()
func (*MsgRegisterName) Route ¶
func (msg *MsgRegisterName) Route() string
Route returns the message type used for routing the message.
func (*MsgRegisterName) Size ¶
func (m *MsgRegisterName) Size() (n int)
func (*MsgRegisterName) String ¶
func (m *MsgRegisterName) String() string
func (*MsgRegisterName) Type ¶
func (msg *MsgRegisterName) Type() string
Type returns the action type
func (*MsgRegisterName) Unmarshal ¶
func (m *MsgRegisterName) Unmarshal(dAtA []byte) error
func (*MsgRegisterName) ValidateBasic ¶
func (msg *MsgRegisterName) ValidateBasic() error
Validate verifies the message details
func (*MsgRegisterName) XXX_DiscardUnknown ¶
func (m *MsgRegisterName) XXX_DiscardUnknown()
func (*MsgRegisterName) XXX_Marshal ¶
func (m *MsgRegisterName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterName) XXX_Merge ¶
func (m *MsgRegisterName) XXX_Merge(src proto.Message)
func (*MsgRegisterName) XXX_Size ¶
func (m *MsgRegisterName) XXX_Size() int
func (*MsgRegisterName) XXX_Unmarshal ¶
func (m *MsgRegisterName) XXX_Unmarshal(b []byte) error
type MsgRegisterNameResponse ¶
type MsgRegisterNameResponse struct { // Code of the response Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // Message of the response Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // WhoIs for the registered name WhoIs *WhoIs `protobuf:"bytes,3,opt,name=whoIs,proto3" json:"whoIs,omitempty"` // Session returns the session for the name Session *Session `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"` }
func (*MsgRegisterNameResponse) Descriptor ¶
func (*MsgRegisterNameResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterNameResponse) GetCode ¶ added in v0.0.8
func (m *MsgRegisterNameResponse) GetCode() int32
func (*MsgRegisterNameResponse) GetMessage ¶ added in v0.0.8
func (m *MsgRegisterNameResponse) GetMessage() string
func (*MsgRegisterNameResponse) GetSession ¶ added in v0.0.8
func (m *MsgRegisterNameResponse) GetSession() *Session
func (*MsgRegisterNameResponse) GetWhoIs ¶ added in v0.0.4
func (m *MsgRegisterNameResponse) GetWhoIs() *WhoIs
func (*MsgRegisterNameResponse) Marshal ¶
func (m *MsgRegisterNameResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterNameResponse) MarshalTo ¶
func (m *MsgRegisterNameResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterNameResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterNameResponse) ProtoMessage ¶
func (*MsgRegisterNameResponse) ProtoMessage()
func (*MsgRegisterNameResponse) Reset ¶
func (m *MsgRegisterNameResponse) Reset()
func (*MsgRegisterNameResponse) Size ¶
func (m *MsgRegisterNameResponse) Size() (n int)
func (*MsgRegisterNameResponse) String ¶
func (m *MsgRegisterNameResponse) String() string
func (*MsgRegisterNameResponse) Unmarshal ¶
func (m *MsgRegisterNameResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterNameResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterNameResponse) XXX_DiscardUnknown()
func (*MsgRegisterNameResponse) XXX_Marshal ¶
func (m *MsgRegisterNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterNameResponse) XXX_Merge ¶
func (m *MsgRegisterNameResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterNameResponse) XXX_Size ¶
func (m *MsgRegisterNameResponse) XXX_Size() int
func (*MsgRegisterNameResponse) XXX_Unmarshal ¶
func (m *MsgRegisterNameResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { RegisterApplication(context.Context, *MsgRegisterApplication) (*MsgRegisterApplicationResponse, error) RegisterName(context.Context, *MsgRegisterName) (*MsgRegisterNameResponse, error) AccessName(context.Context, *MsgAccessName) (*MsgAccessNameResponse, error) UpdateName(context.Context, *MsgUpdateName) (*MsgUpdateNameResponse, error) AccessApplication(context.Context, *MsgAccessApplication) (*MsgAccessApplicationResponse, error) UpdateApplication(context.Context, *MsgUpdateApplication) (*MsgUpdateApplicationResponse, error) CreateWhoIs(context.Context, *MsgCreateWhoIs) (*MsgCreateWhoIsResponse, error) UpdateWhoIs(context.Context, *MsgUpdateWhoIs) (*MsgUpdateWhoIsResponse, error) DeleteWhoIs(context.Context, *MsgDeleteWhoIs) (*MsgDeleteWhoIsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateApplication ¶ added in v0.0.7
type MsgUpdateApplication struct { // The account that owns the name. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // The name of the peer to update the Application details of Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` // The updated configuration for the Application Metadata map[string]string `` /* 157-byte string literal not displayed */ // Session returns the session for the name Session *Session `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"` }
func NewMsgUpdateApplication ¶ added in v0.0.7
func NewMsgUpdateApplication(creator string, did string) *MsgUpdateApplication
func (*MsgUpdateApplication) Descriptor ¶ added in v0.0.7
func (*MsgUpdateApplication) Descriptor() ([]byte, []int)
func (*MsgUpdateApplication) GetCreator ¶ added in v0.0.7
func (m *MsgUpdateApplication) GetCreator() string
func (*MsgUpdateApplication) GetDid ¶ added in v0.0.7
func (m *MsgUpdateApplication) GetDid() string
func (*MsgUpdateApplication) GetMetadata ¶ added in v0.0.7
func (m *MsgUpdateApplication) GetMetadata() map[string]string
func (*MsgUpdateApplication) GetSession ¶ added in v0.0.8
func (m *MsgUpdateApplication) GetSession() *Session
func (*MsgUpdateApplication) GetSignBytes ¶ added in v0.0.7
func (msg *MsgUpdateApplication) GetSignBytes() []byte
func (*MsgUpdateApplication) GetSigners ¶ added in v0.0.7
func (msg *MsgUpdateApplication) GetSigners() []sdk.AccAddress
func (*MsgUpdateApplication) Marshal ¶ added in v0.0.7
func (m *MsgUpdateApplication) Marshal() (dAtA []byte, err error)
func (*MsgUpdateApplication) MarshalTo ¶ added in v0.0.7
func (m *MsgUpdateApplication) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateApplication) MarshalToSizedBuffer ¶ added in v0.0.7
func (m *MsgUpdateApplication) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateApplication) ProtoMessage ¶ added in v0.0.7
func (*MsgUpdateApplication) ProtoMessage()
func (*MsgUpdateApplication) Reset ¶ added in v0.0.7
func (m *MsgUpdateApplication) Reset()
func (*MsgUpdateApplication) Route ¶ added in v0.0.7
func (msg *MsgUpdateApplication) Route() string
func (*MsgUpdateApplication) Size ¶ added in v0.0.7
func (m *MsgUpdateApplication) Size() (n int)
func (*MsgUpdateApplication) String ¶ added in v0.0.7
func (m *MsgUpdateApplication) String() string
func (*MsgUpdateApplication) Type ¶ added in v0.0.7
func (msg *MsgUpdateApplication) Type() string
func (*MsgUpdateApplication) Unmarshal ¶ added in v0.0.7
func (m *MsgUpdateApplication) Unmarshal(dAtA []byte) error
func (*MsgUpdateApplication) ValidateBasic ¶ added in v0.0.7
func (msg *MsgUpdateApplication) ValidateBasic() error
func (*MsgUpdateApplication) XXX_DiscardUnknown ¶ added in v0.0.7
func (m *MsgUpdateApplication) XXX_DiscardUnknown()
func (*MsgUpdateApplication) XXX_Marshal ¶ added in v0.0.7
func (m *MsgUpdateApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateApplication) XXX_Merge ¶ added in v0.0.7
func (m *MsgUpdateApplication) XXX_Merge(src proto.Message)
func (*MsgUpdateApplication) XXX_Size ¶ added in v0.0.7
func (m *MsgUpdateApplication) XXX_Size() int
func (*MsgUpdateApplication) XXX_Unmarshal ¶ added in v0.0.7
func (m *MsgUpdateApplication) XXX_Unmarshal(b []byte) error
type MsgUpdateApplicationResponse ¶ added in v0.0.7
type MsgUpdateApplicationResponse struct { // Code of the response Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // Message of the response Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Data of the response Metadata map[string]string `` /* 157-byte string literal not displayed */ // WhoIs for the registered name WhoIs *WhoIs `protobuf:"bytes,4,opt,name=whoIs,proto3" json:"whoIs,omitempty"` }
func (*MsgUpdateApplicationResponse) Descriptor ¶ added in v0.0.7
func (*MsgUpdateApplicationResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateApplicationResponse) GetCode ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) GetCode() int32
func (*MsgUpdateApplicationResponse) GetMessage ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) GetMessage() string
func (*MsgUpdateApplicationResponse) GetMetadata ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) GetMetadata() map[string]string
func (*MsgUpdateApplicationResponse) GetWhoIs ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) GetWhoIs() *WhoIs
func (*MsgUpdateApplicationResponse) Marshal ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateApplicationResponse) MarshalTo ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateApplicationResponse) MarshalToSizedBuffer ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateApplicationResponse) ProtoMessage ¶ added in v0.0.7
func (*MsgUpdateApplicationResponse) ProtoMessage()
func (*MsgUpdateApplicationResponse) Reset ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) Reset()
func (*MsgUpdateApplicationResponse) Size ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) Size() (n int)
func (*MsgUpdateApplicationResponse) String ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) String() string
func (*MsgUpdateApplicationResponse) Unmarshal ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateApplicationResponse) XXX_DiscardUnknown ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) XXX_DiscardUnknown()
func (*MsgUpdateApplicationResponse) XXX_Marshal ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateApplicationResponse) XXX_Merge ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateApplicationResponse) XXX_Size ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) XXX_Size() int
func (*MsgUpdateApplicationResponse) XXX_Unmarshal ¶ added in v0.0.7
func (m *MsgUpdateApplicationResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateName ¶
type MsgUpdateName struct { // The account that owns the name. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // The did of the peer to update the name of Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` // Client side JSON Web Token for AssertionMethod. For additional devices being linked. Credential *Credential `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` // The Updated Metadata Metadata map[string]string `` /* 157-byte string literal not displayed */ // Session returns the session for the name Session *Session `protobuf:"bytes,5,opt,name=session,proto3" json:"session,omitempty"` }
func NewMsgUpdateName ¶
func NewMsgUpdateName(creator string, name string) *MsgUpdateName
func (*MsgUpdateName) Descriptor ¶
func (*MsgUpdateName) Descriptor() ([]byte, []int)
func (*MsgUpdateName) GetCreator ¶
func (m *MsgUpdateName) GetCreator() string
func (*MsgUpdateName) GetCredential ¶ added in v0.0.8
func (m *MsgUpdateName) GetCredential() *Credential
func (*MsgUpdateName) GetDid ¶
func (m *MsgUpdateName) GetDid() string
func (*MsgUpdateName) GetMetadata ¶
func (m *MsgUpdateName) GetMetadata() map[string]string
func (*MsgUpdateName) GetSession ¶ added in v0.0.8
func (m *MsgUpdateName) GetSession() *Session
func (*MsgUpdateName) GetSignBytes ¶
func (msg *MsgUpdateName) GetSignBytes() []byte
func (*MsgUpdateName) GetSigners ¶
func (msg *MsgUpdateName) GetSigners() []sdk.AccAddress
func (*MsgUpdateName) Marshal ¶
func (m *MsgUpdateName) Marshal() (dAtA []byte, err error)
func (*MsgUpdateName) MarshalToSizedBuffer ¶
func (m *MsgUpdateName) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateName) ProtoMessage ¶
func (*MsgUpdateName) ProtoMessage()
func (*MsgUpdateName) Reset ¶
func (m *MsgUpdateName) Reset()
func (*MsgUpdateName) Route ¶
func (msg *MsgUpdateName) Route() string
func (*MsgUpdateName) Size ¶
func (m *MsgUpdateName) Size() (n int)
func (*MsgUpdateName) String ¶
func (m *MsgUpdateName) String() string
func (*MsgUpdateName) Type ¶
func (msg *MsgUpdateName) Type() string
func (*MsgUpdateName) Unmarshal ¶
func (m *MsgUpdateName) Unmarshal(dAtA []byte) error
func (*MsgUpdateName) ValidateBasic ¶
func (msg *MsgUpdateName) ValidateBasic() error
func (*MsgUpdateName) XXX_DiscardUnknown ¶
func (m *MsgUpdateName) XXX_DiscardUnknown()
func (*MsgUpdateName) XXX_Marshal ¶
func (m *MsgUpdateName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateName) XXX_Merge ¶
func (m *MsgUpdateName) XXX_Merge(src proto.Message)
func (*MsgUpdateName) XXX_Size ¶
func (m *MsgUpdateName) XXX_Size() int
func (*MsgUpdateName) XXX_Unmarshal ¶
func (m *MsgUpdateName) XXX_Unmarshal(b []byte) error
type MsgUpdateNameResponse ¶
type MsgUpdateNameResponse struct { // Code of the response Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // Message of the response Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // WhoIs for the registered name WhoIs *WhoIs `protobuf:"bytes,3,opt,name=whoIs,proto3" json:"whoIs,omitempty"` }
func (*MsgUpdateNameResponse) Descriptor ¶
func (*MsgUpdateNameResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateNameResponse) GetCode ¶ added in v0.0.8
func (m *MsgUpdateNameResponse) GetCode() int32
func (*MsgUpdateNameResponse) GetMessage ¶ added in v0.0.8
func (m *MsgUpdateNameResponse) GetMessage() string
func (*MsgUpdateNameResponse) GetWhoIs ¶ added in v0.0.8
func (m *MsgUpdateNameResponse) GetWhoIs() *WhoIs
func (*MsgUpdateNameResponse) Marshal ¶
func (m *MsgUpdateNameResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateNameResponse) MarshalTo ¶
func (m *MsgUpdateNameResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateNameResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateNameResponse) ProtoMessage ¶
func (*MsgUpdateNameResponse) ProtoMessage()
func (*MsgUpdateNameResponse) Reset ¶
func (m *MsgUpdateNameResponse) Reset()
func (*MsgUpdateNameResponse) Size ¶
func (m *MsgUpdateNameResponse) Size() (n int)
func (*MsgUpdateNameResponse) String ¶
func (m *MsgUpdateNameResponse) String() string
func (*MsgUpdateNameResponse) Unmarshal ¶
func (m *MsgUpdateNameResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateNameResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateNameResponse) XXX_DiscardUnknown()
func (*MsgUpdateNameResponse) XXX_Marshal ¶
func (m *MsgUpdateNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateNameResponse) XXX_Merge ¶
func (m *MsgUpdateNameResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateNameResponse) XXX_Size ¶
func (m *MsgUpdateNameResponse) XXX_Size() int
func (*MsgUpdateNameResponse) XXX_Unmarshal ¶
func (m *MsgUpdateNameResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateWhoIs ¶
type MsgUpdateWhoIs struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` Document []byte `protobuf:"bytes,3,opt,name=document,proto3" json:"document,omitempty"` Credentials []*Credential `protobuf:"bytes,4,rep,name=credentials,proto3" json:"credentials,omitempty"` }
func NewMsgUpdateWhoIs ¶
func NewMsgUpdateWhoIs( creator string, did string, doc []byte, c []*Credential, ) *MsgUpdateWhoIs
func (*MsgUpdateWhoIs) Descriptor ¶
func (*MsgUpdateWhoIs) Descriptor() ([]byte, []int)
func (*MsgUpdateWhoIs) GetCreator ¶
func (m *MsgUpdateWhoIs) GetCreator() string
func (*MsgUpdateWhoIs) GetCredentials ¶ added in v0.0.8
func (m *MsgUpdateWhoIs) GetCredentials() []*Credential
func (*MsgUpdateWhoIs) GetDid ¶
func (m *MsgUpdateWhoIs) GetDid() string
func (*MsgUpdateWhoIs) GetDocument ¶ added in v0.0.8
func (m *MsgUpdateWhoIs) GetDocument() []byte
func (*MsgUpdateWhoIs) GetSignBytes ¶
func (msg *MsgUpdateWhoIs) GetSignBytes() []byte
func (*MsgUpdateWhoIs) GetSigners ¶
func (msg *MsgUpdateWhoIs) GetSigners() []sdk.AccAddress
func (*MsgUpdateWhoIs) Marshal ¶
func (m *MsgUpdateWhoIs) Marshal() (dAtA []byte, err error)
func (*MsgUpdateWhoIs) MarshalToSizedBuffer ¶
func (m *MsgUpdateWhoIs) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateWhoIs) ProtoMessage ¶
func (*MsgUpdateWhoIs) ProtoMessage()
func (*MsgUpdateWhoIs) Reset ¶
func (m *MsgUpdateWhoIs) Reset()
func (*MsgUpdateWhoIs) Route ¶
func (msg *MsgUpdateWhoIs) Route() string
func (*MsgUpdateWhoIs) Size ¶
func (m *MsgUpdateWhoIs) Size() (n int)
func (*MsgUpdateWhoIs) String ¶
func (m *MsgUpdateWhoIs) String() string
func (*MsgUpdateWhoIs) Type ¶
func (msg *MsgUpdateWhoIs) Type() string
func (*MsgUpdateWhoIs) Unmarshal ¶
func (m *MsgUpdateWhoIs) Unmarshal(dAtA []byte) error
func (*MsgUpdateWhoIs) ValidateBasic ¶
func (msg *MsgUpdateWhoIs) ValidateBasic() error
func (*MsgUpdateWhoIs) XXX_DiscardUnknown ¶
func (m *MsgUpdateWhoIs) XXX_DiscardUnknown()
func (*MsgUpdateWhoIs) XXX_Marshal ¶
func (m *MsgUpdateWhoIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateWhoIs) XXX_Merge ¶
func (m *MsgUpdateWhoIs) XXX_Merge(src proto.Message)
func (*MsgUpdateWhoIs) XXX_Size ¶
func (m *MsgUpdateWhoIs) XXX_Size() int
func (*MsgUpdateWhoIs) XXX_Unmarshal ¶
func (m *MsgUpdateWhoIs) XXX_Unmarshal(b []byte) error
type MsgUpdateWhoIsResponse ¶
type MsgUpdateWhoIsResponse struct { // Code of the response Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // Message of the response Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` WhoIs *WhoIs `protobuf:"bytes,3,opt,name=who_is,json=whoIs,proto3" json:"who_is,omitempty"` }
func (*MsgUpdateWhoIsResponse) Descriptor ¶
func (*MsgUpdateWhoIsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateWhoIsResponse) GetCode ¶ added in v0.0.8
func (m *MsgUpdateWhoIsResponse) GetCode() int32
func (*MsgUpdateWhoIsResponse) GetMessage ¶ added in v0.0.8
func (m *MsgUpdateWhoIsResponse) GetMessage() string
func (*MsgUpdateWhoIsResponse) GetWhoIs ¶ added in v0.0.8
func (m *MsgUpdateWhoIsResponse) GetWhoIs() *WhoIs
func (*MsgUpdateWhoIsResponse) Marshal ¶
func (m *MsgUpdateWhoIsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateWhoIsResponse) MarshalTo ¶
func (m *MsgUpdateWhoIsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateWhoIsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateWhoIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateWhoIsResponse) ProtoMessage ¶
func (*MsgUpdateWhoIsResponse) ProtoMessage()
func (*MsgUpdateWhoIsResponse) Reset ¶
func (m *MsgUpdateWhoIsResponse) Reset()
func (*MsgUpdateWhoIsResponse) Size ¶
func (m *MsgUpdateWhoIsResponse) Size() (n int)
func (*MsgUpdateWhoIsResponse) String ¶
func (m *MsgUpdateWhoIsResponse) String() string
func (*MsgUpdateWhoIsResponse) Unmarshal ¶
func (m *MsgUpdateWhoIsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateWhoIsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateWhoIsResponse) XXX_DiscardUnknown()
func (*MsgUpdateWhoIsResponse) XXX_Marshal ¶
func (m *MsgUpdateWhoIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateWhoIsResponse) XXX_Merge ¶
func (m *MsgUpdateWhoIsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateWhoIsResponse) XXX_Size ¶
func (m *MsgUpdateWhoIsResponse) XXX_Size() int
func (*MsgUpdateWhoIsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateWhoIsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllWhoIsRequest ¶
type QueryAllWhoIsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllWhoIsRequest) Descriptor ¶
func (*QueryAllWhoIsRequest) Descriptor() ([]byte, []int)
func (*QueryAllWhoIsRequest) GetPagination ¶
func (m *QueryAllWhoIsRequest) GetPagination() *query.PageRequest
func (*QueryAllWhoIsRequest) Marshal ¶
func (m *QueryAllWhoIsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllWhoIsRequest) MarshalTo ¶
func (m *QueryAllWhoIsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllWhoIsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllWhoIsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllWhoIsRequest) ProtoMessage ¶
func (*QueryAllWhoIsRequest) ProtoMessage()
func (*QueryAllWhoIsRequest) Reset ¶
func (m *QueryAllWhoIsRequest) Reset()
func (*QueryAllWhoIsRequest) Size ¶
func (m *QueryAllWhoIsRequest) Size() (n int)
func (*QueryAllWhoIsRequest) String ¶
func (m *QueryAllWhoIsRequest) String() string
func (*QueryAllWhoIsRequest) Unmarshal ¶
func (m *QueryAllWhoIsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllWhoIsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllWhoIsRequest) XXX_DiscardUnknown()
func (*QueryAllWhoIsRequest) XXX_Marshal ¶
func (m *QueryAllWhoIsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllWhoIsRequest) XXX_Merge ¶
func (m *QueryAllWhoIsRequest) XXX_Merge(src proto.Message)
func (*QueryAllWhoIsRequest) XXX_Size ¶
func (m *QueryAllWhoIsRequest) XXX_Size() int
func (*QueryAllWhoIsRequest) XXX_Unmarshal ¶
func (m *QueryAllWhoIsRequest) XXX_Unmarshal(b []byte) error
type QueryAllWhoIsResponse ¶
type QueryAllWhoIsResponse struct { WhoIs []WhoIs `protobuf:"bytes,1,rep,name=whoIs,proto3" json:"whoIs"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllWhoIsResponse) Descriptor ¶
func (*QueryAllWhoIsResponse) Descriptor() ([]byte, []int)
func (*QueryAllWhoIsResponse) GetPagination ¶
func (m *QueryAllWhoIsResponse) GetPagination() *query.PageResponse
func (*QueryAllWhoIsResponse) GetWhoIs ¶
func (m *QueryAllWhoIsResponse) GetWhoIs() []WhoIs
func (*QueryAllWhoIsResponse) Marshal ¶
func (m *QueryAllWhoIsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllWhoIsResponse) MarshalTo ¶
func (m *QueryAllWhoIsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllWhoIsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllWhoIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllWhoIsResponse) ProtoMessage ¶
func (*QueryAllWhoIsResponse) ProtoMessage()
func (*QueryAllWhoIsResponse) Reset ¶
func (m *QueryAllWhoIsResponse) Reset()
func (*QueryAllWhoIsResponse) Size ¶
func (m *QueryAllWhoIsResponse) Size() (n int)
func (*QueryAllWhoIsResponse) String ¶
func (m *QueryAllWhoIsResponse) String() string
func (*QueryAllWhoIsResponse) Unmarshal ¶
func (m *QueryAllWhoIsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllWhoIsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllWhoIsResponse) XXX_DiscardUnknown()
func (*QueryAllWhoIsResponse) XXX_Marshal ¶
func (m *QueryAllWhoIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllWhoIsResponse) XXX_Merge ¶
func (m *QueryAllWhoIsResponse) XXX_Merge(src proto.Message)
func (*QueryAllWhoIsResponse) XXX_Size ¶
func (m *QueryAllWhoIsResponse) XXX_Size() int
func (*QueryAllWhoIsResponse) XXX_Unmarshal ¶
func (m *QueryAllWhoIsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a WhoIs by index. WhoIs(ctx context.Context, in *QueryGetWhoIsRequest, opts ...grpc.CallOption) (*QueryGetWhoIsResponse, error) // Queries a list of WhoIs items. WhoIsAll(ctx context.Context, in *QueryAllWhoIsRequest, opts ...grpc.CallOption) (*QueryAllWhoIsResponse, 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 QueryGetWhoIsRequest ¶
type QueryGetWhoIsRequest struct {
Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
}
func (*QueryGetWhoIsRequest) Descriptor ¶
func (*QueryGetWhoIsRequest) Descriptor() ([]byte, []int)
func (*QueryGetWhoIsRequest) GetIndex ¶
func (m *QueryGetWhoIsRequest) GetIndex() string
func (*QueryGetWhoIsRequest) Marshal ¶
func (m *QueryGetWhoIsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetWhoIsRequest) MarshalTo ¶
func (m *QueryGetWhoIsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetWhoIsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetWhoIsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetWhoIsRequest) ProtoMessage ¶
func (*QueryGetWhoIsRequest) ProtoMessage()
func (*QueryGetWhoIsRequest) Reset ¶
func (m *QueryGetWhoIsRequest) Reset()
func (*QueryGetWhoIsRequest) Size ¶
func (m *QueryGetWhoIsRequest) Size() (n int)
func (*QueryGetWhoIsRequest) String ¶
func (m *QueryGetWhoIsRequest) String() string
func (*QueryGetWhoIsRequest) Unmarshal ¶
func (m *QueryGetWhoIsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetWhoIsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetWhoIsRequest) XXX_DiscardUnknown()
func (*QueryGetWhoIsRequest) XXX_Marshal ¶
func (m *QueryGetWhoIsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetWhoIsRequest) XXX_Merge ¶
func (m *QueryGetWhoIsRequest) XXX_Merge(src proto.Message)
func (*QueryGetWhoIsRequest) XXX_Size ¶
func (m *QueryGetWhoIsRequest) XXX_Size() int
func (*QueryGetWhoIsRequest) XXX_Unmarshal ¶
func (m *QueryGetWhoIsRequest) XXX_Unmarshal(b []byte) error
type QueryGetWhoIsResponse ¶
type QueryGetWhoIsResponse struct {
WhoIs WhoIs `protobuf:"bytes,1,opt,name=whoIs,proto3" json:"whoIs"`
}
func (*QueryGetWhoIsResponse) Descriptor ¶
func (*QueryGetWhoIsResponse) Descriptor() ([]byte, []int)
func (*QueryGetWhoIsResponse) GetWhoIs ¶
func (m *QueryGetWhoIsResponse) GetWhoIs() WhoIs
func (*QueryGetWhoIsResponse) Marshal ¶
func (m *QueryGetWhoIsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetWhoIsResponse) MarshalTo ¶
func (m *QueryGetWhoIsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetWhoIsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetWhoIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetWhoIsResponse) ProtoMessage ¶
func (*QueryGetWhoIsResponse) ProtoMessage()
func (*QueryGetWhoIsResponse) Reset ¶
func (m *QueryGetWhoIsResponse) Reset()
func (*QueryGetWhoIsResponse) Size ¶
func (m *QueryGetWhoIsResponse) Size() (n int)
func (*QueryGetWhoIsResponse) String ¶
func (m *QueryGetWhoIsResponse) String() string
func (*QueryGetWhoIsResponse) Unmarshal ¶
func (m *QueryGetWhoIsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetWhoIsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetWhoIsResponse) XXX_DiscardUnknown()
func (*QueryGetWhoIsResponse) XXX_Marshal ¶
func (m *QueryGetWhoIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetWhoIsResponse) XXX_Merge ¶
func (m *QueryGetWhoIsResponse) XXX_Merge(src proto.Message)
func (*QueryGetWhoIsResponse) XXX_Size ¶
func (m *QueryGetWhoIsResponse) XXX_Size() int
func (*QueryGetWhoIsResponse) XXX_Unmarshal ¶
func (m *QueryGetWhoIsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a WhoIs by index. WhoIs(context.Context, *QueryGetWhoIsRequest) (*QueryGetWhoIsResponse, error) // Queries a list of WhoIs items. WhoIsAll(context.Context, *QueryAllWhoIsRequest) (*QueryAllWhoIsResponse, error) }
QueryServer is the server API for Query service.
type Session ¶ added in v0.0.8
type Session struct { // Base DID is the current Account or Application whois DID url BaseDid string `protobuf:"bytes,1,opt,name=base_did,json=baseDid,proto3" json:"base_did,omitempty"` // WhoIs is the current Document for the DID Whois *WhoIs `protobuf:"bytes,2,opt,name=whois,proto3" json:"whois,omitempty"` // Credential is the current Credential for the DID Credential *Credential `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` }
Session is the metadata for current user or application
func (*Session) Creator ¶ added in v0.0.8
DIDDocument returns the DID Document for the underlying WhoIs
func (*Session) DIDDocument ¶ added in v0.0.8
DIDDocument returns the DID Document for the underlying WhoIs
func (*Session) Descriptor ¶ added in v0.0.8
func (*Session) GenerateDID ¶ added in v0.0.8
GenerateDID takes the input string and generates a DID URL
func (*Session) GetBaseDid ¶ added in v0.0.8
func (*Session) GetCredential ¶ added in v0.0.8
func (m *Session) GetCredential() *Credential
func (*Session) MarshalToSizedBuffer ¶ added in v0.0.8
func (*Session) ProtoMessage ¶ added in v0.0.8
func (*Session) ProtoMessage()
func (*Session) WebAuthnCredential ¶ added in v0.0.8
func (s *Session) WebAuthnCredential() webauthn.Credential
WebAuthnCredential returns the Sonr Credential as the Webauthn type
func (*Session) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *Session) XXX_DiscardUnknown()
func (*Session) XXX_Marshal ¶ added in v0.0.8
func (*Session) XXX_Unmarshal ¶ added in v0.0.8
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AccessApplication ¶ added in v0.0.7
func (*UnimplementedMsgServer) AccessApplication(ctx context.Context, req *MsgAccessApplication) (*MsgAccessApplicationResponse, error)
func (*UnimplementedMsgServer) AccessName ¶
func (*UnimplementedMsgServer) AccessName(ctx context.Context, req *MsgAccessName) (*MsgAccessNameResponse, error)
func (*UnimplementedMsgServer) CreateWhoIs ¶
func (*UnimplementedMsgServer) CreateWhoIs(ctx context.Context, req *MsgCreateWhoIs) (*MsgCreateWhoIsResponse, error)
func (*UnimplementedMsgServer) DeleteWhoIs ¶
func (*UnimplementedMsgServer) DeleteWhoIs(ctx context.Context, req *MsgDeleteWhoIs) (*MsgDeleteWhoIsResponse, error)
func (*UnimplementedMsgServer) RegisterApplication ¶ added in v0.0.7
func (*UnimplementedMsgServer) RegisterApplication(ctx context.Context, req *MsgRegisterApplication) (*MsgRegisterApplicationResponse, error)
func (*UnimplementedMsgServer) RegisterName ¶
func (*UnimplementedMsgServer) RegisterName(ctx context.Context, req *MsgRegisterName) (*MsgRegisterNameResponse, error)
func (*UnimplementedMsgServer) UpdateApplication ¶ added in v0.0.7
func (*UnimplementedMsgServer) UpdateApplication(ctx context.Context, req *MsgUpdateApplication) (*MsgUpdateApplicationResponse, error)
func (*UnimplementedMsgServer) UpdateName ¶
func (*UnimplementedMsgServer) UpdateName(ctx context.Context, req *MsgUpdateName) (*MsgUpdateNameResponse, error)
func (*UnimplementedMsgServer) UpdateWhoIs ¶
func (*UnimplementedMsgServer) UpdateWhoIs(ctx context.Context, req *MsgUpdateWhoIs) (*MsgUpdateWhoIsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) WhoIs ¶
func (*UnimplementedQueryServer) WhoIs(ctx context.Context, req *QueryGetWhoIsRequest) (*QueryGetWhoIsResponse, error)
func (*UnimplementedQueryServer) WhoIsAll ¶
func (*UnimplementedQueryServer) WhoIsAll(ctx context.Context, req *QueryAllWhoIsRequest) (*QueryAllWhoIsResponse, error)
type WhoIs ¶
type WhoIs struct { // Name is the registered name of the User or Application Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // DID is the DID of the account Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` // Document is the DID Document of the registered name and account encoded as JSON Document []byte `protobuf:"bytes,3,opt,name=document,proto3" json:"document,omitempty"` // Creator is the Account Address of the creator of the DID Document Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"` // Credentials are the biometric info of the registered name and account encoded with public key Credentials []*Credential `protobuf:"bytes,5,rep,name=credentials,proto3" json:"credentials,omitempty"` // Type is the type of the registered name Type WhoIs_Type `protobuf:"varint,6,opt,name=type,proto3,enum=sonrio.sonr.registry.WhoIs_Type" json:"type,omitempty"` // Additional Metadata for associated WhoIs Metadata map[string]string `` /* 157-byte string literal not displayed */ // Timestamp is the time of the last update of the DID Document Timestamp int64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // IsActive is the status of the DID Document IsActive bool `protobuf:"varint,9,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` }
WhoIs is the entry pointing a registered name to a user account address, Did Url string, and a DIDDocument.
func (*WhoIs) AddCredential ¶ added in v0.0.3
func (w *WhoIs) AddCredential(cred *Credential)
AddCredential adds a webauthn credential to the whois object on the registry
func (*WhoIs) ApplicationCategory ¶ added in v0.0.8
ApplicationCategory returns the category of the application
func (*WhoIs) ApplicationDescription ¶ added in v0.0.8
ApplicationDescription returns the description of the application
func (*WhoIs) ApplicationName ¶ added in v0.0.8
ApplicationName returns the app name from the WhoIs metadata
func (*WhoIs) ApplicationUrl ¶ added in v0.0.8
ApplicationUrl returns the website of the application
func (*WhoIs) CredentialExcludeList ¶ added in v0.0.3
func (w *WhoIs) CredentialExcludeList() []protocol.CredentialDescriptor
CredentialExcludeList returns a CredentialDescriptor array filled with all the user's credentials
func (*WhoIs) DIDDocument ¶ added in v0.0.8
DIDDocument returns the DID document of the whois object
func (*WhoIs) Descriptor ¶
func (*WhoIs) GetCreator ¶
func (*WhoIs) GetCredentials ¶ added in v0.0.3
func (m *WhoIs) GetCredentials() []*Credential
func (*WhoIs) GetDocument ¶
func (*WhoIs) GetIsActive ¶ added in v0.0.9
func (*WhoIs) GetMetadata ¶ added in v0.0.8
func (*WhoIs) GetTimestamp ¶ added in v0.0.9
func (*WhoIs) GetType ¶ added in v0.0.7
func (m *WhoIs) GetType() WhoIs_Type
func (*WhoIs) IsApplication ¶ added in v0.0.8
IsApplication returns true if WhoIs type is WhoIs_Application
func (*WhoIs) ProtoMessage ¶
func (*WhoIs) ProtoMessage()
func (*WhoIs) WebAuthnCredentials ¶ added in v0.0.3
func (w *WhoIs) WebAuthnCredentials() []webauthn.Credential
WebAuthnCredentials returns credentials owned by the user
func (*WhoIs) WebAuthnDisplayName ¶ added in v0.0.3
WebAuthnDisplayName returns the display name of the user's authenticator
func (*WhoIs) WebAuthnID ¶ added in v0.0.3
WebAuthnID returns the ID of the user's authenticator
func (*WhoIs) WebAuthnIcon ¶ added in v0.0.3
WebAuthnIcon returns the icon of the user's authenticator
func (*WhoIs) WebAuthnName ¶ added in v0.0.3
WebAuthnDisplayName returns the display name of the user's authenticator
func (*WhoIs) XXX_DiscardUnknown ¶
func (m *WhoIs) XXX_DiscardUnknown()
func (*WhoIs) XXX_Marshal ¶
func (*WhoIs) XXX_Unmarshal ¶
type WhoIs_Type ¶ added in v0.0.7
type WhoIs_Type int32
Type is the type of the registered name
const ( // User is the type of the registered name WhoIs_User WhoIs_Type = 0 // Application is the type of the registered name WhoIs_Application WhoIs_Type = 1 )
func (WhoIs_Type) EnumDescriptor ¶ added in v0.0.7
func (WhoIs_Type) EnumDescriptor() ([]byte, []int)
func (WhoIs_Type) String ¶ added in v0.0.7
func (x WhoIs_Type) String() string
Source Files ¶
- codec.go
- cose_key.go
- credential.go
- credential.pb.go
- did.go
- errors.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- key_who_is.go
- keys.go
- message_access_application.go
- message_access_name.go
- message_register_application.go
- message_register_name.go
- message_update_application.go
- message_update_name.go
- messages_who_is.go
- params.go
- params.pb.go
- query.pb.go
- query.pb.gw.go
- tx.pb.go
- types.go
- who_is.go
- who_is.pb.go