identity

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 29 Imported by: 0

README

x/identity

The Identity module is responsible for managing native Sonr Accounts, their derived wallets, and associated user identification information.

Concepts

Account
Decentralized Identifier (DID)
Verifiable Credential (VC)

State

Specify and describe structures expected to marshalled into the store, and their keys

State Transitions

Standard state transition operations triggered by hooks, messages, etc.

Messages

Specify message structure(s) and expected state machine behaviour(s).

Begin Block

Specify any begin-block operations.

End Block

Specify any end-block operations.

Hooks

Describe available hooks to be called by/from this module.

Events

List and describe event tags used.

Client

List and describe CLI commands and gRPC and REST endpoints.

Params

List all module parameters, their types (in JSON) and identitys.

Future Improvements

Describe future improvements of this module.

Tests

Acceptance tests.

Appendix

Supplementary details referenced elsewhere within the spec.

Tech Stack

sonrhq/identity is built on the following main stack:

Documentation

Overview

Package identity is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const ModuleName = "identity"

Variables

View Source
var (
	ErrInvalidLengthIdentifier        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIdentifier          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIdentifier = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamsKey  = collections.NewPrefix(0)
	CounterKey = collections.NewPrefix(1)
)
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 (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ErrDuplicateAddress error if there is a duplicate address
	ErrDuplicateAddress = errors.Register(ModuleName, 2, "duplicate address")
)
View Source
var UserIdentifierType_name = map[int32]string{
	0: "USER_IDENTIFIER_TYPE_UNSPECIFIED",
	1: "USER_IDENTIFIER_TYPE_EMAIL",
	2: "USER_IDENTIFIER_TYPE_PHONE",
	3: "USER_IDENTIFIER_TYPE_FIDO",
	4: "USER_IDENTIFIER_TYPE_PASSKEY",
	5: "USER_IDENTIFIER_TYPE_PUBLIC_KEY",
}
View Source
var UserIdentifierType_value = map[string]int32{
	"USER_IDENTIFIER_TYPE_UNSPECIFIED": 0,
	"USER_IDENTIFIER_TYPE_EMAIL":       1,
	"USER_IDENTIFIER_TYPE_PHONE":       2,
	"USER_IDENTIFIER_TYPE_FIDO":        3,
	"USER_IDENTIFIER_TYPE_PASSKEY":     4,
	"USER_IDENTIFIER_TYPE_PUBLIC_KEY":  5,
}

Functions

func GetAddressByPublicKey added in v0.14.0

func GetAddressByPublicKey(pubKey []byte, coinType modulev1.CoinType) (string, error)

func GetCoinTypeDIDMethod added in v0.14.0

func GetCoinTypeDIDMethod(coinType modulev1.CoinType) string

GetCoinTypeDIDMethod returns the DID method for a given coin type

func GetCoinTypeHRP added in v0.14.0

func GetCoinTypeHRP(coinType modulev1.CoinType) string

GetCoinTypeHRP returns the HRP for a given coin type

func GetDIDMethodCoinType added in v0.14.0

func GetDIDMethodCoinType(didMethod string) (modulev1.CoinType, error)

GetDIDMethodCoinType returns the coin type for a given DID method

func RegisterInterfaces added in v0.8.10

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the interfaces types with the interface registry.

func RegisterMsgServer added in v0.8.10

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.8.10

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

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint added in v0.8.10

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer added in v0.8.10

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer added in v0.8.10

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type BankKeeper added in v0.8.10

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

BankKeeper defines the expected interface needed to retrieve account balances.

type Counter added in v0.8.10

