Documentation ¶
Overview ¶
Package credential is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CompactJSON(filePath string) (compact []byte, err error)
- func IsEmpty(v string) bool
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type CredentialDefinition
- func (*CredentialDefinition) Descriptor() ([]byte, []int)
- func (this *CredentialDefinition) Equal(that interface{}) bool
- func (m *CredentialDefinition) Marshal() (dAtA []byte, err error)
- func (m *CredentialDefinition) MarshalTo(dAtA []byte) (int, error)
- func (m *CredentialDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CredentialDefinition) ProtoMessage()
- func (m *CredentialDefinition) Reset()
- func (m *CredentialDefinition) Size() (n int)
- func (m *CredentialDefinition) String() string
- func (m *CredentialDefinition) Unmarshal(dAtA []byte) error
- func (m *CredentialDefinition) XXX_DiscardUnknown()
- func (m *CredentialDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CredentialDefinition) XXX_Merge(src proto.Message)
- func (m *CredentialDefinition) XXX_Size() int
- func (m *CredentialDefinition) XXX_Unmarshal(b []byte) error
- type CredentialDefinitionPublishedEvent
- func (*CredentialDefinitionPublishedEvent) Descriptor() ([]byte, []int)
- func (this *CredentialDefinitionPublishedEvent) Equal(that interface{}) bool
- func (m *CredentialDefinitionPublishedEvent) Marshal() (dAtA []byte, err error)
- func (m *CredentialDefinitionPublishedEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *CredentialDefinitionPublishedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CredentialDefinitionPublishedEvent) ProtoMessage()
- func (m *CredentialDefinitionPublishedEvent) Reset()
- func (m *CredentialDefinitionPublishedEvent) Size() (n int)
- func (m *CredentialDefinitionPublishedEvent) String() string
- func (m *CredentialDefinitionPublishedEvent) Unmarshal(dAtA []byte) error
- func (m *CredentialDefinitionPublishedEvent) XXX_DiscardUnknown()
- func (m *CredentialDefinitionPublishedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CredentialDefinitionPublishedEvent) XXX_Merge(src proto.Message)
- func (m *CredentialDefinitionPublishedEvent) XXX_Size() int
- func (m *CredentialDefinitionPublishedEvent) XXX_Unmarshal(b []byte) error
- type CredentialDefinitionUpdatedEvent
- func (*CredentialDefinitionUpdatedEvent) Descriptor() ([]byte, []int)
- func (this *CredentialDefinitionUpdatedEvent) Equal(that interface{}) bool
- func (m *CredentialDefinitionUpdatedEvent) Marshal() (dAtA []byte, err error)
- func (m *CredentialDefinitionUpdatedEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *CredentialDefinitionUpdatedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CredentialDefinitionUpdatedEvent) ProtoMessage()
- func (m *CredentialDefinitionUpdatedEvent) Reset()
- func (m *CredentialDefinitionUpdatedEvent) Size() (n int)
- func (m *CredentialDefinitionUpdatedEvent) String() string
- func (m *CredentialDefinitionUpdatedEvent) Unmarshal(dAtA []byte) error
- func (m *CredentialDefinitionUpdatedEvent) XXX_DiscardUnknown()
- func (m *CredentialDefinitionUpdatedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CredentialDefinitionUpdatedEvent) XXX_Merge(src proto.Message)
- func (m *CredentialDefinitionUpdatedEvent) XXX_Size() int
- func (m *CredentialDefinitionUpdatedEvent) XXX_Unmarshal(b []byte) error
- type CredentialStatus
- func (m CredentialStatus) Coordinates() (string, int)
- func (*CredentialStatus) Descriptor() ([]byte, []int)
- func (this *CredentialStatus) Equal(that interface{}) bool
- func (m *CredentialStatus) Marshal() (dAtA []byte, err error)
- func (m *CredentialStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *CredentialStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CredentialStatus) ProtoMessage()
- func (m *CredentialStatus) Reset()
- func (m *CredentialStatus) Size() (n int)
- func (m *CredentialStatus) String() string
- func (m CredentialStatus) TypeDef() (string, string)
- func (m *CredentialStatus) Unmarshal(dAtA []byte) error
- func (m *CredentialStatus) XXX_DiscardUnknown()
- func (m *CredentialStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CredentialStatus) XXX_Merge(src proto.Message)
- func (m *CredentialStatus) XXX_Size() int
- func (m *CredentialStatus) XXX_Unmarshal(b []byte) error
- type DidKeeper
- type MsgClient
- type MsgIssuePublicVerifiableCredentialRequest
- func (*MsgIssuePublicVerifiableCredentialRequest) Descriptor() ([]byte, []int)
- func (msg MsgIssuePublicVerifiableCredentialRequest) GetSignBytes() []byte
- func (msg MsgIssuePublicVerifiableCredentialRequest) GetSigners() []sdk.AccAddress
- func (m *MsgIssuePublicVerifiableCredentialRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgIssuePublicVerifiableCredentialRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssuePublicVerifiableCredentialRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssuePublicVerifiableCredentialRequest) ProtoMessage()
- func (m *MsgIssuePublicVerifiableCredentialRequest) Reset()
- func (MsgIssuePublicVerifiableCredentialRequest) Route() string
- func (m *MsgIssuePublicVerifiableCredentialRequest) Size() (n int)
- func (m *MsgIssuePublicVerifiableCredentialRequest) String() string
- func (msg MsgIssuePublicVerifiableCredentialRequest) Type() string
- func (m *MsgIssuePublicVerifiableCredentialRequest) Unmarshal(dAtA []byte) error
- func (m MsgIssuePublicVerifiableCredentialRequest) ValidateBasic() error
- func (m *MsgIssuePublicVerifiableCredentialRequest) XXX_DiscardUnknown()
- func (m *MsgIssuePublicVerifiableCredentialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssuePublicVerifiableCredentialRequest) XXX_Merge(src proto.Message)
- func (m *MsgIssuePublicVerifiableCredentialRequest) XXX_Size() int
- func (m *MsgIssuePublicVerifiableCredentialRequest) XXX_Unmarshal(b []byte) error
- type MsgIssuePublicVerifiableCredentialResponse
- func (*MsgIssuePublicVerifiableCredentialResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssuePublicVerifiableCredentialResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssuePublicVerifiableCredentialResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssuePublicVerifiableCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssuePublicVerifiableCredentialResponse) ProtoMessage()
- func (m *MsgIssuePublicVerifiableCredentialResponse) Reset()
- func (m *MsgIssuePublicVerifiableCredentialResponse) Size() (n int)
- func (m *MsgIssuePublicVerifiableCredentialResponse) String() string
- func (m *MsgIssuePublicVerifiableCredentialResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssuePublicVerifiableCredentialResponse) XXX_DiscardUnknown()
- func (m *MsgIssuePublicVerifiableCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssuePublicVerifiableCredentialResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssuePublicVerifiableCredentialResponse) XXX_Size() int
- func (m *MsgIssuePublicVerifiableCredentialResponse) XXX_Unmarshal(b []byte) error
- type MsgPublishCredentialDefinitionRequest
- func (*MsgPublishCredentialDefinitionRequest) Descriptor() ([]byte, []int)
- func (msg MsgPublishCredentialDefinitionRequest) GetSignBytes() []byte
- func (msg MsgPublishCredentialDefinitionRequest) GetSigners() []sdk.AccAddress
- func (m *MsgPublishCredentialDefinitionRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgPublishCredentialDefinitionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPublishCredentialDefinitionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPublishCredentialDefinitionRequest) ProtoMessage()
- func (m *MsgPublishCredentialDefinitionRequest) Reset()
- func (MsgPublishCredentialDefinitionRequest) Route() string
- func (m *MsgPublishCredentialDefinitionRequest) Size() (n int)
- func (m *MsgPublishCredentialDefinitionRequest) String() string
- func (msg MsgPublishCredentialDefinitionRequest) Type() string
- func (m *MsgPublishCredentialDefinitionRequest) Unmarshal(dAtA []byte) error
- func (m MsgPublishCredentialDefinitionRequest) ValidateBasic() error
- func (m *MsgPublishCredentialDefinitionRequest) XXX_DiscardUnknown()
- func (m *MsgPublishCredentialDefinitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPublishCredentialDefinitionRequest) XXX_Merge(src proto.Message)
- func (m *MsgPublishCredentialDefinitionRequest) XXX_Size() int
- func (m *MsgPublishCredentialDefinitionRequest) XXX_Unmarshal(b []byte) error
- type MsgPublishCredentialDefinitionResponse
- func (*MsgPublishCredentialDefinitionResponse) Descriptor() ([]byte, []int)
- func (m *MsgPublishCredentialDefinitionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPublishCredentialDefinitionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPublishCredentialDefinitionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPublishCredentialDefinitionResponse) ProtoMessage()
- func (m *MsgPublishCredentialDefinitionResponse) Reset()
- func (m *MsgPublishCredentialDefinitionResponse) Size() (n int)
- func (m *MsgPublishCredentialDefinitionResponse) String() string
- func (m *MsgPublishCredentialDefinitionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPublishCredentialDefinitionResponse) XXX_DiscardUnknown()
- func (m *MsgPublishCredentialDefinitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPublishCredentialDefinitionResponse) XXX_Merge(src proto.Message)
- func (m *MsgPublishCredentialDefinitionResponse) XXX_Size() int
- func (m *MsgPublishCredentialDefinitionResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateCredentialDefinitionRequest
- func (*MsgUpdateCredentialDefinitionRequest) Descriptor() ([]byte, []int)
- func (msg MsgUpdateCredentialDefinitionRequest) GetSignBytes() []byte
- func (msg MsgUpdateCredentialDefinitionRequest) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateCredentialDefinitionRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateCredentialDefinitionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateCredentialDefinitionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateCredentialDefinitionRequest) ProtoMessage()
- func (m *MsgUpdateCredentialDefinitionRequest) Reset()
- func (MsgUpdateCredentialDefinitionRequest) Route() string
- func (m *MsgUpdateCredentialDefinitionRequest) Size() (n int)
- func (m *MsgUpdateCredentialDefinitionRequest) String() string
- func (msg MsgUpdateCredentialDefinitionRequest) Type() string
- func (m *MsgUpdateCredentialDefinitionRequest) Unmarshal(dAtA []byte) error
- func (m MsgUpdateCredentialDefinitionRequest) ValidateBasic() error
- func (m *MsgUpdateCredentialDefinitionRequest) XXX_DiscardUnknown()
- func (m *MsgUpdateCredentialDefinitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateCredentialDefinitionRequest) XXX_Merge(src proto.Message)
- func (m *MsgUpdateCredentialDefinitionRequest) XXX_Size() int
- func (m *MsgUpdateCredentialDefinitionRequest) XXX_Unmarshal(b []byte) error
- type MsgUpdateCredentialDefinitionResponse
- func (*MsgUpdateCredentialDefinitionResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateCredentialDefinitionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateCredentialDefinitionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateCredentialDefinitionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateCredentialDefinitionResponse) ProtoMessage()
- func (m *MsgUpdateCredentialDefinitionResponse) Reset()
- func (m *MsgUpdateCredentialDefinitionResponse) Size() (n int)
- func (m *MsgUpdateCredentialDefinitionResponse) String() string
- func (m *MsgUpdateCredentialDefinitionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateCredentialDefinitionResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateCredentialDefinitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateCredentialDefinitionResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateCredentialDefinitionResponse) XXX_Size() int
- func (m *MsgUpdateCredentialDefinitionResponse) XXX_Unmarshal(b []byte) error
- type Proof
- func (*Proof) Descriptor() ([]byte, []int)
- func (this *Proof) Equal(that interface{}) bool
- func (m *Proof) Marshal() (dAtA []byte, err error)
- func (m *Proof) MarshalTo(dAtA []byte) (int, error)
- func (m *Proof) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Proof) ProtoMessage()
- func (m *Proof) Reset()
- func (m *Proof) Size() (n int)
- func (m *Proof) String() string
- func (m *Proof) Unmarshal(dAtA []byte) error
- func (m *Proof) XXX_DiscardUnknown()
- func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proof) XXX_Merge(src proto.Message)
- func (m *Proof) XXX_Size() int
- func (m *Proof) XXX_Unmarshal(b []byte) error
- type PublicCredentialIssuedEvent
- func (*PublicCredentialIssuedEvent) Descriptor() ([]byte, []int)
- func (this *PublicCredentialIssuedEvent) Equal(that interface{}) bool
- func (m *PublicCredentialIssuedEvent) Marshal() (dAtA []byte, err error)
- func (m *PublicCredentialIssuedEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *PublicCredentialIssuedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PublicCredentialIssuedEvent) ProtoMessage()
- func (m *PublicCredentialIssuedEvent) Reset()
- func (m *PublicCredentialIssuedEvent) Size() (n int)
- func (m *PublicCredentialIssuedEvent) String() string
- func (m *PublicCredentialIssuedEvent) Unmarshal(dAtA []byte) error
- func (m *PublicCredentialIssuedEvent) XXX_DiscardUnknown()
- func (m *PublicCredentialIssuedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicCredentialIssuedEvent) XXX_Merge(src proto.Message)
- func (m *PublicCredentialIssuedEvent) XXX_Size() int
- func (m *PublicCredentialIssuedEvent) XXX_Unmarshal(b []byte) error
- type PublicVerifiableCredential
- func (*PublicVerifiableCredential) Descriptor() ([]byte, []int)
- func (this *PublicVerifiableCredential) Equal(that interface{}) bool
- func (pvc PublicVerifiableCredential) GetIssuerDID() did.DID
- func (m *PublicVerifiableCredential) Marshal() (dAtA []byte, err error)
- func (m *PublicVerifiableCredential) MarshalTo(dAtA []byte) (int, error)
- func (m *PublicVerifiableCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PublicVerifiableCredential) ProtoMessage()
- func (m *PublicVerifiableCredential) Reset()
- func (m *PublicVerifiableCredential) Size() (n int)
- func (m *PublicVerifiableCredential) String() string
- func (m *PublicVerifiableCredential) Unmarshal(dAtA []byte) error
- func (m *PublicVerifiableCredential) XXX_DiscardUnknown()
- func (m *PublicVerifiableCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicVerifiableCredential) XXX_Merge(src proto.Message)
- func (m *PublicVerifiableCredential) XXX_Size() int
- func (m *PublicVerifiableCredential) XXX_Unmarshal(b []byte) error
- type PublicVerifiableCredentialOption
- func WithContext(context ...string) PublicVerifiableCredentialOption
- func WithExpirationDate(date time.Time) PublicVerifiableCredentialOption
- func WithIssuanceDate(date time.Time) PublicVerifiableCredentialOption
- func WithIssuerDID(issuer did.DID) PublicVerifiableCredentialOption
- func WithType(typ ...string) PublicVerifiableCredentialOption
- type QueryClient
- type QueryCredentialDefinitionRequest
- func (*QueryCredentialDefinitionRequest) Descriptor() ([]byte, []int)
- func (m *QueryCredentialDefinitionRequest) GetId() string
- func (m *QueryCredentialDefinitionRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCredentialDefinitionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCredentialDefinitionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCredentialDefinitionRequest) ProtoMessage()
- func (m *QueryCredentialDefinitionRequest) Reset()
- func (m *QueryCredentialDefinitionRequest) Size() (n int)
- func (m *QueryCredentialDefinitionRequest) String() string
- func (m *QueryCredentialDefinitionRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCredentialDefinitionRequest) XXX_DiscardUnknown()
- func (m *QueryCredentialDefinitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCredentialDefinitionRequest) XXX_Merge(src proto.Message)
- func (m *QueryCredentialDefinitionRequest) XXX_Size() int
- func (m *QueryCredentialDefinitionRequest) XXX_Unmarshal(b []byte) error
- type QueryCredentialDefinitionResponse
- func (*QueryCredentialDefinitionResponse) Descriptor() ([]byte, []int)
- func (m *QueryCredentialDefinitionResponse) GetDefinition() *CredentialDefinition
- func (m *QueryCredentialDefinitionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCredentialDefinitionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCredentialDefinitionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCredentialDefinitionResponse) ProtoMessage()
- func (m *QueryCredentialDefinitionResponse) Reset()
- func (m *QueryCredentialDefinitionResponse) Size() (n int)
- func (m *QueryCredentialDefinitionResponse) String() string
- func (m *QueryCredentialDefinitionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCredentialDefinitionResponse) XXX_DiscardUnknown()
- func (m *QueryCredentialDefinitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCredentialDefinitionResponse) XXX_Merge(src proto.Message)
- func (m *QueryCredentialDefinitionResponse) XXX_Size() int
- func (m *QueryCredentialDefinitionResponse) XXX_Unmarshal(b []byte) error
- type QueryCredentialDefinitionsByPublisherRequest
- func (*QueryCredentialDefinitionsByPublisherRequest) Descriptor() ([]byte, []int)
- func (m *QueryCredentialDefinitionsByPublisherRequest) GetDid() string
- func (m *QueryCredentialDefinitionsByPublisherRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCredentialDefinitionsByPublisherRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCredentialDefinitionsByPublisherRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCredentialDefinitionsByPublisherRequest) ProtoMessage()
- func (m *QueryCredentialDefinitionsByPublisherRequest) Reset()
- func (m *QueryCredentialDefinitionsByPublisherRequest) Size() (n int)
- func (m *QueryCredentialDefinitionsByPublisherRequest) String() string
- func (m *QueryCredentialDefinitionsByPublisherRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCredentialDefinitionsByPublisherRequest) XXX_DiscardUnknown()
- func (m *QueryCredentialDefinitionsByPublisherRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCredentialDefinitionsByPublisherRequest) XXX_Merge(src proto.Message)
- func (m *QueryCredentialDefinitionsByPublisherRequest) XXX_Size() int
- func (m *QueryCredentialDefinitionsByPublisherRequest) XXX_Unmarshal(b []byte) error
- type QueryCredentialDefinitionsByPublisherResponse
- func (*QueryCredentialDefinitionsByPublisherResponse) Descriptor() ([]byte, []int)
- func (m *QueryCredentialDefinitionsByPublisherResponse) GetDefinitions() []*CredentialDefinition
- func (m *QueryCredentialDefinitionsByPublisherResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCredentialDefinitionsByPublisherResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCredentialDefinitionsByPublisherResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCredentialDefinitionsByPublisherResponse) ProtoMessage()
- func (m *QueryCredentialDefinitionsByPublisherResponse) Reset()
- func (m *QueryCredentialDefinitionsByPublisherResponse) Size() (n int)
- func (m *QueryCredentialDefinitionsByPublisherResponse) String() string
- func (m *QueryCredentialDefinitionsByPublisherResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCredentialDefinitionsByPublisherResponse) XXX_DiscardUnknown()
- func (m *QueryCredentialDefinitionsByPublisherResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCredentialDefinitionsByPublisherResponse) XXX_Merge(src proto.Message)
- func (m *QueryCredentialDefinitionsByPublisherResponse) XXX_Size() int
- func (m *QueryCredentialDefinitionsByPublisherResponse) XXX_Unmarshal(b []byte) error
- type QueryCredentialDefinitionsRequest
- func (*QueryCredentialDefinitionsRequest) Descriptor() ([]byte, []int)
- func (m *QueryCredentialDefinitionsRequest) GetPagination() *query.PageRequest
- func (m *QueryCredentialDefinitionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCredentialDefinitionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCredentialDefinitionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCredentialDefinitionsRequest) ProtoMessage()
- func (m *QueryCredentialDefinitionsRequest) Reset()
- func (m *QueryCredentialDefinitionsRequest) Size() (n int)
- func (m *QueryCredentialDefinitionsRequest) String() string
- func (m *QueryCredentialDefinitionsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCredentialDefinitionsRequest) XXX_DiscardUnknown()
- func (m *QueryCredentialDefinitionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCredentialDefinitionsRequest) XXX_Merge(src proto.Message)
- func (m *QueryCredentialDefinitionsRequest) XXX_Size() int
- func (m *QueryCredentialDefinitionsRequest) XXX_Unmarshal(b []byte) error
- type QueryCredentialDefinitionsResponse
- func (*QueryCredentialDefinitionsResponse) Descriptor() ([]byte, []int)
- func (m *QueryCredentialDefinitionsResponse) GetDefinitions() []*CredentialDefinition
- func (m *QueryCredentialDefinitionsResponse) GetPagination() *query.PageResponse
- func (m *QueryCredentialDefinitionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCredentialDefinitionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCredentialDefinitionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCredentialDefinitionsResponse) ProtoMessage()
- func (m *QueryCredentialDefinitionsResponse) Reset()
- func (m *QueryCredentialDefinitionsResponse) Size() (n int)
- func (m *QueryCredentialDefinitionsResponse) String() string
- func (m *QueryCredentialDefinitionsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCredentialDefinitionsResponse) XXX_DiscardUnknown()
- func (m *QueryCredentialDefinitionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCredentialDefinitionsResponse) XXX_Merge(src proto.Message)
- func (m *QueryCredentialDefinitionsResponse) XXX_Size() int
- func (m *QueryCredentialDefinitionsResponse) XXX_Unmarshal(b []byte) error
- type QueryPublicCredentialRequest
- func (*QueryPublicCredentialRequest) Descriptor() ([]byte, []int)
- func (m *QueryPublicCredentialRequest) GetId() string
- func (m *QueryPublicCredentialRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPublicCredentialRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPublicCredentialRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPublicCredentialRequest) ProtoMessage()
- func (m *QueryPublicCredentialRequest) Reset()
- func (m *QueryPublicCredentialRequest) Size() (n int)
- func (m *QueryPublicCredentialRequest) String() string
- func (m *QueryPublicCredentialRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPublicCredentialRequest) XXX_DiscardUnknown()
- func (m *QueryPublicCredentialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPublicCredentialRequest) XXX_Merge(src proto.Message)
- func (m *QueryPublicCredentialRequest) XXX_Size() int
- func (m *QueryPublicCredentialRequest) XXX_Unmarshal(b []byte) error
- type QueryPublicCredentialResponse
- func (*QueryPublicCredentialResponse) Descriptor() ([]byte, []int)
- func (m *QueryPublicCredentialResponse) GetCredential() *PublicVerifiableCredential
- func (m *QueryPublicCredentialResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPublicCredentialResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPublicCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPublicCredentialResponse) ProtoMessage()
- func (m *QueryPublicCredentialResponse) Reset()
- func (m *QueryPublicCredentialResponse) Size() (n int)
- func (m *QueryPublicCredentialResponse) String() string
- func (m *QueryPublicCredentialResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPublicCredentialResponse) XXX_DiscardUnknown()
- func (m *QueryPublicCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPublicCredentialResponse) XXX_Merge(src proto.Message)
- func (m *QueryPublicCredentialResponse) XXX_Size() int
- func (m *QueryPublicCredentialResponse) XXX_Unmarshal(b []byte) error
- type QueryPublicCredentialsByHolderRequest
- func (*QueryPublicCredentialsByHolderRequest) Descriptor() ([]byte, []int)
- func (m *QueryPublicCredentialsByHolderRequest) GetDid() string
- func (m *QueryPublicCredentialsByHolderRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPublicCredentialsByHolderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPublicCredentialsByHolderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPublicCredentialsByHolderRequest) ProtoMessage()
- func (m *QueryPublicCredentialsByHolderRequest) Reset()
- func (m *QueryPublicCredentialsByHolderRequest) Size() (n int)
- func (m *QueryPublicCredentialsByHolderRequest) String() string
- func (m *QueryPublicCredentialsByHolderRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPublicCredentialsByHolderRequest) XXX_DiscardUnknown()
- func (m *QueryPublicCredentialsByHolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPublicCredentialsByHolderRequest) XXX_Merge(src proto.Message)
- func (m *QueryPublicCredentialsByHolderRequest) XXX_Size() int
- func (m *QueryPublicCredentialsByHolderRequest) XXX_Unmarshal(b []byte) error
- type QueryPublicCredentialsByHolderResponse
- func (*QueryPublicCredentialsByHolderResponse) Descriptor() ([]byte, []int)
- func (m *QueryPublicCredentialsByHolderResponse) GetCredential() []*PublicVerifiableCredential
- func (m *QueryPublicCredentialsByHolderResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPublicCredentialsByHolderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPublicCredentialsByHolderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPublicCredentialsByHolderResponse) ProtoMessage()
- func (m *QueryPublicCredentialsByHolderResponse) Reset()
- func (m *QueryPublicCredentialsByHolderResponse) Size() (n int)
- func (m *QueryPublicCredentialsByHolderResponse) String() string
- func (m *QueryPublicCredentialsByHolderResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPublicCredentialsByHolderResponse) XXX_DiscardUnknown()
- func (m *QueryPublicCredentialsByHolderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPublicCredentialsByHolderResponse) XXX_Merge(src proto.Message)
- func (m *QueryPublicCredentialsByHolderResponse) XXX_Size() int
- func (m *QueryPublicCredentialsByHolderResponse) XXX_Unmarshal(b []byte) error
- type QueryPublicCredentialsByIssuerRequest
- func (*QueryPublicCredentialsByIssuerRequest) Descriptor() ([]byte, []int)
- func (m *QueryPublicCredentialsByIssuerRequest) GetDid() string
- func (m *QueryPublicCredentialsByIssuerRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPublicCredentialsByIssuerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPublicCredentialsByIssuerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPublicCredentialsByIssuerRequest) ProtoMessage()
- func (m *QueryPublicCredentialsByIssuerRequest) Reset()
- func (m *QueryPublicCredentialsByIssuerRequest) Size() (n int)
- func (m *QueryPublicCredentialsByIssuerRequest) String() string
- func (m *QueryPublicCredentialsByIssuerRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPublicCredentialsByIssuerRequest) XXX_DiscardUnknown()
- func (m *QueryPublicCredentialsByIssuerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPublicCredentialsByIssuerRequest) XXX_Merge(src proto.Message)
- func (m *QueryPublicCredentialsByIssuerRequest) XXX_Size() int
- func (m *QueryPublicCredentialsByIssuerRequest) XXX_Unmarshal(b []byte) error
- type QueryPublicCredentialsByIssuerResponse
- func (*QueryPublicCredentialsByIssuerResponse) Descriptor() ([]byte, []int)
- func (m *QueryPublicCredentialsByIssuerResponse) GetCredential() []*PublicVerifiableCredential
- func (m *QueryPublicCredentialsByIssuerResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPublicCredentialsByIssuerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPublicCredentialsByIssuerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPublicCredentialsByIssuerResponse) ProtoMessage()
- func (m *QueryPublicCredentialsByIssuerResponse) Reset()
- func (m *QueryPublicCredentialsByIssuerResponse) Size() (n int)
- func (m *QueryPublicCredentialsByIssuerResponse) String() string
- func (m *QueryPublicCredentialsByIssuerResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPublicCredentialsByIssuerResponse) XXX_DiscardUnknown()
- func (m *QueryPublicCredentialsByIssuerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPublicCredentialsByIssuerResponse) XXX_Merge(src proto.Message)
- func (m *QueryPublicCredentialsByIssuerResponse) XXX_Size() int
- func (m *QueryPublicCredentialsByIssuerResponse) XXX_Unmarshal(b []byte) error
- type QueryPublicCredentialsRequest
- func (*QueryPublicCredentialsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPublicCredentialsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPublicCredentialsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPublicCredentialsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPublicCredentialsRequest) ProtoMessage()
- func (m *QueryPublicCredentialsRequest) Reset()
- func (m *QueryPublicCredentialsRequest) Size() (n int)
- func (m *QueryPublicCredentialsRequest) String() string
- func (m *QueryPublicCredentialsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPublicCredentialsRequest) XXX_DiscardUnknown()
- func (m *QueryPublicCredentialsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPublicCredentialsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPublicCredentialsRequest) XXX_Size() int
- func (m *QueryPublicCredentialsRequest) XXX_Unmarshal(b []byte) error
- type QueryPublicCredentialsResponse
- func (*QueryPublicCredentialsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPublicCredentialsResponse) GetCredential() []*PublicVerifiableCredential
- func (m *QueryPublicCredentialsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPublicCredentialsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPublicCredentialsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPublicCredentialsResponse) ProtoMessage()
- func (m *QueryPublicCredentialsResponse) Reset()
- func (m *QueryPublicCredentialsResponse) Size() (n int)
- func (m *QueryPublicCredentialsResponse) String() string
- func (m *QueryPublicCredentialsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPublicCredentialsResponse) XXX_DiscardUnknown()
- func (m *QueryPublicCredentialsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPublicCredentialsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPublicCredentialsResponse) XXX_Size() int
- func (m *QueryPublicCredentialsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) IssuePublicVerifiableCredential(ctx context.Context, req *MsgIssuePublicVerifiableCredentialRequest) (*MsgIssuePublicVerifiableCredentialResponse, error)
- func (*UnimplementedMsgServer) PublishCredentialDefinition(ctx context.Context, req *MsgPublishCredentialDefinitionRequest) (*MsgPublishCredentialDefinitionResponse, error)
- func (*UnimplementedMsgServer) UpdateCredentialDefinition(ctx context.Context, req *MsgUpdateCredentialDefinitionRequest) (*MsgUpdateCredentialDefinitionResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) CredentialDefinition(ctx context.Context, req *QueryCredentialDefinitionRequest) (*QueryCredentialDefinitionResponse, error)
- func (*UnimplementedQueryServer) CredentialDefinitions(ctx context.Context, req *QueryCredentialDefinitionsRequest) (*QueryCredentialDefinitionsResponse, error)
- func (*UnimplementedQueryServer) CredentialDefinitionsByPublisher(ctx context.Context, req *QueryCredentialDefinitionsByPublisherRequest) (*QueryCredentialDefinitionsByPublisherResponse, error)
- func (*UnimplementedQueryServer) PublicCredential(ctx context.Context, req *QueryPublicCredentialRequest) (*QueryPublicCredentialResponse, error)
- func (*UnimplementedQueryServer) PublicCredentials(ctx context.Context, req *QueryPublicCredentialsRequest) (*QueryPublicCredentialsResponse, error)
- func (*UnimplementedQueryServer) PublicCredentialsByHolder(ctx context.Context, req *QueryPublicCredentialsByHolderRequest) (*QueryPublicCredentialsByHolderResponse, error)
- func (*UnimplementedQueryServer) PublicCredentialsByIssuer(ctx context.Context, req *QueryPublicCredentialsByIssuerRequest) (*QueryPublicCredentialsByIssuerResponse, error)
- type WrappedCredential
- func (wc *WrappedCredential) Copy() WrappedCredential
- func (wc *WrappedCredential) GetBytes() ([]byte, error)
- func (wc *WrappedCredential) GetSubjectID() (s string, isDID bool)
- func (wc *WrappedCredential) HasType(credentialType string) bool
- func (wc *WrappedCredential) SetSubject(val interface{}) (err error)
- func (wc WrappedCredential) Validate(pk cryptotypes.PubKey) (err error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "credential" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_capability_credentials" )
Variables ¶
var ( ErrInvalidLengthCredential = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCredential = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCredential = fmt.Errorf("proto: unexpected end of group") )
var ( ErrCredentialDefinitionFound = sdkerrors.Register(ModuleName, 2100, "credential definition found") ErrCredentialDefinitionNotFound = sdkerrors.Register(ModuleName, 2101, "credential definition not found") ErrCredentialDefinitionCorrupted = sdkerrors.Register(ModuleName, 2109, "credential definition corrupted") ErrVerifiableCredentialNotFound = sdkerrors.Register(ModuleName, 2102, "vc not found") ErrVerifiableCredentialFound = sdkerrors.Register(ModuleName, 2103, "vc found") ErrVerifiableCredentialIssuer = sdkerrors.Register(ModuleName, 2105, "provided verifiable credential and did public key do not match") ErrInvalidProof = sdkerrors.Register(ModuleName, 2106, "credential proof validation error") ErrCredentialNotIssuable = sdkerrors.Register(ModuleName, 2107, "credential cannot be issued on-chain") ErrInvalidCredential = sdkerrors.Register(ModuleName, 2110, "credential is invalid") ErrCredentialSchema = sdkerrors.Register(ModuleName, 2130, "the credential doesn't match the definition schema") )
x/credential module sentinel errors TODO update error messages
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
var ( // CredentialDefinitionKey prefix for each key of a PublicCredential CredentialDefinitionKey = []byte{0x71} // PublicCredentialKey prefix for each key of a PublicCredential PublicCredentialKey = []byte{0x72} )
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 used by the module (protobuf) ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
Functions ¶
func CompactJSON ¶
CompactJSON read a JSON from a file and return a compact version of it
func IsEmpty ¶
IsEmpty checks if a string is empty, it trims spaces before checking for empty string
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI GetPubKey(ctx sdk.Context, addr sdk.AccAddress) (cryptotypes.PubKey, error) }
AccountKeeper defines the expected account keeper (noalias)
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type CredentialDefinition ¶
type CredentialDefinition struct { // the credential definition did Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // the did of the publisher of the credential PublisherId string `protobuf:"bytes,2,opt,name=publisherId,proto3" json:"publisherId,omitempty"` // The credential json-ld schema. // The schema can be big and verbose (and expensive), but should not be compressed since // it is used by the msg_server to verify public credentials and. if zipped, will open // the node to a zip bomb attack vector Schema []byte `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"` // the credential vocabulary // The vocabulary can be big and verbose (and expensive), but should not be compressed since // it is used by the msg_server to verify public credentials and. if zipped, will open // the node to a zip bomb attack vector Vocab []byte `protobuf:"bytes,4,opt,name=vocab,proto3" json:"vocab,omitempty"` // the human readable name of the credential, should be included // in the type of the issued credential Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // the description of the credential, such as it's purpose Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` // wherever the credential is intended for public use (on-chain) or not (off-chain) // if the value is false then the module will forbid the issuance of the credential on chain IsPublic bool `protobuf:"varint,7,opt,name=isPublic,proto3" json:"isPublic,omitempty"` // did of the credential should not be used anymore in favour of something else SupersededBy string `protobuf:"bytes,8,opt,name=supersededBy,proto3" json:"supersededBy,omitempty"` // the credential can be de-activated IsActive bool `protobuf:"varint,9,opt,name=isActive,proto3" json:"isActive,omitempty"` }
func NewCredentialDefinitionFromFile ¶
func NewCredentialDefinitionFromFile(id string, publisherDID did.DID, name, description string, isPublic, isActive bool, schemaFile, vocabFile string) (*CredentialDefinition, error)
NewCredentialDefinitionFromFile create a credential definition by reading the data from a file
func (*CredentialDefinition) Descriptor ¶
func (*CredentialDefinition) Descriptor() ([]byte, []int)
func (*CredentialDefinition) Equal ¶
func (this *CredentialDefinition) Equal(that interface{}) bool
func (*CredentialDefinition) Marshal ¶
func (m *CredentialDefinition) Marshal() (dAtA []byte, err error)
func (*CredentialDefinition) MarshalTo ¶
func (m *CredentialDefinition) MarshalTo(dAtA []byte) (int, error)
func (*CredentialDefinition) MarshalToSizedBuffer ¶
func (m *CredentialDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CredentialDefinition) ProtoMessage ¶
func (*CredentialDefinition) ProtoMessage()
func (*CredentialDefinition) Reset ¶
func (m *CredentialDefinition) Reset()
func (*CredentialDefinition) Size ¶
func (m *CredentialDefinition) Size() (n int)
func (*CredentialDefinition) String ¶
func (m *CredentialDefinition) String() string
func (*CredentialDefinition) Unmarshal ¶
func (m *CredentialDefinition) Unmarshal(dAtA []byte) error
func (*CredentialDefinition) XXX_DiscardUnknown ¶
func (m *CredentialDefinition) XXX_DiscardUnknown()
func (*CredentialDefinition) XXX_Marshal ¶
func (m *CredentialDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CredentialDefinition) XXX_Merge ¶
func (m *CredentialDefinition) XXX_Merge(src proto.Message)
func (*CredentialDefinition) XXX_Size ¶
func (m *CredentialDefinition) XXX_Size() int
func (*CredentialDefinition) XXX_Unmarshal ¶
func (m *CredentialDefinition) XXX_Unmarshal(b []byte) error
type CredentialDefinitionPublishedEvent ¶
type CredentialDefinitionPublishedEvent struct { CredentialDefinitionID string `protobuf:"bytes,1,opt,name=credentialDefinitionID,proto3" json:"credentialDefinitionID,omitempty"` PublisherID string `protobuf:"bytes,2,opt,name=publisherID,proto3" json:"publisherID,omitempty"` }
CredentialDefinitionPublishedEvent this event gets triggered when a credential definition is published
func NewCredentialDefinitionPublishedEvent ¶
func NewCredentialDefinitionPublishedEvent(credentialDefinitionDID, publisherDID string) *CredentialDefinitionPublishedEvent
NewCredentialDefinitionPublishedEvent creates the definition is published
func (*CredentialDefinitionPublishedEvent) Descriptor ¶
func (*CredentialDefinitionPublishedEvent) Descriptor() ([]byte, []int)
func (*CredentialDefinitionPublishedEvent) Equal ¶
func (this *CredentialDefinitionPublishedEvent) Equal(that interface{}) bool
func (*CredentialDefinitionPublishedEvent) Marshal ¶
func (m *CredentialDefinitionPublishedEvent) Marshal() (dAtA []byte, err error)
func (*CredentialDefinitionPublishedEvent) MarshalTo ¶
func (m *CredentialDefinitionPublishedEvent) MarshalTo(dAtA []byte) (int, error)
func (*CredentialDefinitionPublishedEvent) MarshalToSizedBuffer ¶
func (m *CredentialDefinitionPublishedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CredentialDefinitionPublishedEvent) ProtoMessage ¶
func (*CredentialDefinitionPublishedEvent) ProtoMessage()
func (*CredentialDefinitionPublishedEvent) Reset ¶
func (m *CredentialDefinitionPublishedEvent) Reset()
func (*CredentialDefinitionPublishedEvent) Size ¶
func (m *CredentialDefinitionPublishedEvent) Size() (n int)
func (*CredentialDefinitionPublishedEvent) String ¶
func (m *CredentialDefinitionPublishedEvent) String() string
func (*CredentialDefinitionPublishedEvent) Unmarshal ¶
func (m *CredentialDefinitionPublishedEvent) Unmarshal(dAtA []byte) error
func (*CredentialDefinitionPublishedEvent) XXX_DiscardUnknown ¶
func (m *CredentialDefinitionPublishedEvent) XXX_DiscardUnknown()
func (*CredentialDefinitionPublishedEvent) XXX_Marshal ¶
func (m *CredentialDefinitionPublishedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CredentialDefinitionPublishedEvent) XXX_Merge ¶
func (m *CredentialDefinitionPublishedEvent) XXX_Merge(src proto.Message)
func (*CredentialDefinitionPublishedEvent) XXX_Size ¶
func (m *CredentialDefinitionPublishedEvent) XXX_Size() int
func (*CredentialDefinitionPublishedEvent) XXX_Unmarshal ¶
func (m *CredentialDefinitionPublishedEvent) XXX_Unmarshal(b []byte) error
type CredentialDefinitionUpdatedEvent ¶
type CredentialDefinitionUpdatedEvent struct {
CredentialDefinitionID string `protobuf:"bytes,1,opt,name=credentialDefinitionID,proto3" json:"credentialDefinitionID,omitempty"`
}
CredentialDefinitionUpdatedEvent this event gets triggered when a definition gets updated
func NewCredentialDefinitionUpdatedEvent ¶
func NewCredentialDefinitionUpdatedEvent(credentialDefinitionDID string) *CredentialDefinitionUpdatedEvent
NewCredentialDefinitionUpdatedEvent creates a new event for when a credential definition is updated
func (*CredentialDefinitionUpdatedEvent) Descriptor ¶
func (*CredentialDefinitionUpdatedEvent) Descriptor() ([]byte, []int)
func (*CredentialDefinitionUpdatedEvent) Equal ¶
func (this *CredentialDefinitionUpdatedEvent) Equal(that interface{}) bool
func (*CredentialDefinitionUpdatedEvent) Marshal ¶
func (m *CredentialDefinitionUpdatedEvent) Marshal() (dAtA []byte, err error)
func (*CredentialDefinitionUpdatedEvent) MarshalTo ¶
func (m *CredentialDefinitionUpdatedEvent) MarshalTo(dAtA []byte) (int, error)
func (*CredentialDefinitionUpdatedEvent) MarshalToSizedBuffer ¶
func (m *CredentialDefinitionUpdatedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CredentialDefinitionUpdatedEvent) ProtoMessage ¶
func (*CredentialDefinitionUpdatedEvent) ProtoMessage()
func (*CredentialDefinitionUpdatedEvent) Reset ¶
func (m *CredentialDefinitionUpdatedEvent) Reset()
func (*CredentialDefinitionUpdatedEvent) Size ¶
func (m *CredentialDefinitionUpdatedEvent) Size() (n int)
func (*CredentialDefinitionUpdatedEvent) String ¶
func (m *CredentialDefinitionUpdatedEvent) String() string
func (*CredentialDefinitionUpdatedEvent) Unmarshal ¶
func (m *CredentialDefinitionUpdatedEvent) Unmarshal(dAtA []byte) error
func (*CredentialDefinitionUpdatedEvent) XXX_DiscardUnknown ¶
func (m *CredentialDefinitionUpdatedEvent) XXX_DiscardUnknown()
func (*CredentialDefinitionUpdatedEvent) XXX_Marshal ¶
func (m *CredentialDefinitionUpdatedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CredentialDefinitionUpdatedEvent) XXX_Merge ¶
func (m *CredentialDefinitionUpdatedEvent) XXX_Merge(src proto.Message)
func (*CredentialDefinitionUpdatedEvent) XXX_Size ¶
func (m *CredentialDefinitionUpdatedEvent) XXX_Size() int
func (*CredentialDefinitionUpdatedEvent) XXX_Unmarshal ¶
func (m *CredentialDefinitionUpdatedEvent) XXX_Unmarshal(b []byte) error
type CredentialStatus ¶
type CredentialStatus struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` RevocationListIndex int32 `protobuf:"varint,3,opt,name=revocationListIndex,proto3" json:"revocationListIndex,omitempty"` RevocationListCredential string `protobuf:"bytes,4,opt,name=revocationListCredential,proto3" json:"revocationListCredential,omitempty"` }
CredentialStatus implement support for biststring based revocation lists as described here: https://w3c-ccg.github.io/vc-status-rl-2020/#revocationlist2020status
func NewCredentialStatus ¶
func NewCredentialStatus(credentialList string, index int) *CredentialStatus
NewCredentialStatus returns a new credential status
func (CredentialStatus) Coordinates ¶
func (m CredentialStatus) Coordinates() (string, int)
Coordinates retun the revocation list id and credential index within the list
func (*CredentialStatus) Descriptor ¶
func (*CredentialStatus) Descriptor() ([]byte, []int)
func (*CredentialStatus) Equal ¶
func (this *CredentialStatus) Equal(that interface{}) bool
func (*CredentialStatus) Marshal ¶
func (m *CredentialStatus) Marshal() (dAtA []byte, err error)
func (*CredentialStatus) MarshalToSizedBuffer ¶
func (m *CredentialStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CredentialStatus) ProtoMessage ¶
func (*CredentialStatus) ProtoMessage()
func (*CredentialStatus) Reset ¶
func (m *CredentialStatus) Reset()
func (*CredentialStatus) Size ¶
func (m *CredentialStatus) Size() (n int)
func (*CredentialStatus) String ¶
func (m *CredentialStatus) String() string
func (CredentialStatus) TypeDef ¶
func (m CredentialStatus) TypeDef() (string, string)
TypeDef returns the credential status ID and type for correctness check
func (*CredentialStatus) Unmarshal ¶
func (m *CredentialStatus) Unmarshal(dAtA []byte) error
func (*CredentialStatus) XXX_DiscardUnknown ¶
func (m *CredentialStatus) XXX_DiscardUnknown()
func (*CredentialStatus) XXX_Marshal ¶
func (m *CredentialStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CredentialStatus) XXX_Merge ¶
func (m *CredentialStatus) XXX_Merge(src proto.Message)
func (*CredentialStatus) XXX_Size ¶
func (m *CredentialStatus) XXX_Size() int
func (*CredentialStatus) XXX_Unmarshal ¶
func (m *CredentialStatus) XXX_Unmarshal(b []byte) error
type DidKeeper ¶
type DidKeeper interface { GetDidDocument(ctx sdk.Context, key []byte) (did.DidDocument, bool) SetDidDocument(ctx sdk.Context, key []byte, document did.DidDocument) ResolveDid(ctx sdk.Context, didDoc did.DID) (doc did.DidDocument, err error) }
DidKeeper defines the expected interfaces needed to manipulate did document
type MsgClient ¶
type MsgClient interface { PublishCredentialDefinition(ctx context.Context, in *MsgPublishCredentialDefinitionRequest, opts ...grpc.CallOption) (*MsgPublishCredentialDefinitionResponse, error) UpdateCredentialDefinition(ctx context.Context, in *MsgUpdateCredentialDefinitionRequest, opts ...grpc.CallOption) (*MsgUpdateCredentialDefinitionResponse, error) IssuePublicVerifiableCredential(ctx context.Context, in *MsgIssuePublicVerifiableCredentialRequest, opts ...grpc.CallOption) (*MsgIssuePublicVerifiableCredentialResponse, 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 MsgIssuePublicVerifiableCredentialRequest ¶
type MsgIssuePublicVerifiableCredentialRequest struct { Credential *PublicVerifiableCredential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` CredentialDefinitionID string `protobuf:"bytes,2,opt,name=credentialDefinitionID,proto3" json:"credentialDefinitionID,omitempty"` Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"` }
func NewMsgIssuePublicVerifiableCredentialRequest ¶
func NewMsgIssuePublicVerifiableCredentialRequest( credential *PublicVerifiableCredential, definitionDID did.DID, signerAccount sdk.AccAddress, ) *MsgIssuePublicVerifiableCredentialRequest
NewMsgIssuePublicVerifiableCredentialRequest creates a new MsgIssuePublicVerifiableCredentialRequest instance
func (*MsgIssuePublicVerifiableCredentialRequest) Descriptor ¶
func (*MsgIssuePublicVerifiableCredentialRequest) Descriptor() ([]byte, []int)
func (MsgIssuePublicVerifiableCredentialRequest) GetSignBytes ¶
func (msg MsgIssuePublicVerifiableCredentialRequest) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg.GetSignBytes method.
func (MsgIssuePublicVerifiableCredentialRequest) GetSigners ¶
func (msg MsgIssuePublicVerifiableCredentialRequest) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgIssuePublicVerifiableCredentialRequest) Marshal ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) Marshal() (dAtA []byte, err error)
func (*MsgIssuePublicVerifiableCredentialRequest) MarshalTo ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssuePublicVerifiableCredentialRequest) MarshalToSizedBuffer ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssuePublicVerifiableCredentialRequest) ProtoMessage ¶
func (*MsgIssuePublicVerifiableCredentialRequest) ProtoMessage()
func (*MsgIssuePublicVerifiableCredentialRequest) Reset ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) Reset()
func (MsgIssuePublicVerifiableCredentialRequest) Route ¶
func (MsgIssuePublicVerifiableCredentialRequest) Route() string
Route implements sdk.Msg
func (*MsgIssuePublicVerifiableCredentialRequest) Size ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) Size() (n int)
func (*MsgIssuePublicVerifiableCredentialRequest) String ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) String() string
func (MsgIssuePublicVerifiableCredentialRequest) Type ¶
func (msg MsgIssuePublicVerifiableCredentialRequest) Type() string
Type implements sdk.Msg
func (*MsgIssuePublicVerifiableCredentialRequest) Unmarshal ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) Unmarshal(dAtA []byte) error
func (MsgIssuePublicVerifiableCredentialRequest) ValidateBasic ¶
func (m MsgIssuePublicVerifiableCredentialRequest) ValidateBasic() error
func (*MsgIssuePublicVerifiableCredentialRequest) XXX_DiscardUnknown ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) XXX_DiscardUnknown()
func (*MsgIssuePublicVerifiableCredentialRequest) XXX_Marshal ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssuePublicVerifiableCredentialRequest) XXX_Merge ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) XXX_Merge(src proto.Message)
func (*MsgIssuePublicVerifiableCredentialRequest) XXX_Size ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) XXX_Size() int
func (*MsgIssuePublicVerifiableCredentialRequest) XXX_Unmarshal ¶
func (m *MsgIssuePublicVerifiableCredentialRequest) XXX_Unmarshal(b []byte) error
type MsgIssuePublicVerifiableCredentialResponse ¶
type MsgIssuePublicVerifiableCredentialResponse struct { }
func (*MsgIssuePublicVerifiableCredentialResponse) Descriptor ¶
func (*MsgIssuePublicVerifiableCredentialResponse) Descriptor() ([]byte, []int)
func (*MsgIssuePublicVerifiableCredentialResponse) Marshal ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) Marshal() (dAtA []byte, err error)
func (*MsgIssuePublicVerifiableCredentialResponse) MarshalTo ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssuePublicVerifiableCredentialResponse) MarshalToSizedBuffer ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssuePublicVerifiableCredentialResponse) ProtoMessage ¶
func (*MsgIssuePublicVerifiableCredentialResponse) ProtoMessage()
func (*MsgIssuePublicVerifiableCredentialResponse) Reset ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) Reset()
func (*MsgIssuePublicVerifiableCredentialResponse) Size ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) Size() (n int)
func (*MsgIssuePublicVerifiableCredentialResponse) String ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) String() string
func (*MsgIssuePublicVerifiableCredentialResponse) Unmarshal ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) Unmarshal(dAtA []byte) error
func (*MsgIssuePublicVerifiableCredentialResponse) XXX_DiscardUnknown ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) XXX_DiscardUnknown()
func (*MsgIssuePublicVerifiableCredentialResponse) XXX_Marshal ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssuePublicVerifiableCredentialResponse) XXX_Merge ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) XXX_Merge(src proto.Message)
func (*MsgIssuePublicVerifiableCredentialResponse) XXX_Size ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) XXX_Size() int
func (*MsgIssuePublicVerifiableCredentialResponse) XXX_Unmarshal ¶
func (m *MsgIssuePublicVerifiableCredentialResponse) XXX_Unmarshal(b []byte) error
type MsgPublishCredentialDefinitionRequest ¶
type MsgPublishCredentialDefinitionRequest struct { CredentialDefinition *CredentialDefinition `protobuf:"bytes,1,opt,name=credentialDefinition,proto3" json:"credentialDefinition,omitempty"` Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` }
func NewMsgPublishCredentialDefinitionRequest ¶
func NewMsgPublishCredentialDefinitionRequest( credentialDefinition *CredentialDefinition, signerAccount string, ) *MsgPublishCredentialDefinitionRequest
NewMsgPublishCredentialDefinitionRequest creates a new MsgPublishCredentialDefinition instance
func (*MsgPublishCredentialDefinitionRequest) Descriptor ¶
func (*MsgPublishCredentialDefinitionRequest) Descriptor() ([]byte, []int)
func (MsgPublishCredentialDefinitionRequest) GetSignBytes ¶
func (msg MsgPublishCredentialDefinitionRequest) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg.GetSignBytes method.
func (MsgPublishCredentialDefinitionRequest) GetSigners ¶
func (msg MsgPublishCredentialDefinitionRequest) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgPublishCredentialDefinitionRequest) Marshal ¶
func (m *MsgPublishCredentialDefinitionRequest) Marshal() (dAtA []byte, err error)
func (*MsgPublishCredentialDefinitionRequest) MarshalTo ¶
func (m *MsgPublishCredentialDefinitionRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgPublishCredentialDefinitionRequest) MarshalToSizedBuffer ¶
func (m *MsgPublishCredentialDefinitionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPublishCredentialDefinitionRequest) ProtoMessage ¶
func (*MsgPublishCredentialDefinitionRequest) ProtoMessage()
func (*MsgPublishCredentialDefinitionRequest) Reset ¶
func (m *MsgPublishCredentialDefinitionRequest) Reset()
func (MsgPublishCredentialDefinitionRequest) Route ¶
func (MsgPublishCredentialDefinitionRequest) Route() string
Route implements sdk.Msg
func (*MsgPublishCredentialDefinitionRequest) Size ¶
func (m *MsgPublishCredentialDefinitionRequest) Size() (n int)
func (*MsgPublishCredentialDefinitionRequest) String ¶
func (m *MsgPublishCredentialDefinitionRequest) String() string
func (MsgPublishCredentialDefinitionRequest) Type ¶
func (msg MsgPublishCredentialDefinitionRequest) Type() string
Type implements sdk.Msg
func (*MsgPublishCredentialDefinitionRequest) Unmarshal ¶
func (m *MsgPublishCredentialDefinitionRequest) Unmarshal(dAtA []byte) error
func (MsgPublishCredentialDefinitionRequest) ValidateBasic ¶
func (m MsgPublishCredentialDefinitionRequest) ValidateBasic() error
func (*MsgPublishCredentialDefinitionRequest) XXX_DiscardUnknown ¶
func (m *MsgPublishCredentialDefinitionRequest) XXX_DiscardUnknown()
func (*MsgPublishCredentialDefinitionRequest) XXX_Marshal ¶
func (m *MsgPublishCredentialDefinitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPublishCredentialDefinitionRequest) XXX_Merge ¶
func (m *MsgPublishCredentialDefinitionRequest) XXX_Merge(src proto.Message)
func (*MsgPublishCredentialDefinitionRequest) XXX_Size ¶
func (m *MsgPublishCredentialDefinitionRequest) XXX_Size() int
func (*MsgPublishCredentialDefinitionRequest) XXX_Unmarshal ¶
func (m *MsgPublishCredentialDefinitionRequest) XXX_Unmarshal(b []byte) error
type MsgPublishCredentialDefinitionResponse ¶
type MsgPublishCredentialDefinitionResponse struct { }
func (*MsgPublishCredentialDefinitionResponse) Descriptor ¶
func (*MsgPublishCredentialDefinitionResponse) Descriptor() ([]byte, []int)
func (*MsgPublishCredentialDefinitionResponse) Marshal ¶
func (m *MsgPublishCredentialDefinitionResponse) Marshal() (dAtA []byte, err error)
func (*MsgPublishCredentialDefinitionResponse) MarshalTo ¶
func (m *MsgPublishCredentialDefinitionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPublishCredentialDefinitionResponse) MarshalToSizedBuffer ¶
func (m *MsgPublishCredentialDefinitionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPublishCredentialDefinitionResponse) ProtoMessage ¶
func (*MsgPublishCredentialDefinitionResponse) ProtoMessage()
func (*MsgPublishCredentialDefinitionResponse) Reset ¶
func (m *MsgPublishCredentialDefinitionResponse) Reset()
func (*MsgPublishCredentialDefinitionResponse) Size ¶
func (m *MsgPublishCredentialDefinitionResponse) Size() (n int)
func (*MsgPublishCredentialDefinitionResponse) String ¶
func (m *MsgPublishCredentialDefinitionResponse) String() string
func (*MsgPublishCredentialDefinitionResponse) Unmarshal ¶
func (m *MsgPublishCredentialDefinitionResponse) Unmarshal(dAtA []byte) error
func (*MsgPublishCredentialDefinitionResponse) XXX_DiscardUnknown ¶
func (m *MsgPublishCredentialDefinitionResponse) XXX_DiscardUnknown()
func (*MsgPublishCredentialDefinitionResponse) XXX_Marshal ¶
func (m *MsgPublishCredentialDefinitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPublishCredentialDefinitionResponse) XXX_Merge ¶
func (m *MsgPublishCredentialDefinitionResponse) XXX_Merge(src proto.Message)
func (*MsgPublishCredentialDefinitionResponse) XXX_Size ¶
func (m *MsgPublishCredentialDefinitionResponse) XXX_Size() int
func (*MsgPublishCredentialDefinitionResponse) XXX_Unmarshal ¶
func (m *MsgPublishCredentialDefinitionResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { PublishCredentialDefinition(context.Context, *MsgPublishCredentialDefinitionRequest) (*MsgPublishCredentialDefinitionResponse, error) UpdateCredentialDefinition(context.Context, *MsgUpdateCredentialDefinitionRequest) (*MsgUpdateCredentialDefinitionResponse, error) IssuePublicVerifiableCredential(context.Context, *MsgIssuePublicVerifiableCredentialRequest) (*MsgIssuePublicVerifiableCredentialResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateCredentialDefinitionRequest ¶
type MsgUpdateCredentialDefinitionRequest struct { CredentialDefinitionID string `protobuf:"bytes,1,opt,name=credentialDefinitionID,proto3" json:"credentialDefinitionID,omitempty"` Active bool `protobuf:"varint,2,opt,name=active,proto3" json:"active,omitempty"` SupersededBy string `protobuf:"bytes,3,opt,name=supersededBy,proto3" json:"supersededBy,omitempty"` Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"` }
func NewMsgUpdateCredentialDefinitionRequest ¶
func NewMsgUpdateCredentialDefinitionRequest( isActive bool, supersededBy did.DID, signerAccount string, ) *MsgUpdateCredentialDefinitionRequest
NewMsgUpdateCredentialDefinitionRequest creates a new MsgUpdateCredentialDefinitionRequest instance
func (*MsgUpdateCredentialDefinitionRequest) Descriptor ¶
func (*MsgUpdateCredentialDefinitionRequest) Descriptor() ([]byte, []int)
func (MsgUpdateCredentialDefinitionRequest) GetSignBytes ¶
func (msg MsgUpdateCredentialDefinitionRequest) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg.GetSignBytes method.
func (MsgUpdateCredentialDefinitionRequest) GetSigners ¶
func (msg MsgUpdateCredentialDefinitionRequest) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgUpdateCredentialDefinitionRequest) Marshal ¶
func (m *MsgUpdateCredentialDefinitionRequest) Marshal() (dAtA []byte, err error)
func (*MsgUpdateCredentialDefinitionRequest) MarshalTo ¶
func (m *MsgUpdateCredentialDefinitionRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateCredentialDefinitionRequest) MarshalToSizedBuffer ¶
func (m *MsgUpdateCredentialDefinitionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateCredentialDefinitionRequest) ProtoMessage ¶
func (*MsgUpdateCredentialDefinitionRequest) ProtoMessage()
func (*MsgUpdateCredentialDefinitionRequest) Reset ¶
func (m *MsgUpdateCredentialDefinitionRequest) Reset()
func (MsgUpdateCredentialDefinitionRequest) Route ¶
func (MsgUpdateCredentialDefinitionRequest) Route() string
Route implements sdk.Msg
func (*MsgUpdateCredentialDefinitionRequest) Size ¶
func (m *MsgUpdateCredentialDefinitionRequest) Size() (n int)
func (*MsgUpdateCredentialDefinitionRequest) String ¶
func (m *MsgUpdateCredentialDefinitionRequest) String() string
func (MsgUpdateCredentialDefinitionRequest) Type ¶
func (msg MsgUpdateCredentialDefinitionRequest) Type() string
Type implements sdk.Msg
func (*MsgUpdateCredentialDefinitionRequest) Unmarshal ¶
func (m *MsgUpdateCredentialDefinitionRequest) Unmarshal(dAtA []byte) error
func (MsgUpdateCredentialDefinitionRequest) ValidateBasic ¶
func (m MsgUpdateCredentialDefinitionRequest) ValidateBasic() error
func (*MsgUpdateCredentialDefinitionRequest) XXX_DiscardUnknown ¶
func (m *MsgUpdateCredentialDefinitionRequest) XXX_DiscardUnknown()
func (*MsgUpdateCredentialDefinitionRequest) XXX_Marshal ¶
func (m *MsgUpdateCredentialDefinitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateCredentialDefinitionRequest) XXX_Merge ¶
func (m *MsgUpdateCredentialDefinitionRequest) XXX_Merge(src proto.Message)
func (*MsgUpdateCredentialDefinitionRequest) XXX_Size ¶
func (m *MsgUpdateCredentialDefinitionRequest) XXX_Size() int
func (*MsgUpdateCredentialDefinitionRequest) XXX_Unmarshal ¶
func (m *MsgUpdateCredentialDefinitionRequest) XXX_Unmarshal(b []byte) error
type MsgUpdateCredentialDefinitionResponse ¶
type MsgUpdateCredentialDefinitionResponse struct { }
func (*MsgUpdateCredentialDefinitionResponse) Descriptor ¶
func (*MsgUpdateCredentialDefinitionResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateCredentialDefinitionResponse) Marshal ¶
func (m *MsgUpdateCredentialDefinitionResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateCredentialDefinitionResponse) MarshalTo ¶
func (m *MsgUpdateCredentialDefinitionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateCredentialDefinitionResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateCredentialDefinitionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateCredentialDefinitionResponse) ProtoMessage ¶
func (*MsgUpdateCredentialDefinitionResponse) ProtoMessage()
func (*MsgUpdateCredentialDefinitionResponse) Reset ¶
func (m *MsgUpdateCredentialDefinitionResponse) Reset()
func (*MsgUpdateCredentialDefinitionResponse) Size ¶
func (m *MsgUpdateCredentialDefinitionResponse) Size() (n int)
func (*MsgUpdateCredentialDefinitionResponse) String ¶
func (m *MsgUpdateCredentialDefinitionResponse) String() string
func (*MsgUpdateCredentialDefinitionResponse) Unmarshal ¶
func (m *MsgUpdateCredentialDefinitionResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateCredentialDefinitionResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateCredentialDefinitionResponse) XXX_DiscardUnknown()
func (*MsgUpdateCredentialDefinitionResponse) XXX_Marshal ¶
func (m *MsgUpdateCredentialDefinitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateCredentialDefinitionResponse) XXX_Merge ¶
func (m *MsgUpdateCredentialDefinitionResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateCredentialDefinitionResponse) XXX_Size ¶
func (m *MsgUpdateCredentialDefinitionResponse) XXX_Size() int
func (*MsgUpdateCredentialDefinitionResponse) XXX_Unmarshal ¶
func (m *MsgUpdateCredentialDefinitionResponse) XXX_Unmarshal(b []byte) error
type Proof ¶
type Proof struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Created string `protobuf:"bytes,2,opt,name=created,proto3" json:"created,omitempty"` ProofPurpose string `protobuf:"bytes,3,opt,name=proof_purpose,json=proofPurpose,proto3" json:"proof_purpose,omitempty"` VerificationMethod string `protobuf:"bytes,4,opt,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"` Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` }
The Proof message represents a cryptographic proof that the credential has not been tampered with or changed without the issuersi knowledge. This can be used to verify the verifiable credential.
func NewProof ¶
func NewProof( proofType string, created string, proofPurpose string, verificationMethod string, signature string, ) *Proof
NewProof create a new proof for a verifiable credential
func (*Proof) Descriptor ¶
func (*Proof) ProtoMessage ¶
func (*Proof) ProtoMessage()
func (*Proof) XXX_DiscardUnknown ¶
func (m *Proof) XXX_DiscardUnknown()
func (*Proof) XXX_Marshal ¶
func (*Proof) XXX_Unmarshal ¶
type PublicCredentialIssuedEvent ¶
type PublicCredentialIssuedEvent struct { CredentialDefinitionID string `protobuf:"bytes,1,opt,name=credentialDefinitionID,proto3" json:"credentialDefinitionID,omitempty"` CredentialID string `protobuf:"bytes,2,opt,name=credentialID,proto3" json:"credentialID,omitempty"` IssuerID string `protobuf:"bytes,3,opt,name=issuerID,proto3" json:"issuerID,omitempty"` }
PublicCredentialIssuedEvent this event gets triggered when a public verifiable credential is issued on-chain
func NewPublicCredentialIssuedEvent ¶
func NewPublicCredentialIssuedEvent(credentialDefinitionDID, credentialID, issuerDID string) *PublicCredentialIssuedEvent
NewPublicCredentialIssuedEvent creates a new event for when a credential is issued on-chain
func (*PublicCredentialIssuedEvent) Descriptor ¶
func (*PublicCredentialIssuedEvent) Descriptor() ([]byte, []int)
func (*PublicCredentialIssuedEvent) Equal ¶
func (this *PublicCredentialIssuedEvent) Equal(that interface{}) bool
func (*PublicCredentialIssuedEvent) Marshal ¶
func (m *PublicCredentialIssuedEvent) Marshal() (dAtA []byte, err error)
func (*PublicCredentialIssuedEvent) MarshalTo ¶
func (m *PublicCredentialIssuedEvent) MarshalTo(dAtA []byte) (int, error)
func (*PublicCredentialIssuedEvent) MarshalToSizedBuffer ¶
func (m *PublicCredentialIssuedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PublicCredentialIssuedEvent) ProtoMessage ¶
func (*PublicCredentialIssuedEvent) ProtoMessage()
func (*PublicCredentialIssuedEvent) Reset ¶
func (m *PublicCredentialIssuedEvent) Reset()
func (*PublicCredentialIssuedEvent) Size ¶
func (m *PublicCredentialIssuedEvent) Size() (n int)
func (*PublicCredentialIssuedEvent) String ¶
func (m *PublicCredentialIssuedEvent) String() string
func (*PublicCredentialIssuedEvent) Unmarshal ¶
func (m *PublicCredentialIssuedEvent) Unmarshal(dAtA []byte) error
func (*PublicCredentialIssuedEvent) XXX_DiscardUnknown ¶
func (m *PublicCredentialIssuedEvent) XXX_DiscardUnknown()
func (*PublicCredentialIssuedEvent) XXX_Marshal ¶
func (m *PublicCredentialIssuedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicCredentialIssuedEvent) XXX_Merge ¶
func (m *PublicCredentialIssuedEvent) XXX_Merge(src proto.Message)
func (*PublicCredentialIssuedEvent) XXX_Size ¶
func (m *PublicCredentialIssuedEvent) XXX_Size() int
func (*PublicCredentialIssuedEvent) XXX_Unmarshal ¶
func (m *PublicCredentialIssuedEvent) XXX_Unmarshal(b []byte) error
type PublicVerifiableCredential ¶
type PublicVerifiableCredential struct { // json-ld context Context []string `protobuf:"bytes,1,rep,name=context,proto3" json:"@context,omitempty"` // the credential id Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // the credential types Type []string `protobuf:"bytes,3,rep,name=type,proto3" json:"type,omitempty"` // the DID of the issuer Issuer string `protobuf:"bytes,4,opt,name=issuer,proto3" json:"issuer,omitempty"` // the date-time of issuance IssuanceDate *time.Time `protobuf:"bytes,5,opt,name=issuanceDate,proto3,stdtime" json:"issuanceDate,omitempty"` // the date-time of expiration ExpirationDate *time.Time `protobuf:"bytes,6,opt,name=expirationDate,proto3,stdtime" json:"expirationDate,omitempty"` // credential status for the revocation lists CredentialStatus *CredentialStatus `protobuf:"bytes,7,opt,name=credentialStatus,proto3" json:"credentialStatus,omitempty"` // the subject of the credential // the preferred way to handle the subject will be to use the Struct type // but at the moment is not supported // google.protobuf.Struct credentialSubject = 7; CredentialSubject []byte `protobuf:"bytes,8,opt,name=credentialSubject,proto3" json:"credentialSubject,omitempty"` // One or more cryptographic proofs that can be used to detect tampering // and verify the authorship of a credential or presentation. The specific // method used for an embedded proof MUST be included using the type property. Proof *Proof `protobuf:"bytes,9,opt,name=proof,proto3" json:"proof,omitempty"` }
DidMetadata defines metadata associated to a did document such as the status of the DID document
func NewPublicVerifiableCredential ¶
func NewPublicVerifiableCredential(id string, opts ...PublicVerifiableCredentialOption) *PublicVerifiableCredential
func (*PublicVerifiableCredential) Descriptor ¶
func (*PublicVerifiableCredential) Descriptor() ([]byte, []int)
func (*PublicVerifiableCredential) Equal ¶
func (this *PublicVerifiableCredential) Equal(that interface{}) bool
func (PublicVerifiableCredential) GetIssuerDID ¶
func (pvc PublicVerifiableCredential) GetIssuerDID() did.DID
GetIssuerDID returns the DID of the issuer
func (*PublicVerifiableCredential) Marshal ¶
func (m *PublicVerifiableCredential) Marshal() (dAtA []byte, err error)
func (*PublicVerifiableCredential) MarshalTo ¶
func (m *PublicVerifiableCredential) MarshalTo(dAtA []byte) (int, error)
func (*PublicVerifiableCredential) MarshalToSizedBuffer ¶
func (m *PublicVerifiableCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PublicVerifiableCredential) ProtoMessage ¶
func (*PublicVerifiableCredential) ProtoMessage()
func (*PublicVerifiableCredential) Reset ¶
func (m *PublicVerifiableCredential) Reset()
func (*PublicVerifiableCredential) Size ¶
func (m *PublicVerifiableCredential) Size() (n int)
func (*PublicVerifiableCredential) String ¶
func (m *PublicVerifiableCredential) String() string
func (*PublicVerifiableCredential) Unmarshal ¶
func (m *PublicVerifiableCredential) Unmarshal(dAtA []byte) error
func (*PublicVerifiableCredential) XXX_DiscardUnknown ¶
func (m *PublicVerifiableCredential) XXX_DiscardUnknown()
func (*PublicVerifiableCredential) XXX_Marshal ¶
func (m *PublicVerifiableCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicVerifiableCredential) XXX_Merge ¶
func (m *PublicVerifiableCredential) XXX_Merge(src proto.Message)
func (*PublicVerifiableCredential) XXX_Size ¶
func (m *PublicVerifiableCredential) XXX_Size() int
func (*PublicVerifiableCredential) XXX_Unmarshal ¶
func (m *PublicVerifiableCredential) XXX_Unmarshal(b []byte) error
type PublicVerifiableCredentialOption ¶
type PublicVerifiableCredentialOption func(credential *PublicVerifiableCredential)
func WithContext ¶
func WithContext(context ...string) PublicVerifiableCredentialOption
func WithExpirationDate ¶
func WithExpirationDate(date time.Time) PublicVerifiableCredentialOption
func WithIssuanceDate ¶
func WithIssuanceDate(date time.Time) PublicVerifiableCredentialOption
func WithIssuerDID ¶
func WithIssuerDID(issuer did.DID) PublicVerifiableCredentialOption
func WithType ¶
func WithType(typ ...string) PublicVerifiableCredentialOption
type QueryClient ¶
type QueryClient interface { // PublicCredentials PublicCredential(ctx context.Context, in *QueryPublicCredentialRequest, opts ...grpc.CallOption) (*QueryPublicCredentialResponse, error) // TODO: to remove in favour of a third party service that indexes the credential // PublicCredentials PublicCredentials(ctx context.Context, in *QueryPublicCredentialsRequest, opts ...grpc.CallOption) (*QueryPublicCredentialsResponse, error) PublicCredentialsByHolder(ctx context.Context, in *QueryPublicCredentialsByHolderRequest, opts ...grpc.CallOption) (*QueryPublicCredentialsByHolderResponse, error) PublicCredentialsByIssuer(ctx context.Context, in *QueryPublicCredentialsByIssuerRequest, opts ...grpc.CallOption) (*QueryPublicCredentialsByIssuerResponse, error) // CredentialDefinition CredentialDefinition(ctx context.Context, in *QueryCredentialDefinitionRequest, opts ...grpc.CallOption) (*QueryCredentialDefinitionResponse, error) // TODO: to remove in favor of a 3rd party service that indexes the definitions // CredentialDefinition CredentialDefinitions(ctx context.Context, in *QueryCredentialDefinitionsRequest, opts ...grpc.CallOption) (*QueryCredentialDefinitionsResponse, error) CredentialDefinitionsByPublisher(ctx context.Context, in *QueryCredentialDefinitionsByPublisherRequest, opts ...grpc.CallOption) (*QueryCredentialDefinitionsByPublisherResponse, 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 QueryCredentialDefinitionRequest ¶
type QueryCredentialDefinitionRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryCredentialDefinitionRequest) Descriptor ¶
func (*QueryCredentialDefinitionRequest) Descriptor() ([]byte, []int)
func (*QueryCredentialDefinitionRequest) GetId ¶
func (m *QueryCredentialDefinitionRequest) GetId() string
func (*QueryCredentialDefinitionRequest) Marshal ¶
func (m *QueryCredentialDefinitionRequest) Marshal() (dAtA []byte, err error)
func (*QueryCredentialDefinitionRequest) MarshalTo ¶
func (m *QueryCredentialDefinitionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionRequest) MarshalToSizedBuffer ¶
func (m *QueryCredentialDefinitionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionRequest) ProtoMessage ¶
func (*QueryCredentialDefinitionRequest) ProtoMessage()
func (*QueryCredentialDefinitionRequest) Reset ¶
func (m *QueryCredentialDefinitionRequest) Reset()
func (*QueryCredentialDefinitionRequest) Size ¶
func (m *QueryCredentialDefinitionRequest) Size() (n int)
func (*QueryCredentialDefinitionRequest) String ¶
func (m *QueryCredentialDefinitionRequest) String() string
func (*QueryCredentialDefinitionRequest) Unmarshal ¶
func (m *QueryCredentialDefinitionRequest) Unmarshal(dAtA []byte) error
func (*QueryCredentialDefinitionRequest) XXX_DiscardUnknown ¶
func (m *QueryCredentialDefinitionRequest) XXX_DiscardUnknown()
func (*QueryCredentialDefinitionRequest) XXX_Marshal ¶
func (m *QueryCredentialDefinitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCredentialDefinitionRequest) XXX_Merge ¶
func (m *QueryCredentialDefinitionRequest) XXX_Merge(src proto.Message)
func (*QueryCredentialDefinitionRequest) XXX_Size ¶
func (m *QueryCredentialDefinitionRequest) XXX_Size() int
func (*QueryCredentialDefinitionRequest) XXX_Unmarshal ¶
func (m *QueryCredentialDefinitionRequest) XXX_Unmarshal(b []byte) error
type QueryCredentialDefinitionResponse ¶
type QueryCredentialDefinitionResponse struct {
Definition *CredentialDefinition `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"`
}
func (*QueryCredentialDefinitionResponse) Descriptor ¶
func (*QueryCredentialDefinitionResponse) Descriptor() ([]byte, []int)
func (*QueryCredentialDefinitionResponse) GetDefinition ¶
func (m *QueryCredentialDefinitionResponse) GetDefinition() *CredentialDefinition
func (*QueryCredentialDefinitionResponse) Marshal ¶
func (m *QueryCredentialDefinitionResponse) Marshal() (dAtA []byte, err error)
func (*QueryCredentialDefinitionResponse) MarshalTo ¶
func (m *QueryCredentialDefinitionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionResponse) MarshalToSizedBuffer ¶
func (m *QueryCredentialDefinitionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionResponse) ProtoMessage ¶
func (*QueryCredentialDefinitionResponse) ProtoMessage()
func (*QueryCredentialDefinitionResponse) Reset ¶
func (m *QueryCredentialDefinitionResponse) Reset()
func (*QueryCredentialDefinitionResponse) Size ¶
func (m *QueryCredentialDefinitionResponse) Size() (n int)
func (*QueryCredentialDefinitionResponse) String ¶
func (m *QueryCredentialDefinitionResponse) String() string
func (*QueryCredentialDefinitionResponse) Unmarshal ¶
func (m *QueryCredentialDefinitionResponse) Unmarshal(dAtA []byte) error
func (*QueryCredentialDefinitionResponse) XXX_DiscardUnknown ¶
func (m *QueryCredentialDefinitionResponse) XXX_DiscardUnknown()
func (*QueryCredentialDefinitionResponse) XXX_Marshal ¶
func (m *QueryCredentialDefinitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCredentialDefinitionResponse) XXX_Merge ¶
func (m *QueryCredentialDefinitionResponse) XXX_Merge(src proto.Message)
func (*QueryCredentialDefinitionResponse) XXX_Size ¶
func (m *QueryCredentialDefinitionResponse) XXX_Size() int
func (*QueryCredentialDefinitionResponse) XXX_Unmarshal ¶
func (m *QueryCredentialDefinitionResponse) XXX_Unmarshal(b []byte) error
type QueryCredentialDefinitionsByPublisherRequest ¶
type QueryCredentialDefinitionsByPublisherRequest struct {
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
}
func (*QueryCredentialDefinitionsByPublisherRequest) Descriptor ¶
func (*QueryCredentialDefinitionsByPublisherRequest) Descriptor() ([]byte, []int)
func (*QueryCredentialDefinitionsByPublisherRequest) GetDid ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) GetDid() string
func (*QueryCredentialDefinitionsByPublisherRequest) Marshal ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) Marshal() (dAtA []byte, err error)
func (*QueryCredentialDefinitionsByPublisherRequest) MarshalTo ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionsByPublisherRequest) MarshalToSizedBuffer ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionsByPublisherRequest) ProtoMessage ¶
func (*QueryCredentialDefinitionsByPublisherRequest) ProtoMessage()
func (*QueryCredentialDefinitionsByPublisherRequest) Reset ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) Reset()
func (*QueryCredentialDefinitionsByPublisherRequest) Size ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) Size() (n int)
func (*QueryCredentialDefinitionsByPublisherRequest) String ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) String() string
func (*QueryCredentialDefinitionsByPublisherRequest) Unmarshal ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) Unmarshal(dAtA []byte) error
func (*QueryCredentialDefinitionsByPublisherRequest) XXX_DiscardUnknown ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) XXX_DiscardUnknown()
func (*QueryCredentialDefinitionsByPublisherRequest) XXX_Marshal ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCredentialDefinitionsByPublisherRequest) XXX_Merge ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) XXX_Merge(src proto.Message)
func (*QueryCredentialDefinitionsByPublisherRequest) XXX_Size ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) XXX_Size() int
func (*QueryCredentialDefinitionsByPublisherRequest) XXX_Unmarshal ¶
func (m *QueryCredentialDefinitionsByPublisherRequest) XXX_Unmarshal(b []byte) error
type QueryCredentialDefinitionsByPublisherResponse ¶
type QueryCredentialDefinitionsByPublisherResponse struct {
Definitions []*CredentialDefinition `protobuf:"bytes,1,rep,name=definitions,proto3" json:"definitions,omitempty"`
}
func (*QueryCredentialDefinitionsByPublisherResponse) Descriptor ¶
func (*QueryCredentialDefinitionsByPublisherResponse) Descriptor() ([]byte, []int)
func (*QueryCredentialDefinitionsByPublisherResponse) GetDefinitions ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) GetDefinitions() []*CredentialDefinition
func (*QueryCredentialDefinitionsByPublisherResponse) Marshal ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) Marshal() (dAtA []byte, err error)
func (*QueryCredentialDefinitionsByPublisherResponse) MarshalTo ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionsByPublisherResponse) MarshalToSizedBuffer ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionsByPublisherResponse) ProtoMessage ¶
func (*QueryCredentialDefinitionsByPublisherResponse) ProtoMessage()
func (*QueryCredentialDefinitionsByPublisherResponse) Reset ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) Reset()
func (*QueryCredentialDefinitionsByPublisherResponse) Size ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) Size() (n int)
func (*QueryCredentialDefinitionsByPublisherResponse) String ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) String() string
func (*QueryCredentialDefinitionsByPublisherResponse) Unmarshal ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) Unmarshal(dAtA []byte) error
func (*QueryCredentialDefinitionsByPublisherResponse) XXX_DiscardUnknown ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) XXX_DiscardUnknown()
func (*QueryCredentialDefinitionsByPublisherResponse) XXX_Marshal ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCredentialDefinitionsByPublisherResponse) XXX_Merge ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) XXX_Merge(src proto.Message)
func (*QueryCredentialDefinitionsByPublisherResponse) XXX_Size ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) XXX_Size() int
func (*QueryCredentialDefinitionsByPublisherResponse) XXX_Unmarshal ¶
func (m *QueryCredentialDefinitionsByPublisherResponse) XXX_Unmarshal(b []byte) error
type QueryCredentialDefinitionsRequest ¶
type QueryCredentialDefinitionsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryCredentialDefinitionsRequest) Descriptor ¶
func (*QueryCredentialDefinitionsRequest) Descriptor() ([]byte, []int)
func (*QueryCredentialDefinitionsRequest) GetPagination ¶
func (m *QueryCredentialDefinitionsRequest) GetPagination() *query.PageRequest
func (*QueryCredentialDefinitionsRequest) Marshal ¶
func (m *QueryCredentialDefinitionsRequest) Marshal() (dAtA []byte, err error)
func (*QueryCredentialDefinitionsRequest) MarshalTo ¶
func (m *QueryCredentialDefinitionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionsRequest) MarshalToSizedBuffer ¶
func (m *QueryCredentialDefinitionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionsRequest) ProtoMessage ¶
func (*QueryCredentialDefinitionsRequest) ProtoMessage()
func (*QueryCredentialDefinitionsRequest) Reset ¶
func (m *QueryCredentialDefinitionsRequest) Reset()
func (*QueryCredentialDefinitionsRequest) Size ¶
func (m *QueryCredentialDefinitionsRequest) Size() (n int)
func (*QueryCredentialDefinitionsRequest) String ¶
func (m *QueryCredentialDefinitionsRequest) String() string
func (*QueryCredentialDefinitionsRequest) Unmarshal ¶
func (m *QueryCredentialDefinitionsRequest) Unmarshal(dAtA []byte) error
func (*QueryCredentialDefinitionsRequest) XXX_DiscardUnknown ¶
func (m *QueryCredentialDefinitionsRequest) XXX_DiscardUnknown()
func (*QueryCredentialDefinitionsRequest) XXX_Marshal ¶
func (m *QueryCredentialDefinitionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCredentialDefinitionsRequest) XXX_Merge ¶
func (m *QueryCredentialDefinitionsRequest) XXX_Merge(src proto.Message)
func (*QueryCredentialDefinitionsRequest) XXX_Size ¶
func (m *QueryCredentialDefinitionsRequest) XXX_Size() int
func (*QueryCredentialDefinitionsRequest) XXX_Unmarshal ¶
func (m *QueryCredentialDefinitionsRequest) XXX_Unmarshal(b []byte) error
type QueryCredentialDefinitionsResponse ¶
type QueryCredentialDefinitionsResponse struct { Definitions []*CredentialDefinition `protobuf:"bytes,1,rep,name=definitions,proto3" json:"definitions,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryCredentialDefinitionsResponse) Descriptor ¶
func (*QueryCredentialDefinitionsResponse) Descriptor() ([]byte, []int)
func (*QueryCredentialDefinitionsResponse) GetDefinitions ¶
func (m *QueryCredentialDefinitionsResponse) GetDefinitions() []*CredentialDefinition
func (*QueryCredentialDefinitionsResponse) GetPagination ¶
func (m *QueryCredentialDefinitionsResponse) GetPagination() *query.PageResponse
func (*QueryCredentialDefinitionsResponse) Marshal ¶
func (m *QueryCredentialDefinitionsResponse) Marshal() (dAtA []byte, err error)
func (*QueryCredentialDefinitionsResponse) MarshalTo ¶
func (m *QueryCredentialDefinitionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionsResponse) MarshalToSizedBuffer ¶
func (m *QueryCredentialDefinitionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCredentialDefinitionsResponse) ProtoMessage ¶
func (*QueryCredentialDefinitionsResponse) ProtoMessage()
func (*QueryCredentialDefinitionsResponse) Reset ¶
func (m *QueryCredentialDefinitionsResponse) Reset()
func (*QueryCredentialDefinitionsResponse) Size ¶
func (m *QueryCredentialDefinitionsResponse) Size() (n int)
func (*QueryCredentialDefinitionsResponse) String ¶
func (m *QueryCredentialDefinitionsResponse) String() string
func (*QueryCredentialDefinitionsResponse) Unmarshal ¶
func (m *QueryCredentialDefinitionsResponse) Unmarshal(dAtA []byte) error
func (*QueryCredentialDefinitionsResponse) XXX_DiscardUnknown ¶
func (m *QueryCredentialDefinitionsResponse) XXX_DiscardUnknown()
func (*QueryCredentialDefinitionsResponse) XXX_Marshal ¶
func (m *QueryCredentialDefinitionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCredentialDefinitionsResponse) XXX_Merge ¶
func (m *QueryCredentialDefinitionsResponse) XXX_Merge(src proto.Message)
func (*QueryCredentialDefinitionsResponse) XXX_Size ¶
func (m *QueryCredentialDefinitionsResponse) XXX_Size() int
func (*QueryCredentialDefinitionsResponse) XXX_Unmarshal ¶
func (m *QueryCredentialDefinitionsResponse) XXX_Unmarshal(b []byte) error
type QueryPublicCredentialRequest ¶
type QueryPublicCredentialRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryPublicCredentialRequest) Descriptor ¶
func (*QueryPublicCredentialRequest) Descriptor() ([]byte, []int)
func (*QueryPublicCredentialRequest) GetId ¶
func (m *QueryPublicCredentialRequest) GetId() string
func (*QueryPublicCredentialRequest) Marshal ¶
func (m *QueryPublicCredentialRequest) Marshal() (dAtA []byte, err error)
func (*QueryPublicCredentialRequest) MarshalTo ¶
func (m *QueryPublicCredentialRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPublicCredentialRequest) MarshalToSizedBuffer ¶
func (m *QueryPublicCredentialRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPublicCredentialRequest) ProtoMessage ¶
func (*QueryPublicCredentialRequest) ProtoMessage()
func (*QueryPublicCredentialRequest) Reset ¶
func (m *QueryPublicCredentialRequest) Reset()
func (*QueryPublicCredentialRequest) Size ¶
func (m *QueryPublicCredentialRequest) Size() (n int)
func (*QueryPublicCredentialRequest) String ¶
func (m *QueryPublicCredentialRequest) String() string
func (*QueryPublicCredentialRequest) Unmarshal ¶
func (m *QueryPublicCredentialRequest) Unmarshal(dAtA []byte) error
func (*QueryPublicCredentialRequest) XXX_DiscardUnknown ¶
func (m *QueryPublicCredentialRequest) XXX_DiscardUnknown()
func (*QueryPublicCredentialRequest) XXX_Marshal ¶
func (m *QueryPublicCredentialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPublicCredentialRequest) XXX_Merge ¶
func (m *QueryPublicCredentialRequest) XXX_Merge(src proto.Message)
func (*QueryPublicCredentialRequest) XXX_Size ¶
func (m *QueryPublicCredentialRequest) XXX_Size() int
func (*QueryPublicCredentialRequest) XXX_Unmarshal ¶
func (m *QueryPublicCredentialRequest) XXX_Unmarshal(b []byte) error
type QueryPublicCredentialResponse ¶
type QueryPublicCredentialResponse struct {
Credential *PublicVerifiableCredential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
}
func (*QueryPublicCredentialResponse) Descriptor ¶
func (*QueryPublicCredentialResponse) Descriptor() ([]byte, []int)
func (*QueryPublicCredentialResponse) GetCredential ¶
func (m *QueryPublicCredentialResponse) GetCredential() *PublicVerifiableCredential
func (*QueryPublicCredentialResponse) Marshal ¶
func (m *QueryPublicCredentialResponse) Marshal() (dAtA []byte, err error)
func (*QueryPublicCredentialResponse) MarshalTo ¶
func (m *QueryPublicCredentialResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPublicCredentialResponse) MarshalToSizedBuffer ¶
func (m *QueryPublicCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPublicCredentialResponse) ProtoMessage ¶
func (*QueryPublicCredentialResponse) ProtoMessage()
func (*QueryPublicCredentialResponse) Reset ¶
func (m *QueryPublicCredentialResponse) Reset()
func (*QueryPublicCredentialResponse) Size ¶
func (m *QueryPublicCredentialResponse) Size() (n int)
func (*QueryPublicCredentialResponse) String ¶
func (m *QueryPublicCredentialResponse) String() string
func (*QueryPublicCredentialResponse) Unmarshal ¶
func (m *QueryPublicCredentialResponse) Unmarshal(dAtA []byte) error
func (*QueryPublicCredentialResponse) XXX_DiscardUnknown ¶
func (m *QueryPublicCredentialResponse) XXX_DiscardUnknown()
func (*QueryPublicCredentialResponse) XXX_Marshal ¶
func (m *QueryPublicCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPublicCredentialResponse) XXX_Merge ¶
func (m *QueryPublicCredentialResponse) XXX_Merge(src proto.Message)
func (*QueryPublicCredentialResponse) XXX_Size ¶
func (m *QueryPublicCredentialResponse) XXX_Size() int
func (*QueryPublicCredentialResponse) XXX_Unmarshal ¶
func (m *QueryPublicCredentialResponse) XXX_Unmarshal(b []byte) error
type QueryPublicCredentialsByHolderRequest ¶
type QueryPublicCredentialsByHolderRequest struct {
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
}
func (*QueryPublicCredentialsByHolderRequest) Descriptor ¶
func (*QueryPublicCredentialsByHolderRequest) Descriptor() ([]byte, []int)
func (*QueryPublicCredentialsByHolderRequest) GetDid ¶
func (m *QueryPublicCredentialsByHolderRequest) GetDid() string
func (*QueryPublicCredentialsByHolderRequest) Marshal ¶
func (m *QueryPublicCredentialsByHolderRequest) Marshal() (dAtA []byte, err error)
func (*QueryPublicCredentialsByHolderRequest) MarshalTo ¶
func (m *QueryPublicCredentialsByHolderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPublicCredentialsByHolderRequest) MarshalToSizedBuffer ¶
func (m *QueryPublicCredentialsByHolderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPublicCredentialsByHolderRequest) ProtoMessage ¶
func (*QueryPublicCredentialsByHolderRequest) ProtoMessage()
func (*QueryPublicCredentialsByHolderRequest) Reset ¶
func (m *QueryPublicCredentialsByHolderRequest) Reset()
func (*QueryPublicCredentialsByHolderRequest) Size ¶
func (m *QueryPublicCredentialsByHolderRequest) Size() (n int)
func (*QueryPublicCredentialsByHolderRequest) String ¶
func (m *QueryPublicCredentialsByHolderRequest) String() string
func (*QueryPublicCredentialsByHolderRequest) Unmarshal ¶
func (m *QueryPublicCredentialsByHolderRequest) Unmarshal(dAtA []byte) error
func (*QueryPublicCredentialsByHolderRequest) XXX_DiscardUnknown ¶
func (m *QueryPublicCredentialsByHolderRequest) XXX_DiscardUnknown()
func (*QueryPublicCredentialsByHolderRequest) XXX_Marshal ¶
func (m *QueryPublicCredentialsByHolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPublicCredentialsByHolderRequest) XXX_Merge ¶
func (m *QueryPublicCredentialsByHolderRequest) XXX_Merge(src proto.Message)
func (*QueryPublicCredentialsByHolderRequest) XXX_Size ¶
func (m *QueryPublicCredentialsByHolderRequest) XXX_Size() int
func (*QueryPublicCredentialsByHolderRequest) XXX_Unmarshal ¶
func (m *QueryPublicCredentialsByHolderRequest) XXX_Unmarshal(b []byte) error
type QueryPublicCredentialsByHolderResponse ¶
type QueryPublicCredentialsByHolderResponse struct {
Credential []*PublicVerifiableCredential `protobuf:"bytes,1,rep,name=credential,proto3" json:"credential,omitempty"`
}
func (*QueryPublicCredentialsByHolderResponse) Descriptor ¶
func (*QueryPublicCredentialsByHolderResponse) Descriptor() ([]byte, []int)
func (*QueryPublicCredentialsByHolderResponse) GetCredential ¶
func (m *QueryPublicCredentialsByHolderResponse) GetCredential() []*PublicVerifiableCredential
func (*QueryPublicCredentialsByHolderResponse) Marshal ¶
func (m *QueryPublicCredentialsByHolderResponse) Marshal() (dAtA []byte, err error)
func (*QueryPublicCredentialsByHolderResponse) MarshalTo ¶
func (m *QueryPublicCredentialsByHolderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPublicCredentialsByHolderResponse) MarshalToSizedBuffer ¶
func (m *QueryPublicCredentialsByHolderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPublicCredentialsByHolderResponse) ProtoMessage ¶
func (*QueryPublicCredentialsByHolderResponse) ProtoMessage()
func (*QueryPublicCredentialsByHolderResponse) Reset ¶
func (m *QueryPublicCredentialsByHolderResponse) Reset()
func (*QueryPublicCredentialsByHolderResponse) Size ¶
func (m *QueryPublicCredentialsByHolderResponse) Size() (n int)
func (*QueryPublicCredentialsByHolderResponse) String ¶
func (m *QueryPublicCredentialsByHolderResponse) String() string
func (*QueryPublicCredentialsByHolderResponse) Unmarshal ¶
func (m *QueryPublicCredentialsByHolderResponse) Unmarshal(dAtA []byte) error
func (*QueryPublicCredentialsByHolderResponse) XXX_DiscardUnknown ¶
func (m *QueryPublicCredentialsByHolderResponse) XXX_DiscardUnknown()
func (*QueryPublicCredentialsByHolderResponse) XXX_Marshal ¶
func (m *QueryPublicCredentialsByHolderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPublicCredentialsByHolderResponse) XXX_Merge ¶
func (m *QueryPublicCredentialsByHolderResponse) XXX_Merge(src proto.Message)
func (*QueryPublicCredentialsByHolderResponse) XXX_Size ¶
func (m *QueryPublicCredentialsByHolderResponse) XXX_Size() int
func (*QueryPublicCredentialsByHolderResponse) XXX_Unmarshal ¶
func (m *QueryPublicCredentialsByHolderResponse) XXX_Unmarshal(b []byte) error
type QueryPublicCredentialsByIssuerRequest ¶
type QueryPublicCredentialsByIssuerRequest struct {
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
}
func (*QueryPublicCredentialsByIssuerRequest) Descriptor ¶
func (*QueryPublicCredentialsByIssuerRequest) Descriptor() ([]byte, []int)
func (*QueryPublicCredentialsByIssuerRequest) GetDid ¶
func (m *QueryPublicCredentialsByIssuerRequest) GetDid() string
func (*QueryPublicCredentialsByIssuerRequest) Marshal ¶
func (m *QueryPublicCredentialsByIssuerRequest) Marshal() (dAtA []byte, err error)
func (*QueryPublicCredentialsByIssuerRequest) MarshalTo ¶
func (m *QueryPublicCredentialsByIssuerRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPublicCredentialsByIssuerRequest) MarshalToSizedBuffer ¶
func (m *QueryPublicCredentialsByIssuerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPublicCredentialsByIssuerRequest) ProtoMessage ¶
func (*QueryPublicCredentialsByIssuerRequest) ProtoMessage()
func (*QueryPublicCredentialsByIssuerRequest) Reset ¶
func (m *QueryPublicCredentialsByIssuerRequest) Reset()
func (*QueryPublicCredentialsByIssuerRequest) Size ¶
func (m *QueryPublicCredentialsByIssuerRequest) Size() (n int)
func (*QueryPublicCredentialsByIssuerRequest) String ¶
func (m *QueryPublicCredentialsByIssuerRequest) String() string
func (*QueryPublicCredentialsByIssuerRequest) Unmarshal ¶
func (m *QueryPublicCredentialsByIssuerRequest) Unmarshal(dAtA []byte) error
func (*QueryPublicCredentialsByIssuerRequest) XXX_DiscardUnknown ¶
func (m *QueryPublicCredentialsByIssuerRequest) XXX_DiscardUnknown()
func (*QueryPublicCredentialsByIssuerRequest) XXX_Marshal ¶
func (m *QueryPublicCredentialsByIssuerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPublicCredentialsByIssuerRequest) XXX_Merge ¶
func (m *QueryPublicCredentialsByIssuerRequest) XXX_Merge(src proto.Message)
func (*QueryPublicCredentialsByIssuerRequest) XXX_Size ¶
func (m *QueryPublicCredentialsByIssuerRequest) XXX_Size() int
func (*QueryPublicCredentialsByIssuerRequest) XXX_Unmarshal ¶
func (m *QueryPublicCredentialsByIssuerRequest) XXX_Unmarshal(b []byte) error
type QueryPublicCredentialsByIssuerResponse ¶
type QueryPublicCredentialsByIssuerResponse struct {
Credential []*PublicVerifiableCredential `protobuf:"bytes,1,rep,name=credential,proto3" json:"credential,omitempty"`
}
func (*QueryPublicCredentialsByIssuerResponse) Descriptor ¶
func (*QueryPublicCredentialsByIssuerResponse) Descriptor() ([]byte, []int)
func (*QueryPublicCredentialsByIssuerResponse) GetCredential ¶
func (m *QueryPublicCredentialsByIssuerResponse) GetCredential() []*PublicVerifiableCredential
func (*QueryPublicCredentialsByIssuerResponse) Marshal ¶
func (m *QueryPublicCredentialsByIssuerResponse) Marshal() (dAtA []byte, err error)
func (*QueryPublicCredentialsByIssuerResponse) MarshalTo ¶
func (m *QueryPublicCredentialsByIssuerResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPublicCredentialsByIssuerResponse) MarshalToSizedBuffer ¶
func (m *QueryPublicCredentialsByIssuerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPublicCredentialsByIssuerResponse) ProtoMessage ¶
func (*QueryPublicCredentialsByIssuerResponse) ProtoMessage()
func (*QueryPublicCredentialsByIssuerResponse) Reset ¶
func (m *QueryPublicCredentialsByIssuerResponse) Reset()
func (*QueryPublicCredentialsByIssuerResponse) Size ¶
func (m *QueryPublicCredentialsByIssuerResponse) Size() (n int)
func (*QueryPublicCredentialsByIssuerResponse) String ¶
func (m *QueryPublicCredentialsByIssuerResponse) String() string
func (*QueryPublicCredentialsByIssuerResponse) Unmarshal ¶
func (m *QueryPublicCredentialsByIssuerResponse) Unmarshal(dAtA []byte) error
func (*QueryPublicCredentialsByIssuerResponse) XXX_DiscardUnknown ¶
func (m *QueryPublicCredentialsByIssuerResponse) XXX_DiscardUnknown()
func (*QueryPublicCredentialsByIssuerResponse) XXX_Marshal ¶
func (m *QueryPublicCredentialsByIssuerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPublicCredentialsByIssuerResponse) XXX_Merge ¶
func (m *QueryPublicCredentialsByIssuerResponse) XXX_Merge(src proto.Message)
func (*QueryPublicCredentialsByIssuerResponse) XXX_Size ¶
func (m *QueryPublicCredentialsByIssuerResponse) XXX_Size() int
func (*QueryPublicCredentialsByIssuerResponse) XXX_Unmarshal ¶
func (m *QueryPublicCredentialsByIssuerResponse) XXX_Unmarshal(b []byte) error
type QueryPublicCredentialsRequest ¶
type QueryPublicCredentialsRequest struct { }
func (*QueryPublicCredentialsRequest) Descriptor ¶
func (*QueryPublicCredentialsRequest) Descriptor() ([]byte, []int)
func (*QueryPublicCredentialsRequest) Marshal ¶
func (m *QueryPublicCredentialsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPublicCredentialsRequest) MarshalTo ¶
func (m *QueryPublicCredentialsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPublicCredentialsRequest) MarshalToSizedBuffer ¶
func (m *QueryPublicCredentialsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPublicCredentialsRequest) ProtoMessage ¶
func (*QueryPublicCredentialsRequest) ProtoMessage()
func (*QueryPublicCredentialsRequest) Reset ¶
func (m *QueryPublicCredentialsRequest) Reset()
func (*QueryPublicCredentialsRequest) Size ¶
func (m *QueryPublicCredentialsRequest) Size() (n int)
func (*QueryPublicCredentialsRequest) String ¶
func (m *QueryPublicCredentialsRequest) String() string
func (*QueryPublicCredentialsRequest) Unmarshal ¶
func (m *QueryPublicCredentialsRequest) Unmarshal(dAtA []byte) error
func (*QueryPublicCredentialsRequest) XXX_DiscardUnknown ¶
func (m *QueryPublicCredentialsRequest) XXX_DiscardUnknown()
func (*QueryPublicCredentialsRequest) XXX_Marshal ¶
func (m *QueryPublicCredentialsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPublicCredentialsRequest) XXX_Merge ¶
func (m *QueryPublicCredentialsRequest) XXX_Merge(src proto.Message)
func (*QueryPublicCredentialsRequest) XXX_Size ¶
func (m *QueryPublicCredentialsRequest) XXX_Size() int
func (*QueryPublicCredentialsRequest) XXX_Unmarshal ¶
func (m *QueryPublicCredentialsRequest) XXX_Unmarshal(b []byte) error
type QueryPublicCredentialsResponse ¶
type QueryPublicCredentialsResponse struct {
Credential []*PublicVerifiableCredential `protobuf:"bytes,1,rep,name=credential,proto3" json:"credential,omitempty"`
}
func (*QueryPublicCredentialsResponse) Descriptor ¶
func (*QueryPublicCredentialsResponse) Descriptor() ([]byte, []int)
func (*QueryPublicCredentialsResponse) GetCredential ¶
func (m *QueryPublicCredentialsResponse) GetCredential() []*PublicVerifiableCredential
func (*QueryPublicCredentialsResponse) Marshal ¶
func (m *QueryPublicCredentialsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPublicCredentialsResponse) MarshalTo ¶
func (m *QueryPublicCredentialsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPublicCredentialsResponse) MarshalToSizedBuffer ¶
func (m *QueryPublicCredentialsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPublicCredentialsResponse) ProtoMessage ¶
func (*QueryPublicCredentialsResponse) ProtoMessage()
func (*QueryPublicCredentialsResponse) Reset ¶
func (m *QueryPublicCredentialsResponse) Reset()
func (*QueryPublicCredentialsResponse) Size ¶
func (m *QueryPublicCredentialsResponse) Size() (n int)
func (*QueryPublicCredentialsResponse) String ¶
func (m *QueryPublicCredentialsResponse) String() string
func (*QueryPublicCredentialsResponse) Unmarshal ¶
func (m *QueryPublicCredentialsResponse) Unmarshal(dAtA []byte) error
func (*QueryPublicCredentialsResponse) XXX_DiscardUnknown ¶
func (m *QueryPublicCredentialsResponse) XXX_DiscardUnknown()
func (*QueryPublicCredentialsResponse) XXX_Marshal ¶
func (m *QueryPublicCredentialsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPublicCredentialsResponse) XXX_Merge ¶
func (m *QueryPublicCredentialsResponse) XXX_Merge(src proto.Message)
func (*QueryPublicCredentialsResponse) XXX_Size ¶
func (m *QueryPublicCredentialsResponse) XXX_Size() int
func (*QueryPublicCredentialsResponse) XXX_Unmarshal ¶
func (m *QueryPublicCredentialsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // PublicCredentials PublicCredential(context.Context, *QueryPublicCredentialRequest) (*QueryPublicCredentialResponse, error) // TODO: to remove in favour of a third party service that indexes the credential // PublicCredentials PublicCredentials(context.Context, *QueryPublicCredentialsRequest) (*QueryPublicCredentialsResponse, error) PublicCredentialsByHolder(context.Context, *QueryPublicCredentialsByHolderRequest) (*QueryPublicCredentialsByHolderResponse, error) PublicCredentialsByIssuer(context.Context, *QueryPublicCredentialsByIssuerRequest) (*QueryPublicCredentialsByIssuerResponse, error) // CredentialDefinition CredentialDefinition(context.Context, *QueryCredentialDefinitionRequest) (*QueryCredentialDefinitionResponse, error) // TODO: to remove in favor of a 3rd party service that indexes the definitions // CredentialDefinition CredentialDefinitions(context.Context, *QueryCredentialDefinitionsRequest) (*QueryCredentialDefinitionsResponse, error) CredentialDefinitionsByPublisher(context.Context, *QueryCredentialDefinitionsByPublisherRequest) (*QueryCredentialDefinitionsByPublisherResponse, 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) IssuePublicVerifiableCredential ¶
func (*UnimplementedMsgServer) IssuePublicVerifiableCredential(ctx context.Context, req *MsgIssuePublicVerifiableCredentialRequest) (*MsgIssuePublicVerifiableCredentialResponse, error)
func (*UnimplementedMsgServer) PublishCredentialDefinition ¶
func (*UnimplementedMsgServer) PublishCredentialDefinition(ctx context.Context, req *MsgPublishCredentialDefinitionRequest) (*MsgPublishCredentialDefinitionResponse, error)
func (*UnimplementedMsgServer) UpdateCredentialDefinition ¶
func (*UnimplementedMsgServer) UpdateCredentialDefinition(ctx context.Context, req *MsgUpdateCredentialDefinitionRequest) (*MsgUpdateCredentialDefinitionResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) CredentialDefinition ¶
func (*UnimplementedQueryServer) CredentialDefinition(ctx context.Context, req *QueryCredentialDefinitionRequest) (*QueryCredentialDefinitionResponse, error)
func (*UnimplementedQueryServer) CredentialDefinitions ¶
func (*UnimplementedQueryServer) CredentialDefinitions(ctx context.Context, req *QueryCredentialDefinitionsRequest) (*QueryCredentialDefinitionsResponse, error)
func (*UnimplementedQueryServer) CredentialDefinitionsByPublisher ¶
func (*UnimplementedQueryServer) CredentialDefinitionsByPublisher(ctx context.Context, req *QueryCredentialDefinitionsByPublisherRequest) (*QueryCredentialDefinitionsByPublisherResponse, error)
func (*UnimplementedQueryServer) PublicCredential ¶
func (*UnimplementedQueryServer) PublicCredential(ctx context.Context, req *QueryPublicCredentialRequest) (*QueryPublicCredentialResponse, error)
func (*UnimplementedQueryServer) PublicCredentials ¶
func (*UnimplementedQueryServer) PublicCredentials(ctx context.Context, req *QueryPublicCredentialsRequest) (*QueryPublicCredentialsResponse, error)
func (*UnimplementedQueryServer) PublicCredentialsByHolder ¶
func (*UnimplementedQueryServer) PublicCredentialsByHolder(ctx context.Context, req *QueryPublicCredentialsByHolderRequest) (*QueryPublicCredentialsByHolderResponse, error)
func (*UnimplementedQueryServer) PublicCredentialsByIssuer ¶
func (*UnimplementedQueryServer) PublicCredentialsByIssuer(ctx context.Context, req *QueryPublicCredentialsByIssuerRequest) (*QueryPublicCredentialsByIssuerResponse, error)
type WrappedCredential ¶
type WrappedCredential struct { *PublicVerifiableCredential CredentialSubject map[string]interface{} `json:"credentialSubject"` }
WrappedCredential wraps a PublicVerifiableCredential, this is a workaround to deal with the variable content of the credential subject
func NewWrappedCredential ¶
func NewWrappedCredential(pvc *PublicVerifiableCredential) (wc *WrappedCredential, err error)
NewWrappedCredential wrap a PublicVerifiableCredential to go around serialization
func NewWrappedPublicCredentialFromFile ¶
func NewWrappedPublicCredentialFromFile(credentialFile string) (wc *WrappedCredential, err error)
NewWrappedPublicCredentialFromFile read a credential from file
func (*WrappedCredential) Copy ¶
func (wc *WrappedCredential) Copy() WrappedCredential
Copy create a deep copy of the WrappedCredential
func (*WrappedCredential) GetBytes ¶
func (wc *WrappedCredential) GetBytes() ([]byte, error)
GetBytes returns the JSON encoded byte slice of the credential
func (*WrappedCredential) GetSubjectID ¶
func (wc *WrappedCredential) GetSubjectID() (s string, isDID bool)
func (*WrappedCredential) HasType ¶
func (wc *WrappedCredential) HasType(credentialType string) bool
HasType check if the credential has the type in input
func (*WrappedCredential) SetSubject ¶
func (wc *WrappedCredential) SetSubject(val interface{}) (err error)
SetSubject set the credential subject of the credential, it must be json serializable
func (WrappedCredential) Validate ¶
func (wc WrappedCredential) Validate( pk cryptotypes.PubKey, ) (err error)
Validate validates a verifiable credential against a provided public key