Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateIdentityFields(id string, pubKey *PubKeyInfo, certificate, credentials string, owner string, ...) error
- type Client
- type CreateIdentityRequest
- type Identity
- func (m Identity) Convert() interface{}
- func (*Identity) Descriptor() ([]byte, []int)
- func (this *Identity) Equal(that interface{}) bool
- func (m *Identity) Marshal() (dAtA []byte, err error)
- func (m *Identity) MarshalTo(dAtA []byte) (int, error)
- func (m *Identity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Identity) ProtoMessage()
- func (m *Identity) Reset()
- func (m *Identity) Size() (n int)
- func (m *Identity) String() string
- func (m *Identity) Unmarshal(dAtA []byte) error
- func (m *Identity) XXX_DiscardUnknown()
- func (m *Identity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Identity) XXX_Merge(src proto.Message)
- func (m *Identity) XXX_Size() int
- func (m *Identity) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateIdentity
- func (*MsgCreateIdentity) Descriptor() ([]byte, []int)
- func (this *MsgCreateIdentity) Equal(that interface{}) bool
- func (m MsgCreateIdentity) GetSignBytes() []byte
- func (m MsgCreateIdentity) GetSigners() []sdk.AccAddress
- func (m *MsgCreateIdentity) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateIdentity) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateIdentity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateIdentity) ProtoMessage()
- func (m *MsgCreateIdentity) Reset()
- func (m MsgCreateIdentity) Route() string
- func (m *MsgCreateIdentity) Size() (n int)
- func (m *MsgCreateIdentity) String() string
- func (m MsgCreateIdentity) Type() string
- func (m *MsgCreateIdentity) Unmarshal(dAtA []byte) error
- func (m MsgCreateIdentity) ValidateBasic() error
- func (m *MsgCreateIdentity) XXX_DiscardUnknown()
- func (m *MsgCreateIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateIdentity) XXX_Merge(src proto.Message)
- func (m *MsgCreateIdentity) XXX_Size() int
- func (m *MsgCreateIdentity) XXX_Unmarshal(b []byte) error
- type MsgCreateIdentityResponse
- func (*MsgCreateIdentityResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateIdentityResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateIdentityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateIdentityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateIdentityResponse) ProtoMessage()
- func (m *MsgCreateIdentityResponse) Reset()
- func (m *MsgCreateIdentityResponse) Size() (n int)
- func (m *MsgCreateIdentityResponse) String() string
- func (m *MsgCreateIdentityResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateIdentityResponse) XXX_DiscardUnknown()
- func (m *MsgCreateIdentityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateIdentityResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateIdentityResponse) XXX_Size() int
- func (m *MsgCreateIdentityResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateIdentity
- func (*MsgUpdateIdentity) Descriptor() ([]byte, []int)
- func (this *MsgUpdateIdentity) Equal(that interface{}) bool
- func (m MsgUpdateIdentity) GetSignBytes() []byte
- func (m MsgUpdateIdentity) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateIdentity) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateIdentity) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateIdentity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateIdentity) ProtoMessage()
- func (m *MsgUpdateIdentity) Reset()
- func (m MsgUpdateIdentity) Route() string
- func (m *MsgUpdateIdentity) Size() (n int)
- func (m *MsgUpdateIdentity) String() string
- func (m MsgUpdateIdentity) Type() string
- func (m *MsgUpdateIdentity) Unmarshal(dAtA []byte) error
- func (m MsgUpdateIdentity) ValidateBasic() error
- func (m *MsgUpdateIdentity) XXX_DiscardUnknown()
- func (m *MsgUpdateIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateIdentity) XXX_Merge(src proto.Message)
- func (m *MsgUpdateIdentity) XXX_Size() int
- func (m *MsgUpdateIdentity) XXX_Unmarshal(b []byte) error
- type MsgUpdateIdentityResponse
- func (*MsgUpdateIdentityResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateIdentityResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateIdentityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateIdentityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateIdentityResponse) ProtoMessage()
- func (m *MsgUpdateIdentityResponse) Reset()
- func (m *MsgUpdateIdentityResponse) Size() (n int)
- func (m *MsgUpdateIdentityResponse) String() string
- func (m *MsgUpdateIdentityResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateIdentityResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateIdentityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateIdentityResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateIdentityResponse) XXX_Size() int
- func (m *MsgUpdateIdentityResponse) XXX_Unmarshal(b []byte) error
- type PubKeyAlgorithm
- type PubKeyInfo
- func (*PubKeyInfo) Descriptor() ([]byte, []int)
- func (this *PubKeyInfo) Equal(that interface{}) bool
- func (m *PubKeyInfo) Marshal() (dAtA []byte, err error)
- func (m *PubKeyInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *PubKeyInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PubKeyInfo) ProtoMessage()
- func (m *PubKeyInfo) Reset()
- func (m *PubKeyInfo) Size() (n int)
- func (m *PubKeyInfo) String() string
- func (m *PubKeyInfo) Unmarshal(dAtA []byte) error
- func (m *PubKeyInfo) XXX_DiscardUnknown()
- func (m *PubKeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubKeyInfo) XXX_Merge(src proto.Message)
- func (m *PubKeyInfo) XXX_Size() int
- func (m *PubKeyInfo) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryIdentityRequest
- func (*QueryIdentityRequest) Descriptor() ([]byte, []int)
- func (m *QueryIdentityRequest) GetId() string
- func (m *QueryIdentityRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryIdentityRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIdentityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIdentityRequest) ProtoMessage()
- func (m *QueryIdentityRequest) Reset()
- func (m *QueryIdentityRequest) Size() (n int)
- func (m *QueryIdentityRequest) String() string
- func (m *QueryIdentityRequest) Unmarshal(dAtA []byte) error
- func (m *QueryIdentityRequest) XXX_DiscardUnknown()
- func (m *QueryIdentityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIdentityRequest) XXX_Merge(src proto.Message)
- func (m *QueryIdentityRequest) XXX_Size() int
- func (m *QueryIdentityRequest) XXX_Unmarshal(b []byte) error
- type QueryIdentityResp
- type QueryIdentityResponse
- func (*QueryIdentityResponse) Descriptor() ([]byte, []int)
- func (m *QueryIdentityResponse) GetIdentity() *Identity
- func (m *QueryIdentityResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryIdentityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIdentityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIdentityResponse) ProtoMessage()
- func (m *QueryIdentityResponse) Reset()
- func (m *QueryIdentityResponse) Size() (n int)
- func (m *QueryIdentityResponse) String() string
- func (m *QueryIdentityResponse) Unmarshal(dAtA []byte) error
- func (m *QueryIdentityResponse) XXX_DiscardUnknown()
- func (m *QueryIdentityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIdentityResponse) XXX_Merge(src proto.Message)
- func (m *QueryIdentityResponse) XXX_Size() int
- func (m *QueryIdentityResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UpdateIdentityRequest
Constants ¶
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
const CodeSpace = ModuleName
Variables ¶
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") )
var ( ErrInvalidLengthIdentity = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIdentity = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIdentity = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var PubKeyAlgorithm_name = map[int32]string{
0: "UnknownPubKeyAlgorithm",
1: "RSA",
2: "DSA",
3: "ECDSA",
4: "ED25519",
5: "SM2",
}
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 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 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) Descriptor ¶
func (*Identity) MarshalToSizedBuffer ¶
func (*Identity) ProtoMessage ¶
func (*Identity) ProtoMessage()
func (*Identity) XXX_DiscardUnknown ¶
func (m *Identity) XXX_DiscardUnknown()
func (*Identity) XXX_Marshal ¶
func (*Identity) XXX_Unmarshal ¶
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) 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 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) CreateIdentity(ctx context.Context, req *MsgCreateIdentity) (*MsgCreateIdentityResponse, error)
func (*UnimplementedMsgServer) UpdateIdentity ¶
func (*UnimplementedMsgServer) UpdateIdentity(ctx context.Context, req *MsgUpdateIdentity) (*MsgUpdateIdentityResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Identity ¶
func (*UnimplementedQueryServer) Identity(ctx context.Context, req *QueryIdentityRequest) (*QueryIdentityResponse, error)
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"` }