identityv1

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Msg_InitializeIdentity_FullMethodName = "/sonr.identity.v1.Msg/InitializeIdentity"
	Msg_UpdateParams_FullMethodName       = "/sonr.identity.v1.Msg/UpdateParams"
)
View Source
const (
	Query_Params_FullMethodName = "/sonr.identity.v1.Query/Params"
)

Variables

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",
	}
	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,
	}
)

Enum value maps for UserIdentifierType.

View Source
var File_sonr_identity_v1_identifier_proto protoreflect.FileDescriptor
View Source
var File_sonr_identity_v1_query_proto protoreflect.FileDescriptor
View Source
var File_sonr_identity_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_sonr_identity_v1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sonr.identity.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "InitializeIdentity",
			Handler:    _Msg_InitializeIdentity_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sonr/identity/v1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sonr.identity.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sonr/identity/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Counter

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"`
	// contains filtered or unexported fields
}

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

func (*Counter) Descriptor deprecated

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

Deprecated: Use Counter.ProtoReflect.Descriptor instead.

func (*Counter) GetAddress

func (x *Counter) GetAddress() string

func (*Counter) GetCount

func (x *Counter) GetCount() uint64

func (*Counter) ProtoMessage

func (*Counter) ProtoMessage()

func (*Counter) ProtoReflect

func (x *Counter) ProtoReflect() protoreflect.Message

func (*Counter) Reset

func (x *Counter) Reset()

func (*Counter) String

func (x *Counter) String() string

type GenesisState

type GenesisState struct {

	// counter defines the counter object.
	Counters []*Counter `protobuf:"bytes,1,rep,name=counters,proto3" json:"counters,omitempty"`
	// params defines all the parameters of the module.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

GenesisState is the state that must be provided at genesis.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetCounters

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

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgClient

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) 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"`
	// contains filtered or unexported fields
}

MsgInitializeIdentity defines the Msg/IncrementCounter request type.

func (*MsgInitializeIdentity) Descriptor deprecated added in v0.14.0

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

Deprecated: Use MsgInitializeIdentity.ProtoReflect.Descriptor instead.

func (*MsgInitializeIdentity) GetAccumulatorKey added in v0.14.0

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

func (*MsgInitializeIdentity) GetAddress added in v0.14.0

func (x *MsgInitializeIdentity) GetAddress() string

func (*MsgInitializeIdentity) GetIpns added in v0.14.0

func (x *MsgInitializeIdentity) GetIpns() string

func (*MsgInitializeIdentity) GetNetwork added in v0.14.0

func (x *MsgInitializeIdentity) GetNetwork() string

func (*MsgInitializeIdentity) GetPeerId added in v0.14.0

func (x *MsgInitializeIdentity) GetPeerId() string

func (*MsgInitializeIdentity) GetPublicKey added in v0.14.0

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

func (*MsgInitializeIdentity) GetSender added in v0.14.0

func (x *MsgInitializeIdentity) GetSender() string

func (*MsgInitializeIdentity) ProtoMessage added in v0.14.0

func (*MsgInitializeIdentity) ProtoMessage()

func (*MsgInitializeIdentity) ProtoReflect added in v0.14.0

func (x *MsgInitializeIdentity) ProtoReflect() protoreflect.Message

func (*MsgInitializeIdentity) Reset added in v0.14.0

func (x *MsgInitializeIdentity) Reset()

func (*MsgInitializeIdentity) String added in v0.14.0

func (x *MsgInitializeIdentity) String() string

type MsgInitializeIdentityResponse added in v0.14.0

type MsgInitializeIdentityResponse struct {
	// contains filtered or unexported fields
}

MsgInitializeIdentityResponse defines the Msg/InitializeIdentity response type.

func (*MsgInitializeIdentityResponse) Descriptor deprecated added in v0.14.0

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

Deprecated: Use MsgInitializeIdentityResponse.ProtoReflect.Descriptor instead.

func (*MsgInitializeIdentityResponse) ProtoMessage added in v0.14.0

func (*MsgInitializeIdentityResponse) ProtoMessage()

func (*MsgInitializeIdentityResponse) ProtoReflect added in v0.14.0

func (*MsgInitializeIdentityResponse) Reset added in v0.14.0

func (x *MsgInitializeIdentityResponse) Reset()

func (*MsgInitializeIdentityResponse) String added in v0.14.0

type MsgServer

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

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgUpdateParams

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,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Params

type Params struct {
	// contains filtered or unexported fields
}

Params defines the parameters of the module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type QueryClient

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

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

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params defines the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryServer

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

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) InitializeIdentity added in v0.14.0

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

type UserIdentifier

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"`
	// contains filtered or unexported fields
}

UserIdentifier represents the structure of a user identifier.

func (*UserIdentifier) Descriptor deprecated

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

Deprecated: Use UserIdentifier.ProtoReflect.Descriptor instead.

func (*UserIdentifier) GetIdentifierType

func (x *UserIdentifier) GetIdentifierType() UserIdentifierType

func (*UserIdentifier) GetValue

func (x *UserIdentifier) GetValue() string

func (*UserIdentifier) ProtoMessage

func (*UserIdentifier) ProtoMessage()

func (*UserIdentifier) ProtoReflect

func (x *UserIdentifier) ProtoReflect() protoreflect.Message

func (*UserIdentifier) Reset

func (x *UserIdentifier) Reset()

func (*UserIdentifier) String

func (x *UserIdentifier) String() string

type UserIdentifierType

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

func (UserIdentifierType) Enum

func (UserIdentifierType) EnumDescriptor deprecated

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

Deprecated: Use UserIdentifierType.Descriptor instead.

func (UserIdentifierType) Number

func (UserIdentifierType) String

func (x UserIdentifierType) String() string

func (UserIdentifierType) Type

type WalletIdentifier

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"`
	// contains filtered or unexported fields
}

WalletIdentifier represents the structure of a wallet identifier.

func (*WalletIdentifier) Descriptor deprecated

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

Deprecated: Use WalletIdentifier.ProtoReflect.Descriptor instead.

func (*WalletIdentifier) GetCoinType

func (x *WalletIdentifier) GetCoinType() uint32

func (*WalletIdentifier) GetValue

func (x *WalletIdentifier) GetValue() string

func (*WalletIdentifier) ProtoMessage

func (*WalletIdentifier) ProtoMessage()

func (*WalletIdentifier) ProtoReflect

func (x *WalletIdentifier) ProtoReflect() protoreflect.Message

func (*WalletIdentifier) Reset

func (x *WalletIdentifier) Reset()

func (*WalletIdentifier) String

func (x *WalletIdentifier) String() string

Jump to

Keyboard shortcuts

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