types

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2022 License: GPL-3.0 Imports: 47 Imported by: 2

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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"
)
View Source
const (
	TypeMsgCreateWhoIs = "create_who_is"
	TypeMsgUpdateWhoIs = "update_who_is"
	TypeMsgDeleteWhoIs = "delete_who_is"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgAccessApplication = "access_application"
View Source
const TypeMsgAccessName = "access_name"
View Source
const TypeMsgRegisterApplication = "register_application"
View Source
const TypeMsgRegisterName = "register_name"
View Source
const TypeMsgUpdateApplication = "update_application"
View Source
const TypeMsgUpdateName = "update_name"
View Source
const (
	// WhoIsKeyPrefix is the prefix to retrieve all WhoIs
	WhoIsKeyPrefix = "WhoIs/value/"
)

Variables

View Source
var (
	ErrInvalidLengthCredential        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCredential          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCredential = fmt.Errorf("proto: unexpected end of group")
)
View Source
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

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthWhoIs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWhoIs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWhoIs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var WhoIs_Type_name = map[int32]string{
	0: "User",
	1: "Application",
}
View Source
var WhoIs_Type_value = map[string]int32{
	"User":        0,
	"Application": 1,
}

Functions

func CleanNameForSuffix added in v0.0.3

func CleanNameForSuffix(name string) string

CleanName checks if the username is available

func DecodePublicKey added in v0.0.3

func DecodePublicKey(coseKey *COSEKey) (crypto.PublicKey, error)

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 KeyPrefix

func KeyPrefix(p string) []byte

func NewAuthenticatorToBuf added in v0.0.11

func NewAuthenticatorToBuf(ath *Authenticator) *rt.Authenticator

func NewCredentialListToBuf added in v0.0.11

func NewCredentialListToBuf(crds []*Credential) []*rt.Credential

func NewCredentialToBuf added in v0.0.11

func NewCredentialToBuf(crd *Credential) *rt.Credential

func NewWhoIsToBuf added in v0.0.11

func NewWhoIsToBuf(doc *WhoIs) *rt.WhoIs

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

func ValidateAppName(rs string) (string, error)

ValidateAppName checks if the given name to register is correct length and valid characters

func ValidateName added in v0.0.7

func ValidateName(rs string) (string, error)

ValidateName checks if the given name to register is correct length and valid characters

func VerifySignature added in v0.0.3

func VerifySignature(rawKey cbor.RawMessage, message, sig []byte) error

VerifySignature verifies a signature using a provided COSEKey, message, and signature

func WhoIsKey

func WhoIsKey(did string) []byte

WhoIsKey returns the store key to retrieve a WhoIs from the did field

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

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 NewAuthenticatorFromBuf added in v0.0.11

func NewAuthenticatorFromBuf(ath *rt.Authenticator) *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

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

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 NewCredentialFromBuf added in v0.0.11

func NewCredentialFromBuf(crd *rt.Credential) *Credential

func NewCredentialListFromBuf added in v0.0.11

func NewCredentialListFromBuf(crds []*rt.Credential) []*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

func NewError added in v0.0.3

func NewError(fmStr string, els ...interface{}) Error

NewError returns a new Error with a custom message

func (Error) Error added in v0.0.3

func (e Error) Error() string

Error implements the error interface

func (Error) Is added in v0.0.3

func (e Error) Is(target error) bool

Is establishes equality for error types

func (Error) Unwrap added in v0.0.3

func (e Error) Unwrap() error

Unwrap allows for error unwrapping

func (Error) Wrap added in v0.0.3

func (e Error) Wrap(err error) Error

Wrap returns a new error which contains the provided error wrapped with this error

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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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=app_name,json=appName,proto3" json:"app_name,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=who_is,json=whoIs,proto3" json:"who_is,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 (*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) MarshalTo

func (m *MsgAccessName) MarshalTo(dAtA []byte) (int, 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=who_is,json=whoIs,proto3" json:"who_is,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 {
	// Register Application
	//
	// RegisterApplication registers a new application on the Registry module.
	RegisterApplication(ctx context.Context, in *MsgRegisterApplication, opts ...grpc.CallOption) (*MsgRegisterApplicationResponse, error)
	// Register Name
	//
	// RegisterName registers a .snr/ name for an account on the Registry module.
	RegisterName(ctx context.Context, in *MsgRegisterName, opts ...grpc.CallOption) (*MsgRegisterNameResponse, error)
	// Access Name
	//
	// AccessName allows an account to access a .snr/ name on the Registry module. The equivalent of
	// of a traditional Login method.
	AccessName(ctx context.Context, in *MsgAccessName, opts ...grpc.CallOption) (*MsgAccessNameResponse, error)
	// Update Name
	//
	// UpdateName allows an account to update a .snr/ name on the Registry module. Or,
	// in other words, link a new device to an existing .snr/ name.
	UpdateName(ctx context.Context, in *MsgUpdateName, opts ...grpc.CallOption) (*MsgUpdateNameResponse, error)
	// Access Application
	//
	// AccessApplication allows an account to access an application on the Registry module.
	AccessApplication(ctx context.Context, in *MsgAccessApplication, opts ...grpc.CallOption) (*MsgAccessApplicationResponse, error)
	// Update Application
	//
	// UpdateApplication allows an account to update an application's config on the Registry module.
	UpdateApplication(ctx context.Context, in *MsgUpdateApplication, opts ...grpc.CallOption) (*MsgUpdateApplicationResponse, error)
	// Create WhoIs
	//
	// CreateWhoIs allows an account to create a WhoIs on the Registry module.
	CreateWhoIs(ctx context.Context, in *MsgCreateWhoIs, opts ...grpc.CallOption) (*MsgCreateWhoIsResponse, error)
	// Update WhoIs
	//
	// UpdateWhoIs allows an account to update a WhoIs on the Registry module.
	UpdateWhoIs(ctx context.Context, in *MsgUpdateWhoIs, opts ...grpc.CallOption) (*MsgUpdateWhoIsResponse, error)
	// Delete WhoIs
	//
	// DeleteWhoIs allows an account to delete a WhoIs on the Registry module.
	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,
	n string,

) *MsgCreateWhoIs

func NewMsgCreateWhoIsFromBuf added in v0.0.11

func NewMsgCreateWhoIsFromBuf(msg *rt.MsgCreateWhoIs) *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) MarshalTo

func (m *MsgCreateWhoIs) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MsgDeleteWhoIs) MarshalTo(dAtA []byte) (int, 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=who_is,json=whoIs,proto3" json:"who_is,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 (*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 (*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=name_to_register,json=nameToRegister,proto3" json:"name_to_register,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) MarshalTo

func (m *MsgRegisterName) MarshalTo(dAtA []byte) (int, 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=who_is,json=whoIs,proto3" json:"who_is,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 {
	// Register Application
	//
	// RegisterApplication registers a new application on the Registry module.
	RegisterApplication(context.Context, *MsgRegisterApplication) (*MsgRegisterApplicationResponse, error)
	// Register Name
	//
	// RegisterName registers a .snr/ name for an account on the Registry module.
	RegisterName(context.Context, *MsgRegisterName) (*MsgRegisterNameResponse, error)
	// Access Name
	//
	// AccessName allows an account to access a .snr/ name on the Registry module. The equivalent of
	// of a traditional Login method.
	AccessName(context.Context, *MsgAccessName) (*MsgAccessNameResponse, error)
	// Update Name
	//
	// UpdateName allows an account to update a .snr/ name on the Registry module. Or,
	// in other words, link a new device to an existing .snr/ name.
	UpdateName(context.Context, *MsgUpdateName) (*MsgUpdateNameResponse, error)
	// Access Application
	//
	// AccessApplication allows an account to access an application on the Registry module.
	AccessApplication(context.Context, *MsgAccessApplication) (*MsgAccessApplicationResponse, error)
	// Update Application
	//
	// UpdateApplication allows an account to update an application's config on the Registry module.
	UpdateApplication(context.Context, *MsgUpdateApplication) (*MsgUpdateApplicationResponse, error)
	// Create WhoIs
	//
	// CreateWhoIs allows an account to create a WhoIs on the Registry module.
	CreateWhoIs(context.Context, *MsgCreateWhoIs) (*MsgCreateWhoIsResponse, error)
	// Update WhoIs
	//
	// UpdateWhoIs allows an account to update a WhoIs on the Registry module.
	UpdateWhoIs(context.Context, *MsgUpdateWhoIs) (*MsgUpdateWhoIsResponse, error)
	// Delete WhoIs
	//
	// DeleteWhoIs allows an account to delete a WhoIs on the Registry module.
	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, m map[string]string, s *Session) *MsgUpdateApplication

func NewMsgUpdateApplicationFromBuf added in v0.0.11

func NewMsgUpdateApplicationFromBuf(msg *rt.MsgUpdateApplication) *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=who_is,json=whoIs,proto3" json:"who_is,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 (*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, c *Credential, m map[string]string, s *Session) *MsgUpdateName

func NewMsgUpdateNameFromBuf added in v0.0.11

func NewMsgUpdateNameFromBuf(msg *rt.MsgUpdateName) *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) MarshalTo

func (m *MsgUpdateName) MarshalTo(dAtA []byte) (int, 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=who_is,json=whoIs,proto3" json:"who_is,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) MarshalTo

func (m *MsgUpdateWhoIs) MarshalTo(dAtA []byte) (int, 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 DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

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=who_is,json=whoIs,proto3" json:"who_is"`
	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 {
	// Params
	//
	// Params queries the parameters of the Registry Module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// WhoIs
	//
	// Queries a WhoIs by did.
	WhoIs(ctx context.Context, in *QueryWhoIsRequest, opts ...grpc.CallOption) (*QueryWhoIsResponse, error)
	// WhoIsAll
	//
	// 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 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 {
	// Params
	//
	// Params queries the parameters of the Registry Module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// WhoIs
	//
	// Queries a WhoIs by did.
	WhoIs(context.Context, *QueryWhoIsRequest) (*QueryWhoIsResponse, error)
	// WhoIsAll
	//
	// Queries a list of WhoIs items.
	WhoIsAll(context.Context, *QueryAllWhoIsRequest) (*QueryAllWhoIsResponse, error)
}

QueryServer is the server API for Query service.

type QueryWhoIsRequest added in v0.0.10

type QueryWhoIsRequest struct {
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
}

func (*QueryWhoIsRequest) Descriptor added in v0.0.10

func (*QueryWhoIsRequest) Descriptor() ([]byte, []int)

func (*QueryWhoIsRequest) GetDid added in v0.0.10

func (m *QueryWhoIsRequest) GetDid() string

func (*QueryWhoIsRequest) Marshal added in v0.0.10

func (m *QueryWhoIsRequest) Marshal() (dAtA []byte, err error)

func (*QueryWhoIsRequest) MarshalTo added in v0.0.10

func (m *QueryWhoIsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryWhoIsRequest) MarshalToSizedBuffer added in v0.0.10

func (m *QueryWhoIsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryWhoIsRequest) ProtoMessage added in v0.0.10

func (*QueryWhoIsRequest) ProtoMessage()

func (*QueryWhoIsRequest) Reset added in v0.0.10

func (m *QueryWhoIsRequest) Reset()

func (*QueryWhoIsRequest) Size added in v0.0.10

func (m *QueryWhoIsRequest) Size() (n int)

func (*QueryWhoIsRequest) String added in v0.0.10

func (m *QueryWhoIsRequest) String() string

func (*QueryWhoIsRequest) Unmarshal added in v0.0.10

func (m *QueryWhoIsRequest) Unmarshal(dAtA []byte) error

func (*QueryWhoIsRequest) XXX_DiscardUnknown added in v0.0.10

func (m *QueryWhoIsRequest) XXX_DiscardUnknown()

func (*QueryWhoIsRequest) XXX_Marshal added in v0.0.10

func (m *QueryWhoIsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryWhoIsRequest) XXX_Merge added in v0.0.10

func (m *QueryWhoIsRequest) XXX_Merge(src proto.Message)

func (*QueryWhoIsRequest) XXX_Size added in v0.0.10

func (m *QueryWhoIsRequest) XXX_Size() int

func (*QueryWhoIsRequest) XXX_Unmarshal added in v0.0.10

func (m *QueryWhoIsRequest) XXX_Unmarshal(b []byte) error

type QueryWhoIsResponse added in v0.0.10

type QueryWhoIsResponse struct {
	WhoIs WhoIs `protobuf:"bytes,1,opt,name=who_is,json=whoIs,proto3" json:"who_is"`
}

func (*QueryWhoIsResponse) Descriptor added in v0.0.10

func (*QueryWhoIsResponse) Descriptor() ([]byte, []int)

func (*QueryWhoIsResponse) GetWhoIs added in v0.0.10

func (m *QueryWhoIsResponse) GetWhoIs() WhoIs

func (*QueryWhoIsResponse) Marshal added in v0.0.10

func (m *QueryWhoIsResponse) Marshal() (dAtA []byte, err error)

func (*QueryWhoIsResponse) MarshalTo added in v0.0.10

func (m *QueryWhoIsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryWhoIsResponse) MarshalToSizedBuffer added in v0.0.10

func (m *QueryWhoIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryWhoIsResponse) ProtoMessage added in v0.0.10

func (*QueryWhoIsResponse) ProtoMessage()

func (*QueryWhoIsResponse) Reset added in v0.0.10

func (m *QueryWhoIsResponse) Reset()

func (*QueryWhoIsResponse) Size added in v0.0.10

func (m *QueryWhoIsResponse) Size() (n int)

func (*QueryWhoIsResponse) String added in v0.0.10

func (m *QueryWhoIsResponse) String() string

func (*QueryWhoIsResponse) Unmarshal added in v0.0.10

func (m *QueryWhoIsResponse) Unmarshal(dAtA []byte) error

func (*QueryWhoIsResponse) XXX_DiscardUnknown added in v0.0.10

func (m *QueryWhoIsResponse) XXX_DiscardUnknown()

func (*QueryWhoIsResponse) XXX_Marshal added in v0.0.10

func (m *QueryWhoIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryWhoIsResponse) XXX_Merge added in v0.0.10

func (m *QueryWhoIsResponse) XXX_Merge(src proto.Message)

func (*QueryWhoIsResponse) XXX_Size added in v0.0.10

func (m *QueryWhoIsResponse) XXX_Size() int

func (*QueryWhoIsResponse) XXX_Unmarshal added in v0.0.10

func (m *QueryWhoIsResponse) XXX_Unmarshal(b []byte) error

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 NewSessionFromBuf added in v0.0.11

func NewSessionFromBuf(doc *rt.Session) *Session

NewSessionFromBuf returns a new Session object from a registry buffer

func (*Session) BaseDID added in v0.0.8

func (s *Session) BaseDID() (*did.DID, error)

BaseDID returns the DID string as a did.DID

func (*Session) Creator added in v0.0.8

func (s *Session) Creator() string

DIDDocument returns the DID Document for the underlying WhoIs

func (*Session) DIDDocument added in v0.0.8

func (s *Session) DIDDocument() (*did.Document, error)

DIDDocument returns the DID Document for the underlying WhoIs

func (*Session) Descriptor added in v0.0.8

func (*Session) Descriptor() ([]byte, []int)

func (*Session) GenerateDID added in v0.0.8

func (s *Session) GenerateDID(opts ...did.Option) (*did.DID, error)

GenerateDID takes the input string and generates a DID URL

func (*Session) GetBaseDid added in v0.0.8

func (m *Session) GetBaseDid() string

func (*Session) GetCredential added in v0.0.8

func (m *Session) GetCredential() *Credential

func (*Session) GetWhois added in v0.0.8

func (m *Session) GetWhois() *WhoIs

func (*Session) Marshal added in v0.0.8

func (m *Session) Marshal() (dAtA []byte, err error)

func (*Session) MarshalTo added in v0.0.8

func (m *Session) MarshalTo(dAtA []byte) (int, error)

func (*Session) MarshalToSizedBuffer added in v0.0.8

func (m *Session) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Session) ProtoMessage added in v0.0.8

func (*Session) ProtoMessage()

func (*Session) Reset added in v0.0.8

func (m *Session) Reset()

func (*Session) Size added in v0.0.8

func (m *Session) Size() (n int)

func (*Session) String added in v0.0.8

func (m *Session) String() string

func (*Session) Unmarshal added in v0.0.8

func (m *Session) Unmarshal(dAtA []byte) error

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 (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Session) XXX_Merge added in v0.0.8

func (m *Session) XXX_Merge(src proto.Message)

func (*Session) XXX_Size added in v0.0.8

func (m *Session) XXX_Size() int

func (*Session) XXX_Unmarshal added in v0.0.8

func (m *Session) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AccessApplication added in v0.0.7

func (*UnimplementedMsgServer) AccessName

func (*UnimplementedMsgServer) CreateWhoIs

func (*UnimplementedMsgServer) DeleteWhoIs

func (*UnimplementedMsgServer) RegisterApplication added in v0.0.7

func (*UnimplementedMsgServer) RegisterName

func (*UnimplementedMsgServer) UpdateApplication added in v0.0.7

func (*UnimplementedMsgServer) UpdateName

func (*UnimplementedMsgServer) UpdateWhoIs

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) WhoIs

func (*UnimplementedQueryServer) WhoIsAll

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 NewWhoIsFromBuf added in v0.0.11

func NewWhoIsFromBuf(doc *rt.WhoIs) *WhoIs

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

func (w *WhoIs) ApplicationCategory() (string, error)

ApplicationCategory returns the category of the application

func (*WhoIs) ApplicationDescription added in v0.0.8

func (w *WhoIs) ApplicationDescription() (string, error)

ApplicationDescription returns the description of the application

func (*WhoIs) ApplicationName added in v0.0.8

func (w *WhoIs) ApplicationName() (string, error)

ApplicationName returns the app name from the WhoIs metadata

func (*WhoIs) ApplicationUrl added in v0.0.8

func (w *WhoIs) ApplicationUrl() (string, error)

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

func (w *WhoIs) DIDDocument() (*did.Document, error)

DIDDocument returns the DID document of the whois object

func (*WhoIs) DIDUrl added in v0.0.8

func (w *WhoIs) DIDUrl() (*did.DID, error)

DIDUrl returns the did.DID string of the whois object

func (*WhoIs) Descriptor

func (*WhoIs) Descriptor() ([]byte, []int)

func (*WhoIs) GetCreator

func (m *WhoIs) GetCreator() string

func (*WhoIs) GetCredentials added in v0.0.3

func (m *WhoIs) GetCredentials() []*Credential

func (*WhoIs) GetDid

func (m *WhoIs) GetDid() string

func (*WhoIs) GetDocument

func (m *WhoIs) GetDocument() []byte

func (*WhoIs) GetIsActive added in v0.0.9

func (m *WhoIs) GetIsActive() bool

func (*WhoIs) GetMetadata added in v0.0.8

func (m *WhoIs) GetMetadata() map[string]string

func (*WhoIs) GetName

func (m *WhoIs) GetName() string

func (*WhoIs) GetTimestamp added in v0.0.9

func (m *WhoIs) GetTimestamp() int64

func (*WhoIs) GetType added in v0.0.7

func (m *WhoIs) GetType() WhoIs_Type

func (*WhoIs) IsApplication added in v0.0.8

func (w *WhoIs) IsApplication() bool

IsApplication returns true if WhoIs type is WhoIs_Application

func (*WhoIs) IsUser added in v0.0.8

func (w *WhoIs) IsUser() bool

IsUser returns true if WhoIs type is WhoIs_User

func (*WhoIs) Marshal

func (m *WhoIs) Marshal() (dAtA []byte, err error)

func (*WhoIs) MarshalTo

func (m *WhoIs) MarshalTo(dAtA []byte) (int, error)

func (*WhoIs) MarshalToSizedBuffer

func (m *WhoIs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WhoIs) ProtoMessage

func (*WhoIs) ProtoMessage()

func (*WhoIs) Reset

func (m *WhoIs) Reset()

func (*WhoIs) Size

func (m *WhoIs) Size() (n int)

func (*WhoIs) String

func (m *WhoIs) String() string

func (*WhoIs) Unmarshal

func (m *WhoIs) Unmarshal(dAtA []byte) error

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

func (w *WhoIs) WebAuthnDisplayName() string

WebAuthnDisplayName returns the display name of the user's authenticator

func (*WhoIs) WebAuthnID added in v0.0.3

func (w *WhoIs) WebAuthnID() []byte

WebAuthnID returns the ID of the user's authenticator

func (*WhoIs) WebAuthnIcon added in v0.0.3

func (w *WhoIs) WebAuthnIcon() string

WebAuthnIcon returns the icon of the user's authenticator

func (*WhoIs) WebAuthnName added in v0.0.3

func (w *WhoIs) WebAuthnName() string

WebAuthnDisplayName returns the display name of the user's authenticator

func (*WhoIs) XXX_DiscardUnknown

func (m *WhoIs) XXX_DiscardUnknown()

func (*WhoIs) XXX_Marshal

func (m *WhoIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WhoIs) XXX_Merge

func (m *WhoIs) XXX_Merge(src proto.Message)

func (*WhoIs) XXX_Size

func (m *WhoIs) XXX_Size() int

func (*WhoIs) XXX_Unmarshal

func (m *WhoIs) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL