identity

package
v0.0.0-...-f5d8f09 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TypeMsgCreateIdentity = "create_identity" // type for MsgCreateIdentity
	TypeMsgUpdateIdentity = "update_identity" // type for MsgUpdateIdentity

	IDLength     = 16  // size of the ID in bytes
	MaxURILength = 140 // maximum size of the URI

	DoNotModifyDesc = "[do-not-modify]" // description used to indicate not to modify a field

	ModuleName = "identity"
)

Identity message types and params

View Source
const CodeSpace = ModuleName

Variables

View Source
var (
	ErrQueryAddress  = sdk.Wrapf(CodeSpace, 1, "query address error")
	ErrBuildAndSend  = sdk.Wrapf(CodeSpace, 2, "BuildAndSend error")
	ErrQueryIdentity = sdk.Wrapf(CodeSpace, 3, "QueryIdentity error")
	ErrGenConn       = sdk.Wrapf(CodeSpace, 4, "generate conn error")
	ErrHex           = sdk.Wrapf(CodeSpace, 5, "hex fail")
	ErrValidateBasic = sdk.Wrapf(CodeSpace, 6, "ValidateBasic fail")
	ErrUnmarshal     = sdk.Wrapf(CodeSpace, 7, "unmarshal fail")
)
View Source
var (
	ErrInvalidLengthIdentity        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIdentity          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIdentity = 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 (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var PubKeyAlgorithm_name = map[int32]string{
	0: "UnknownPubKeyAlgorithm",
	1: "RSA",
	2: "DSA",
	3: "ECDSA",
	4: "ED25519",
	5: "SM2",
}
View Source
var PubKeyAlgorithm_value = map[string]int32{
	"UnknownPubKeyAlgorithm": 0,
	"RSA":                    1,
	"DSA":                    2,
	"ECDSA":                  3,
	"ED25519":                4,
	"SM2":                    5,
}

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateIdentityFields

func ValidateIdentityFields(
	id string,
	pubKey *PubKeyInfo,
	certificate,
	credentials string,
	owner string,
	data string,
) error

ValidateIdentityFields validates the given identity fields

Types

type Client

type Client interface {
	sdk.Module

	CreateIdentity(request CreateIdentityRequest, baseTx sdk.BaseTx) (sdk.ResultTx, error)
	UpdateIdentity(request UpdateIdentityRequest, baseTx sdk.BaseTx) (sdk.ResultTx, error)

	QueryIdentity(id string) (QueryIdentityResp, error)
}

func NewClient

func NewClient(bc sdk.BaseClient, cdc codec.Marshaler) Client

type CreateIdentityRequest

type CreateIdentityRequest struct {
	Id          string      `json:"id"`
	PubKeyInfo  *PubKeyInfo `json:"pubkey_info"`
	Certificate string      `json:"certificate"`
	Credentials *string     `json:"credentials"`
	Data        string      `json:"data"`
}

type Identity

type Identity struct {
	Id           string       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	PubKeys      []PubKeyInfo `protobuf:"bytes,2,rep,name=pub_keys,json=pubKeys,proto3" json:"pubkeys" yaml:"pubkeys"`
	Certificates []string     `protobuf:"bytes,3,rep,name=certificates,proto3" json:"certificates,omitempty"`
	Credentials  string       `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"`
	Owner        string       `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	Data         string       `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
}

Identity defines a struct for an identity

func (Identity) Convert

func (m Identity) Convert() interface{}

func (*Identity) Descriptor

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

func (*Identity) Equal

func (this *Identity) Equal(that interface{}) bool

func (*Identity) Marshal

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

func (*Identity) MarshalTo

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

func (*Identity) MarshalToSizedBuffer

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

func (*Identity) ProtoMessage

func (*Identity) ProtoMessage()

func (*Identity) Reset

func (m *Identity) Reset()

func (*Identity) Size

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

func (*Identity) String

func (m *Identity) String() string

func (*Identity) Unmarshal

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

func (*Identity) XXX_DiscardUnknown

func (m *Identity) XXX_DiscardUnknown()

func (*Identity) XXX_Marshal

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

func (*Identity) XXX_Merge

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

func (*Identity) XXX_Size

func (m *Identity) XXX_Size() int

func (*Identity) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateIdentity defines a method for creating a new identity.
	CreateIdentity(ctx context.Context, in *MsgCreateIdentity, opts ...grpc.CallOption) (*MsgCreateIdentityResponse, error)
	// UpdateIdentity defines a method for Updating a identity.
	UpdateIdentity(ctx context.Context, in *MsgUpdateIdentity, opts ...grpc.CallOption) (*MsgUpdateIdentityResponse, 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 MsgCreateIdentity

type MsgCreateIdentity struct {
	Id          string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	PubKey      *PubKeyInfo `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pubkey" yaml:"pubkey"`
	Certificate string      `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"`
	Credentials string      `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"`
	Owner       string      `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	Data        string      `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
}

MsgCreateIdentity defines a message to create an identity

func (*MsgCreateIdentity) Descriptor

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

func (*MsgCreateIdentity) Equal

func (this *MsgCreateIdentity) Equal(that interface{}) bool

func (MsgCreateIdentity) GetSignBytes

func (m MsgCreateIdentity) GetSignBytes() []byte

func (MsgCreateIdentity) GetSigners

func (m MsgCreateIdentity) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgCreateIdentity) Marshal

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

func (*MsgCreateIdentity) MarshalTo

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

func (*MsgCreateIdentity) MarshalToSizedBuffer

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

func (*MsgCreateIdentity) ProtoMessage

func (*MsgCreateIdentity) ProtoMessage()

func (*MsgCreateIdentity) Reset

func (m *MsgCreateIdentity) Reset()

func (MsgCreateIdentity) Route

func (m MsgCreateIdentity) Route() string

func (*MsgCreateIdentity) Size

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

func (*MsgCreateIdentity) String

func (m *MsgCreateIdentity) String() string

func (MsgCreateIdentity) Type

func (m MsgCreateIdentity) Type() string

func (*MsgCreateIdentity) Unmarshal

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

func (MsgCreateIdentity) ValidateBasic

func (m MsgCreateIdentity) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgCreateIdentity) XXX_DiscardUnknown

func (m *MsgCreateIdentity) XXX_DiscardUnknown()

func (*MsgCreateIdentity) XXX_Marshal

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

func (*MsgCreateIdentity) XXX_Merge

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

func (*MsgCreateIdentity) XXX_Size

func (m *MsgCreateIdentity) XXX_Size() int

func (*MsgCreateIdentity) XXX_Unmarshal

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

type MsgCreateIdentityResponse

type MsgCreateIdentityResponse struct {
}

MsgCreateIdentityResponse defines the Msg/Create response type.

func (*MsgCreateIdentityResponse) Descriptor

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

func (*MsgCreateIdentityResponse) Marshal

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

func (*MsgCreateIdentityResponse) MarshalTo

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

func (*MsgCreateIdentityResponse) MarshalToSizedBuffer

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

func (*MsgCreateIdentityResponse) ProtoMessage

func (*MsgCreateIdentityResponse) ProtoMessage()

func (*MsgCreateIdentityResponse) Reset

func (m *MsgCreateIdentityResponse) Reset()

func (*MsgCreateIdentityResponse) Size

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

func (*MsgCreateIdentityResponse) String

func (m *MsgCreateIdentityResponse) String() string

func (*MsgCreateIdentityResponse) Unmarshal

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

func (*MsgCreateIdentityResponse) XXX_DiscardUnknown

func (m *MsgCreateIdentityResponse) XXX_DiscardUnknown()

func (*MsgCreateIdentityResponse) XXX_Marshal

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

func (*MsgCreateIdentityResponse) XXX_Merge

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

func (*MsgCreateIdentityResponse) XXX_Size

func (m *MsgCreateIdentityResponse) XXX_Size() int

func (*MsgCreateIdentityResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateIdentity defines a method for creating a new identity.
	CreateIdentity(context.Context, *MsgCreateIdentity) (*MsgCreateIdentityResponse, error)
	// UpdateIdentity defines a method for Updating a identity.
	UpdateIdentity(context.Context, *MsgUpdateIdentity) (*MsgUpdateIdentityResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateIdentity

type MsgUpdateIdentity struct {
	Id          string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	PubKey      *PubKeyInfo `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pubkey" yaml:"pubkey"`
	Certificate string      `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"`
	Credentials string      `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"`
	Owner       string      `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	Data        string      `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
}

MsgUpdateIdentity defines a message to update an identity

func (*MsgUpdateIdentity) Descriptor

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

func (*MsgUpdateIdentity) Equal

func (this *MsgUpdateIdentity) Equal(that interface{}) bool

func (MsgUpdateIdentity) GetSignBytes

func (m MsgUpdateIdentity) GetSignBytes() []byte

func (MsgUpdateIdentity) GetSigners

func (m MsgUpdateIdentity) GetSigners() []sdk.AccAddress

GetSigners implements m.

func (*MsgUpdateIdentity) Marshal

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

func (*MsgUpdateIdentity) MarshalTo

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

func (*MsgUpdateIdentity) MarshalToSizedBuffer

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

func (*MsgUpdateIdentity) ProtoMessage

func (*MsgUpdateIdentity) ProtoMessage()

func (*MsgUpdateIdentity) Reset

func (m *MsgUpdateIdentity) Reset()

func (MsgUpdateIdentity) Route

func (m MsgUpdateIdentity) Route() string

func (*MsgUpdateIdentity) Size

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

func (*MsgUpdateIdentity) String

func (m *MsgUpdateIdentity) String() string

func (MsgUpdateIdentity) Type

func (m MsgUpdateIdentity) Type() string

func (*MsgUpdateIdentity) Unmarshal

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

func (MsgUpdateIdentity) ValidateBasic

func (m MsgUpdateIdentity) ValidateBasic() error

ValidateBasic implements m.

func (*MsgUpdateIdentity) XXX_DiscardUnknown

func (m *MsgUpdateIdentity) XXX_DiscardUnknown()

func (*MsgUpdateIdentity) XXX_Marshal

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

func (*MsgUpdateIdentity) XXX_Merge

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

func (*MsgUpdateIdentity) XXX_Size

func (m *MsgUpdateIdentity) XXX_Size() int

func (*MsgUpdateIdentity) XXX_Unmarshal

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

type MsgUpdateIdentityResponse

type MsgUpdateIdentityResponse struct {
}

MsgUpdateIdentityResponse defines the Msg/Update response type.

func (*MsgUpdateIdentityResponse) Descriptor

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

func (*MsgUpdateIdentityResponse) Marshal

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

func (*MsgUpdateIdentityResponse) MarshalTo

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

func (*MsgUpdateIdentityResponse) MarshalToSizedBuffer

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

func (*MsgUpdateIdentityResponse) ProtoMessage

func (*MsgUpdateIdentityResponse) ProtoMessage()

func (*MsgUpdateIdentityResponse) Reset

func (m *MsgUpdateIdentityResponse) Reset()

func (*MsgUpdateIdentityResponse) Size

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

func (*MsgUpdateIdentityResponse) String

func (m *MsgUpdateIdentityResponse) String() string

func (*MsgUpdateIdentityResponse) Unmarshal

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

func (*MsgUpdateIdentityResponse) XXX_DiscardUnknown

func (m *MsgUpdateIdentityResponse) XXX_DiscardUnknown()

func (*MsgUpdateIdentityResponse) XXX_Marshal

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

func (*MsgUpdateIdentityResponse) XXX_Merge

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

func (*MsgUpdateIdentityResponse) XXX_Size

func (m *MsgUpdateIdentityResponse) XXX_Size() int

func (*MsgUpdateIdentityResponse) XXX_Unmarshal

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

type PubKeyAlgorithm

type PubKeyAlgorithm int32

PubKeyAlgorithm defines the algorithm names for the public key

const (
	// UnknownPubKeyAlgorithm defines an unknown algorithm name
	UnknownPubKeyAlgorithm PubKeyAlgorithm = 0
	// RSA defines a RSA algorithm name
	RSA PubKeyAlgorithm = 1
	// DSA defines a DSA algorithm name.
	DSA PubKeyAlgorithm = 2
	// ECDSA defines an ECDSA algorithm name.
	ECDSA PubKeyAlgorithm = 3
	// ED25519 defines an ED25519 algorithm name.
	ED25519 PubKeyAlgorithm = 4
	// SM2 defines an SM2 algorithm name.
	SM2 PubKeyAlgorithm = 5
)

func (PubKeyAlgorithm) EnumDescriptor

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

func (PubKeyAlgorithm) MarshalJSON

func (p PubKeyAlgorithm) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON representation

func (PubKeyAlgorithm) String

func (x PubKeyAlgorithm) String() string

func (*PubKeyAlgorithm) UnmarshalJSON

func (p *PubKeyAlgorithm) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals raw JSON bytes into a PubKeyAlgorithm

type PubKeyInfo

type PubKeyInfo struct {
	PubKey    string          `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pubkey" yaml:"pubkey"`
	Algorithm PubKeyAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=iritamod.identity.PubKeyAlgorithm" json:"algorithm,omitempty"`
}

PubKey represents a public key along with the corresponding algorithm

func (*PubKeyInfo) Descriptor

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

func (*PubKeyInfo) Equal

func (this *PubKeyInfo) Equal(that interface{}) bool

func (*PubKeyInfo) Marshal

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

func (*PubKeyInfo) MarshalTo

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

func (*PubKeyInfo) MarshalToSizedBuffer

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

func (*PubKeyInfo) ProtoMessage

func (*PubKeyInfo) ProtoMessage()

func (*PubKeyInfo) Reset

func (m *PubKeyInfo) Reset()

func (*PubKeyInfo) Size

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

func (*PubKeyInfo) String

func (m *PubKeyInfo) String() string

func (*PubKeyInfo) Unmarshal

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

func (*PubKeyInfo) XXX_DiscardUnknown

func (m *PubKeyInfo) XXX_DiscardUnknown()

func (*PubKeyInfo) XXX_Marshal

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

func (*PubKeyInfo) XXX_Merge

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

func (*PubKeyInfo) XXX_Size

func (m *PubKeyInfo) XXX_Size() int

func (*PubKeyInfo) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Identity queries the identity by the given id
	Identity(ctx context.Context, in *QueryIdentityRequest, opts ...grpc.CallOption) (*QueryIdentityResponse, 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 QueryIdentityRequest

type QueryIdentityRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

QueryIdentityRequest is request type for the Query/Identity RPC method

func (*QueryIdentityRequest) Descriptor

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

func (*QueryIdentityRequest) GetId

func (m *QueryIdentityRequest) GetId() string

func (*QueryIdentityRequest) Marshal

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

func (*QueryIdentityRequest) MarshalTo

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

func (*QueryIdentityRequest) MarshalToSizedBuffer

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

func (*QueryIdentityRequest) ProtoMessage

func (*QueryIdentityRequest) ProtoMessage()

func (*QueryIdentityRequest) Reset

func (m *QueryIdentityRequest) Reset()

func (*QueryIdentityRequest) Size

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

func (*QueryIdentityRequest) String

func (m *QueryIdentityRequest) String() string

func (*QueryIdentityRequest) Unmarshal

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

func (*QueryIdentityRequest) XXX_DiscardUnknown

func (m *QueryIdentityRequest) XXX_DiscardUnknown()

func (*QueryIdentityRequest) XXX_Marshal

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

func (*QueryIdentityRequest) XXX_Merge

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

func (*QueryIdentityRequest) XXX_Size

func (m *QueryIdentityRequest) XXX_Size() int

func (*QueryIdentityRequest) XXX_Unmarshal

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

type QueryIdentityResp

type QueryIdentityResp struct {
	Id           string       `json:"id"`
	PubKeyInfos  []PubKeyInfo `json:"pubkey_infos"`
	Certificates []string     `json:"certificates"`
	Credentials  string       `json:"credentials"`
	Owner        string       `json:"owner"`
	Data         string       `json:"data"`
}

type QueryIdentityResponse

type QueryIdentityResponse struct {
	Identity *Identity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
}

QueryIdentityResponse is response type for the Query/Identity RPC method

func (*QueryIdentityResponse) Descriptor

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

func (*QueryIdentityResponse) GetIdentity

func (m *QueryIdentityResponse) GetIdentity() *Identity

func (*QueryIdentityResponse) Marshal

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

func (*QueryIdentityResponse) MarshalTo

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

func (*QueryIdentityResponse) MarshalToSizedBuffer

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

func (*QueryIdentityResponse) ProtoMessage

func (*QueryIdentityResponse) ProtoMessage()

func (*QueryIdentityResponse) Reset

func (m *QueryIdentityResponse) Reset()

func (*QueryIdentityResponse) Size

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

func (*QueryIdentityResponse) String

func (m *QueryIdentityResponse) String() string

func (*QueryIdentityResponse) Unmarshal

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

func (*QueryIdentityResponse) XXX_DiscardUnknown

func (m *QueryIdentityResponse) XXX_DiscardUnknown()

func (*QueryIdentityResponse) XXX_Marshal

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

func (*QueryIdentityResponse) XXX_Merge

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

func (*QueryIdentityResponse) XXX_Size

func (m *QueryIdentityResponse) XXX_Size() int

func (*QueryIdentityResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Identity queries the identity by the given id
	Identity(context.Context, *QueryIdentityRequest) (*QueryIdentityResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateIdentity

func (*UnimplementedMsgServer) UpdateIdentity

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Identity

type UpdateIdentityRequest

type UpdateIdentityRequest struct {
	Id          string      `json:"id"`
	PubKeyInfo  *PubKeyInfo `json:"pubkey_info"`
	Certificate string      `json:"certificate"`
	Credentials *string     `json:"credentials"`
	Data        *string     `json:"data"`
}

Jump to

Keyboard shortcuts

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