type Counter struct {
	// count defines the count of the counter.
	Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// address defines the address that is associated with the count.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

Counter defines a counter object. It is used only for genesis purposes. Collections does not need to use it.

func (*Counter) Descriptor added in v0.8.10

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

func (*Counter) GetAddress added in v0.8.10

func (m *Counter) GetAddress() string

func (*Counter) GetCount added in v0.8.10

func (m *Counter) GetCount() uint64

func (*Counter) Marshal added in v0.8.10

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

func (*Counter) MarshalTo added in v0.8.10

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

func (*Counter) MarshalToSizedBuffer added in v0.8.10

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

func (*Counter) ProtoMessage added in v0.8.10

func (*Counter) ProtoMessage()

func (*Counter) Reset added in v0.8.10

func (m *Counter) Reset()

func (*Counter) Size added in v0.8.10

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

func (*Counter) String added in v0.8.10

func (m *Counter) String() string

func (*Counter) Unmarshal added in v0.8.10

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

func (*Counter) XXX_DiscardUnknown added in v0.8.10

func (m *Counter) XXX_DiscardUnknown()

func (*Counter) XXX_Marshal added in v0.8.10

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

func (*Counter) XXX_Merge added in v0.8.10

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

func (*Counter) XXX_Size added in v0.8.10

func (m *Counter) XXX_Size() int

func (*Counter) XXX_Unmarshal added in v0.8.10

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

type GenesisState added in v0.8.10

type GenesisState struct {
	// counter defines the counter object.
	Counters []Counter `protobuf:"bytes,1,rep,name=counters,proto3" json:"counters"`
	// params defines all the parameters of the module.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

GenesisState is the state that must be provided at genesis.

func NewGenesisState added in v0.8.10

func NewGenesisState() *GenesisState

NewGenesisState creates a new genesis state with default values.

func (*GenesisState) Descriptor added in v0.8.10

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

func (*GenesisState) GetCounters added in v0.8.10

func (m *GenesisState) GetCounters() []Counter

func (*GenesisState) GetParams added in v0.8.10

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal added in v0.8.10

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

func (*GenesisState) MarshalTo added in v0.8.10

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

func (*GenesisState) MarshalToSizedBuffer added in v0.8.10

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

func (*GenesisState) ProtoMessage added in v0.8.10

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.8.10

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.8.10

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

func (*GenesisState) String added in v0.8.10

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.8.10

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

func (*GenesisState) Validate added in v0.8.10

func (gs *GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any

func (*GenesisState) XXX_DiscardUnknown added in v0.8.10

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.8.10

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

func (*GenesisState) XXX_Merge added in v0.8.10

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

func (*GenesisState) XXX_Size added in v0.8.10

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.8.10

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

type MsgClient added in v0.8.10

type MsgClient interface {
	// IncrementCounter increments the counter.
	InitializeIdentity(ctx context.Context, in *MsgInitializeIdentity, opts ...grpc.CallOption) (*MsgInitializeIdentityResponse, error)
	// UpdateParams updates the module parameters.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient added in v0.8.10

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgInitializeIdentity added in v0.14.0

type MsgInitializeIdentity struct {
	// sender is the message sender.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// peer_id is the peer id of the identity.
	PeerId string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// address is the address of the identity.
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// public_key is the public key of the identity.
	PublicKey []byte `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// ipns is the ipns of the identity.
	Ipns string `protobuf:"bytes,5,opt,name=ipns,proto3" json:"ipns,omitempty"`
	// accumulator_key is the accumulator key of the identity.
	AccumulatorKey []byte `protobuf:"bytes,6,opt,name=accumulator_key,json=accumulatorKey,proto3" json:"accumulator_key,omitempty"`
	// network is the network of the identity.
	Network string `protobuf:"bytes,7,opt,name=network,proto3" json:"network,omitempty"`
}

MsgInitializeIdentity defines the Msg/IncrementCounter request type.

func (*MsgInitializeIdentity) Descriptor added in v0.14.0

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

func (*MsgInitializeIdentity) GetAccumulatorKey added in v0.14.0

func (m *MsgInitializeIdentity) GetAccumulatorKey() []byte

func (*MsgInitializeIdentity) GetAddress added in v0.14.0

func (m *MsgInitializeIdentity) GetAddress() string

func (*MsgInitializeIdentity) GetIpns added in v0.14.0

func (m *MsgInitializeIdentity) GetIpns() string

func (*MsgInitializeIdentity) GetNetwork added in v0.14.0

func (m *MsgInitializeIdentity) GetNetwork() string

func (*MsgInitializeIdentity) GetPeerId added in v0.14.0

func (m *MsgInitializeIdentity) GetPeerId() string

func (*MsgInitializeIdentity) GetPublicKey added in v0.14.0

func (m *MsgInitializeIdentity) GetPublicKey() []byte

func (*MsgInitializeIdentity) GetSender added in v0.14.0

func (m *MsgInitializeIdentity) GetSender() string

func (*MsgInitializeIdentity) Marshal added in v0.14.0

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

func (*MsgInitializeIdentity) MarshalTo added in v0.14.0

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

func (*MsgInitializeIdentity) MarshalToSizedBuffer added in v0.14.0

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

func (*MsgInitializeIdentity) ProtoMessage added in v0.14.0

func (*MsgInitializeIdentity) ProtoMessage()

func (*MsgInitializeIdentity) Reset added in v0.14.0

func (m *MsgInitializeIdentity) Reset()

func (*MsgInitializeIdentity) Size added in v0.14.0

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

func (*MsgInitializeIdentity) String added in v0.14.0

func (m *MsgInitializeIdentity) String() string

func (*MsgInitializeIdentity) Unmarshal added in v0.14.0

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

func (*MsgInitializeIdentity) XXX_DiscardUnknown added in v0.14.0

func (m *MsgInitializeIdentity) XXX_DiscardUnknown()

func (*MsgInitializeIdentity) XXX_Marshal added in v0.14.0

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

func (*MsgInitializeIdentity) XXX_Merge added in v0.14.0

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

func (*MsgInitializeIdentity) XXX_Size added in v0.14.0

func (m *MsgInitializeIdentity) XXX_Size() int

func (*MsgInitializeIdentity) XXX_Unmarshal added in v0.14.0

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

type MsgInitializeIdentityResponse added in v0.14.0

type MsgInitializeIdentityResponse struct {
}

MsgInitializeIdentityResponse defines the Msg/InitializeIdentity response type.

func (*MsgInitializeIdentityResponse) Descriptor added in v0.14.0

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

func (*MsgInitializeIdentityResponse) Marshal added in v0.14.0

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

func (*MsgInitializeIdentityResponse) MarshalTo added in v0.14.0

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

func (*MsgInitializeIdentityResponse) MarshalToSizedBuffer added in v0.14.0

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

func (*MsgInitializeIdentityResponse) ProtoMessage added in v0.14.0

func (*MsgInitializeIdentityResponse) ProtoMessage()

func (*MsgInitializeIdentityResponse) Reset added in v0.14.0

func (m *MsgInitializeIdentityResponse) Reset()

func (*MsgInitializeIdentityResponse) Size added in v0.14.0

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

func (*MsgInitializeIdentityResponse) String added in v0.14.0

func (*MsgInitializeIdentityResponse) Unmarshal added in v0.14.0

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

func (*MsgInitializeIdentityResponse) XXX_DiscardUnknown added in v0.14.0

func (m *MsgInitializeIdentityResponse) XXX_DiscardUnknown()

func (*MsgInitializeIdentityResponse) XXX_Marshal added in v0.14.0

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

func (*MsgInitializeIdentityResponse) XXX_Merge added in v0.14.0

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

func (*MsgInitializeIdentityResponse) XXX_Size added in v0.14.0

func (m *MsgInitializeIdentityResponse) XXX_Size() int

func (*MsgInitializeIdentityResponse) XXX_Unmarshal added in v0.14.0

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

type MsgServer added in v0.8.10

type MsgServer interface {
	// IncrementCounter increments the counter.
	InitializeIdentity(context.Context, *MsgInitializeIdentity) (*MsgInitializeIdentityResponse, error)
	// UpdateParams updates the module parameters.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams added in v0.8.10

type MsgUpdateParams struct {
	// authority is the address that controls the module
	// NOTE: Defaults to the governance module unless overwritten.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the module parameters to update.
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor added in v0.8.10

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

func (*MsgUpdateParams) GetAuthority added in v0.8.10

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v0.8.10

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal added in v0.8.10

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

func (*MsgUpdateParams) MarshalTo added in v0.8.10

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v0.8.10

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

func (*MsgUpdateParams) ProtoMessage added in v0.8.10

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v0.8.10

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v0.8.10

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

func (*MsgUpdateParams) String added in v0.8.10

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v0.8.10

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

func (*MsgUpdateParams) XXX_DiscardUnknown added in v0.8.10

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v0.8.10

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

func (*MsgUpdateParams) XXX_Merge added in v0.8.10

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

func (*MsgUpdateParams) XXX_Size added in v0.8.10

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v0.8.10

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

type MsgUpdateParamsResponse added in v0.8.10

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor added in v0.8.10

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

func (*MsgUpdateParamsResponse) Marshal added in v0.8.10

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

func (*MsgUpdateParamsResponse) MarshalTo added in v0.8.10

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v0.8.10

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v0.8.10

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v0.8.10

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v0.8.10

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

func (*MsgUpdateParamsResponse) String added in v0.8.10

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v0.8.10

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v0.8.10

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v0.8.10

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v0.8.10

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

func (*MsgUpdateParamsResponse) XXX_Size added in v0.8.10

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v0.8.10

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

type Params added in v0.8.10

type Params struct {
}

Params defines the parameters of the module.

func DefaultParams added in v0.8.10

func DefaultParams() Params

DefaultParams returns default module parameters.

func (*Params) Descriptor added in v0.8.10

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

func (*Params) Marshal added in v0.8.10

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

func (*Params) MarshalTo added in v0.8.10

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

func (*Params) MarshalToSizedBuffer added in v0.8.10

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

func (*Params) ProtoMessage added in v0.8.10

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.8.10

func (m *Params) Reset()

func (*Params) Size added in v0.8.10

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

func (*Params) String added in v0.8.10

func (m *Params) String() string

func (*Params) Unmarshal added in v0.8.10

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

func (Params) Validate added in v0.8.10

func (p Params) Validate() error

Validate does the sanity check on the params.

func (*Params) XXX_DiscardUnknown added in v0.8.10

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.8.10

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

func (*Params) XXX_Merge added in v0.8.10

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

func (*Params) XXX_Size added in v0.8.10

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.8.10

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

type QueryClient added in v0.8.10

type QueryClient interface {
	// Params returns the module parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient added in v0.8.10

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest added in v0.8.10

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor added in v0.8.10

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

func (*QueryParamsRequest) Marshal added in v0.8.10

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

func (*QueryParamsRequest) MarshalTo added in v0.8.10

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.8.10

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

func (*QueryParamsRequest) ProtoMessage added in v0.8.10

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.8.10

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.8.10

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

func (*QueryParamsRequest) String added in v0.8.10

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.8.10

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.8.10

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.8.10

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

func (*QueryParamsRequest) XXX_Merge added in v0.8.10

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

func (*QueryParamsRequest) XXX_Size added in v0.8.10

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.8.10

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

type QueryParamsResponse added in v0.8.10

type QueryParamsResponse struct {
	// params defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor added in v0.8.10

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

func (*QueryParamsResponse) GetParams added in v0.8.10

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal added in v0.8.10

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

func (*QueryParamsResponse) MarshalTo added in v0.8.10

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.8.10

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

func (*QueryParamsResponse) ProtoMessage added in v0.8.10

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.8.10

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.8.10

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

func (*QueryParamsResponse) String added in v0.8.10

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.8.10

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.8.10

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.8.10

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

func (*QueryParamsResponse) XXX_Merge added in v0.8.10

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

func (*QueryParamsResponse) XXX_Size added in v0.8.10

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.8.10

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

type QueryServer added in v0.8.10

type QueryServer interface {
	// Params returns the module parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer added in v0.8.10

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) InitializeIdentity added in v0.14.0

func (*UnimplementedMsgServer) UpdateParams added in v0.8.10

type UnimplementedQueryServer added in v0.8.10

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params added in v0.8.10

type UserIdentifier added in v0.8.10

type UserIdentifier struct {
	// The type of identifier.
	IdentifierType UserIdentifierType `` /* 145-byte string literal not displayed */
	// The value of the identifier.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

UserIdentifier represents the structure of a user identifier.

func (*UserIdentifier) Descriptor added in v0.8.10

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

func (*UserIdentifier) GetIdentifierType added in v0.8.10

func (m *UserIdentifier) GetIdentifierType() UserIdentifierType

func (*UserIdentifier) GetValue added in v0.8.10

func (m *UserIdentifier) GetValue() string

func (*UserIdentifier) Marshal added in v0.8.10

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

func (*UserIdentifier) MarshalTo added in v0.8.10

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

func (*UserIdentifier) MarshalToSizedBuffer added in v0.8.10

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

func (*UserIdentifier) ProtoMessage added in v0.8.10

func (*UserIdentifier) ProtoMessage()

func (*UserIdentifier) Reset added in v0.8.10

func (m *UserIdentifier) Reset()

func (*UserIdentifier) Size added in v0.8.10

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

func (*UserIdentifier) String added in v0.8.10

func (m *UserIdentifier) String() string

func (*UserIdentifier) Unmarshal added in v0.8.10

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

func (*UserIdentifier) XXX_DiscardUnknown added in v0.8.10

func (m *UserIdentifier) XXX_DiscardUnknown()

func (*UserIdentifier) XXX_Marshal added in v0.8.10

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

func (*UserIdentifier) XXX_Merge added in v0.8.10

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

func (*UserIdentifier) XXX_Size added in v0.8.10

func (m *UserIdentifier) XXX_Size() int

func (*UserIdentifier) XXX_Unmarshal added in v0.8.10

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

type UserIdentifierType added in v0.8.10

type UserIdentifierType int32

UserIdentifierType represents the type of a user identifier.

const (
	// The type of identifier is unknown.
	UserIdentifierType_USER_IDENTIFIER_TYPE_UNSPECIFIED UserIdentifierType = 0
	// The type of identifier is an email address.
	UserIdentifierType_USER_IDENTIFIER_TYPE_EMAIL UserIdentifierType = 1
	// The type of identifier is a phone number.
	UserIdentifierType_USER_IDENTIFIER_TYPE_PHONE UserIdentifierType = 2
	// The type of identifier is a FIDO credential ID.
	UserIdentifierType_USER_IDENTIFIER_TYPE_FIDO UserIdentifierType = 3
	// The type of a Passkey identifier.
	UserIdentifierType_USER_IDENTIFIER_TYPE_PASSKEY UserIdentifierType = 4
	// The type of a public key identifier.
	UserIdentifierType_USER_IDENTIFIER_TYPE_PUBLIC_KEY UserIdentifierType = 5
)

func (UserIdentifierType) EnumDescriptor added in v0.8.10

func (UserIdentifierType) EnumDescriptor() ([]byte, []int)

func (UserIdentifierType) String added in v0.8.10

func (x UserIdentifierType) String() string

type WalletIdentifier added in v0.8.10

type WalletIdentifier struct {
	// The bip44 coin type.
	CoinType uint32 `protobuf:"varint,1,opt,name=coin_type,json=coinType,proto3" json:"coin_type,omitempty"`
	// The value of the identifier is the address of the wallet.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

WalletIdentifier represents the structure of a wallet identifier.

func (*WalletIdentifier) Descriptor added in v0.8.10

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

func (*WalletIdentifier) GetCoinType added in v0.8.10

func (m *WalletIdentifier) GetCoinType() uint32

func (*WalletIdentifier) GetValue added in v0.8.10

func (m *WalletIdentifier) GetValue() string

func (*WalletIdentifier) Marshal added in v0.8.10

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

func (*WalletIdentifier) MarshalTo added in v0.8.10

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

func (*WalletIdentifier) MarshalToSizedBuffer added in v0.8.10

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

func (*WalletIdentifier) ProtoMessage added in v0.8.10

func (*WalletIdentifier) ProtoMessage()

func (*WalletIdentifier) Reset added in v0.8.10

func (m *WalletIdentifier) Reset()

func (*WalletIdentifier) Size added in v0.8.10

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

func (*WalletIdentifier) String added in v0.8.10

func (m *WalletIdentifier) String() string

func (*WalletIdentifier) Unmarshal added in v0.8.10

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

func (*WalletIdentifier) XXX_DiscardUnknown added in v0.8.10

func (m *WalletIdentifier) XXX_DiscardUnknown()

func (*WalletIdentifier) XXX_Marshal added in v0.8.10

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

func (*WalletIdentifier) XXX_Merge added in v0.8.10

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

func (*WalletIdentifier) XXX_Size added in v0.8.10

func (m *WalletIdentifier) XXX_Size() int

func (*WalletIdentifier) XXX_Unmarshal added in v0.8.10

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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