didv2

package
v0.0.0-...-33d2b2d Latest Latest
Warning

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

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

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_cheqd_did_v2_diddoc_proto protoreflect.FileDescriptor
View Source
var File_cheqd_did_v2_fee_proto protoreflect.FileDescriptor
View Source
var File_cheqd_did_v2_genesis_proto protoreflect.FileDescriptor
View Source
var File_cheqd_did_v2_query_proto protoreflect.FileDescriptor
View Source
var File_cheqd_did_v2_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cheqd.did.v2.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateDidDoc",
			Handler:    _Msg_CreateDidDoc_Handler,
		},
		{
			MethodName: "UpdateDidDoc",
			Handler:    _Msg_UpdateDidDoc_Handler,
		},
		{
			MethodName: "DeactivateDidDoc",
			Handler:    _Msg_DeactivateDidDoc_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cheqd/did/v2/tx.proto",
}

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

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cheqd.did.v2.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DidDoc",
			Handler:    _Query_DidDoc_Handler,
		},
		{
			MethodName: "DidDocVersion",
			Handler:    _Query_DidDocVersion_Handler,
		},
		{
			MethodName: "AllDidDocVersionsMetadata",
			Handler:    _Query_AllDidDocVersionsMetadata_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cheqd/did/v2/query.proto",
}

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

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type DidDoc

type DidDoc struct {

	// context is a list of URIs used to identify the context of the DID document.
	// Default: https://www.w3.org/ns/did/v1
	Context []string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"`
	// id is the DID of the DID document.
	// Format: did:cheqd:<namespace>:<unique-identifier>
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// controller is a list of DIDs that are allowed to control the DID document.
	Controller []string `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"`
	// verificationMethod is a list of verification methods that can be used to
	// verify a digital signature or cryptographic proof.
	VerificationMethod []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"`
	// authentication is a list of verification methods that can be used to
	// authenticate as the DID subject.
	Authentication []string `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"`
	// assertionMethod is a list of verification methods that can be used to
	// assert statements as the DID subject.
	AssertionMethod []string `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"`
	// capabilityInvocation is a list of verification methods that can be used to
	// invoke capabilities as the DID subject.
	CapabilityInvocation []string `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"`
	// capabilityDelegation is a list of verification methods that can be used to
	// delegate capabilities as the DID subject.
	CapabilityDelegation []string `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"`
	// keyAgreement is a list of verification methods that can be used to perform
	// key agreement as the DID subject.
	KeyAgreement []string `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"`
	// service is a list of services that can be used to interact with the DID subject.
	Service []*Service `protobuf:"bytes,10,rep,name=service,proto3" json:"service,omitempty"`
	// alsoKnownAs is a list of DIDs that are known to refer to the same DID subject.
	AlsoKnownAs []string `protobuf:"bytes,11,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"`
	// contains filtered or unexported fields
}

DidDoc defines a DID Document, as defined in the DID Core specification. Documentation: https://www.w3.org/TR/did-core/

func (*DidDoc) Descriptor deprecated

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

Deprecated: Use DidDoc.ProtoReflect.Descriptor instead.

func (*DidDoc) GetAlsoKnownAs

func (x *DidDoc) GetAlsoKnownAs() []string

func (*DidDoc) GetAssertionMethod

func (x *DidDoc) GetAssertionMethod() []string

func (*DidDoc) GetAuthentication

func (x *DidDoc) GetAuthentication() []string

func (*DidDoc) GetCapabilityDelegation

func (x *DidDoc) GetCapabilityDelegation() []string

func (*DidDoc) GetCapabilityInvocation

func (x *DidDoc) GetCapabilityInvocation() []string

func (*DidDoc) GetContext

func (x *DidDoc) GetContext() []string

func (*DidDoc) GetController

func (x *DidDoc) GetController() []string

func (*DidDoc) GetId

func (x *DidDoc) GetId() string

func (*DidDoc) GetKeyAgreement

func (x *DidDoc) GetKeyAgreement() []string

func (*DidDoc) GetService

func (x *DidDoc) GetService() []*Service

func (*DidDoc) GetVerificationMethod

func (x *DidDoc) GetVerificationMethod() []*VerificationMethod

func (*DidDoc) ProtoMessage

func (*DidDoc) ProtoMessage()

func (*DidDoc) ProtoReflect

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

func (*DidDoc) Reset

func (x *DidDoc) Reset()

func (*DidDoc) String

func (x *DidDoc) String() string

type DidDocVersionSet

type DidDocVersionSet struct {

	// Latest version of the DID Document set
	LatestVersion string `protobuf:"bytes,1,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"`
	// All versions of the DID Document set
	DidDocs []*DidDocWithMetadata `protobuf:"bytes,2,rep,name=did_docs,json=didDocs,proto3" json:"did_docs,omitempty"`
	// contains filtered or unexported fields
}

DidDocVersionSet contains all versions of DID Documents and their metadata for a given DID. The latest version of the DID Document set is stored in the latest_version field.

func (*DidDocVersionSet) Descriptor deprecated

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

Deprecated: Use DidDocVersionSet.ProtoReflect.Descriptor instead.

func (*DidDocVersionSet) GetDidDocs

func (x *DidDocVersionSet) GetDidDocs() []*DidDocWithMetadata

func (*DidDocVersionSet) GetLatestVersion

func (x *DidDocVersionSet) GetLatestVersion() string

func (*DidDocVersionSet) ProtoMessage

func (*DidDocVersionSet) ProtoMessage()

func (*DidDocVersionSet) ProtoReflect

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

func (*DidDocVersionSet) Reset

func (x *DidDocVersionSet) Reset()

func (*DidDocVersionSet) String

func (x *DidDocVersionSet) String() string

type DidDocWithMetadata

type DidDocWithMetadata struct {

	// didDocument is the DID Document.
	DidDoc *DidDoc `protobuf:"bytes,1,opt,name=did_doc,json=didDoc,proto3" json:"did_doc,omitempty"`
	// didDocumentMetadata is the DID Document metadata.
	Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

DidDocWithMetadata defines a DID Document with metadata, as defined in the DID Core specification. Contains the DID Document, as well as DID Document metadata.

func (*DidDocWithMetadata) Descriptor deprecated

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

Deprecated: Use DidDocWithMetadata.ProtoReflect.Descriptor instead.

func (*DidDocWithMetadata) GetDidDoc

func (x *DidDocWithMetadata) GetDidDoc() *DidDoc

func (*DidDocWithMetadata) GetMetadata

func (x *DidDocWithMetadata) GetMetadata() *Metadata

func (*DidDocWithMetadata) ProtoMessage

func (*DidDocWithMetadata) ProtoMessage()

func (*DidDocWithMetadata) ProtoReflect

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

func (*DidDocWithMetadata) Reset

func (x *DidDocWithMetadata) Reset()

func (*DidDocWithMetadata) String

func (x *DidDocWithMetadata) String() string

type FeeParams

type FeeParams struct {

	// Fixed fee for creating a DID
	//
	// Default: 50 CHEQ or 50000000000ncheq
	CreateDid *v1beta1.Coin `protobuf:"bytes,1,opt,name=create_did,json=createDid,proto3" json:"create_did,omitempty"`
	// Fixed fee for updating a DID
	//
	// Default: 25 CHEQ or 25000000000ncheq
	UpdateDid *v1beta1.Coin `protobuf:"bytes,2,opt,name=update_did,json=updateDid,proto3" json:"update_did,omitempty"`
	// Fixed fee for deactivating a DID
	//
	// Default: 10 CHEQ or 10000000000ncheq
	DeactivateDid *v1beta1.Coin `protobuf:"bytes,3,opt,name=deactivate_did,json=deactivateDid,proto3" json:"deactivate_did,omitempty"`
	// Percentage of the fixed fee that will be burned
	//
	// Default: 0.5 (50%)
	BurnFactor string `protobuf:"bytes,4,opt,name=burn_factor,json=burnFactor,proto3" json:"burn_factor,omitempty"`
	// contains filtered or unexported fields
}

FeeParams defines the parameters for the cheqd DID module fixed fee

func (*FeeParams) Descriptor deprecated

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

Deprecated: Use FeeParams.ProtoReflect.Descriptor instead.

func (*FeeParams) GetBurnFactor

func (x *FeeParams) GetBurnFactor() string

func (*FeeParams) GetCreateDid

func (x *FeeParams) GetCreateDid() *v1beta1.Coin

func (*FeeParams) GetDeactivateDid

func (x *FeeParams) GetDeactivateDid() *v1beta1.Coin

func (*FeeParams) GetUpdateDid

func (x *FeeParams) GetUpdateDid() *v1beta1.Coin

func (*FeeParams) ProtoMessage

func (*FeeParams) ProtoMessage()

func (*FeeParams) ProtoReflect

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

func (*FeeParams) Reset

func (x *FeeParams) Reset()

func (*FeeParams) String

func (x *FeeParams) String() string

type GenesisState

type GenesisState struct {

	// Namespace for the DID module
	// Example: mainnet, testnet, local
	DidNamespace string `protobuf:"bytes,1,opt,name=did_namespace,json=didNamespace,proto3" json:"did_namespace,omitempty"`
	// All DID Document version sets (contains all versions of all DID Documents)
	VersionSets []*DidDocVersionSet `protobuf:"bytes,2,rep,name=version_sets,json=versionSets,proto3" json:"version_sets,omitempty"`
	// Fee parameters for the DID module
	// Defines fixed fees and burn percentage for each DID operation type (create, update, delete)
	FeeParams *FeeParams `protobuf:"bytes,3,opt,name=fee_params,json=feeParams,proto3" json:"fee_params,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the cheqd DID module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetDidNamespace

func (x *GenesisState) GetDidNamespace() string

func (*GenesisState) GetFeeParams

func (x *GenesisState) GetFeeParams() *FeeParams

func (*GenesisState) GetVersionSets

func (x *GenesisState) GetVersionSets() []*DidDocVersionSet

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

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

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type Metadata

type Metadata struct {

	// created is the timestamp of the creation of the DID Document.
	// Format: RFC3339
	// Example: 2021-03-10T15:16:17Z
	Created *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
	// updated is the timestamp of the last update of the DID Document.
	// Format: RFC3339
	// Example: 2021-03-10T15:16:17Z
	Updated *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated,proto3" json:"updated,omitempty"`
	// deactivated is a flag that indicates whether the DID Document is deactivated.
	// Default: false
	Deactivated bool `protobuf:"varint,3,opt,name=deactivated,proto3" json:"deactivated,omitempty"`
	// version_id is the version identifier of the DID Document.
	// Format: UUID
	// Example: 123e4567-e89b-12d3-a456-426655440000
	VersionId string `protobuf:"bytes,4,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// next_version_id is the version identifier of the next version of the DID Document.
	// Format: UUID
	// Example: 123e4567-e89b-12d3-a456-426655440000
	NextVersionId string `protobuf:"bytes,5,opt,name=next_version_id,json=nextVersionId,proto3" json:"next_version_id,omitempty"`
	// previous_version_id is the version identifier of the previous version of the DID Document.
	// Format: UUID
	// Example: 123e4567-e89b-12d3-a456-426655440000
	PreviousVersionId string `protobuf:"bytes,6,opt,name=previous_version_id,json=previousVersionId,proto3" json:"previous_version_id,omitempty"`
	// contains filtered or unexported fields
}

Metadata defines DID Document metadata, as defined in the DID Core specification. Documentation: https://www.w3.org/TR/did-core/#did-document-metadata-properties

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetCreated

func (x *Metadata) GetCreated() *timestamppb.Timestamp

func (*Metadata) GetDeactivated

func (x *Metadata) GetDeactivated() bool

func (*Metadata) GetNextVersionId

func (x *Metadata) GetNextVersionId() string

func (*Metadata) GetPreviousVersionId

func (x *Metadata) GetPreviousVersionId() string

func (*Metadata) GetUpdated

func (x *Metadata) GetUpdated() *timestamppb.Timestamp

func (*Metadata) GetVersionId

func (x *Metadata) GetVersionId() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type MsgClient

type MsgClient interface {
	// CreateDidDoc defines a method for creating a new DID document
	CreateDidDoc(ctx context.Context, in *MsgCreateDidDoc, opts ...grpc.CallOption) (*MsgCreateDidDocResponse, error)
	// UpdateDidDoc defines a method for updating an existing DID document
	UpdateDidDoc(ctx context.Context, in *MsgUpdateDidDoc, opts ...grpc.CallOption) (*MsgUpdateDidDocResponse, error)
	// DeactivateDidDoc defines a method for deactivating an existing DID document
	DeactivateDidDoc(ctx context.Context, in *MsgDeactivateDidDoc, opts ...grpc.CallOption) (*MsgDeactivateDidDocResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgCreateDidDoc

type MsgCreateDidDoc struct {

	// Payload containing the DID Document to be created
	Payload *MsgCreateDidDocPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// Signatures of the DID Document's controller(s)
	Signatures []*SignInfo `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateDidDoc defines the Msg/CreateDidDoc request type. It describes the parameters of a request for creating a new DID document.

func (*MsgCreateDidDoc) Descriptor deprecated

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

Deprecated: Use MsgCreateDidDoc.ProtoReflect.Descriptor instead.

func (*MsgCreateDidDoc) GetPayload

func (x *MsgCreateDidDoc) GetPayload() *MsgCreateDidDocPayload

func (*MsgCreateDidDoc) GetSignatures

func (x *MsgCreateDidDoc) GetSignatures() []*SignInfo

func (*MsgCreateDidDoc) ProtoMessage

func (*MsgCreateDidDoc) ProtoMessage()

func (*MsgCreateDidDoc) ProtoReflect

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

func (*MsgCreateDidDoc) Reset

func (x *MsgCreateDidDoc) Reset()

func (*MsgCreateDidDoc) String

func (x *MsgCreateDidDoc) String() string

type MsgCreateDidDocPayload

type MsgCreateDidDocPayload struct {

	// context is a list of URIs used to identify the context of the DID document.
	// Default: https://www.w3.org/ns/did/v1
	Context []string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"`
	// id is the DID of the DID document.
	// Format: did:cheqd:<namespace>:<unique-identifier>
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// controller is a list of DIDs that are allowed to control the DID document.
	Controller []string `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"`
	// verificationMethod is a list of verification methods that can be used to
	// verify a digital signature or cryptographic proof.
	// Documentation: https://www.w3.org/TR/did-core/#verification-methods
	//
	// Required fields:
	// - id: A unique identifier for the verification method
	// - type: A supported verification method type (supported: Ed25519VerificationKey2018, Ed25519VerificationKey2020, JsonWebKey2020)
	// - controller: DID of the controller of the verification method
	// - verification_material: Public key of the verification method (supported: publicJwk, publicKeyBase58, publicKeyMultibase)
	VerificationMethod []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"`
	// authentication is a list of verification methods that can be used to
	// authenticate as the DID subject.
	Authentication []string `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"`
	// assertionMethod is a list of verification methods that can be used to
	// assert statements as the DID subject.
	AssertionMethod []string `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"`
	// capabilityInvocation is a list of verification methods that can be used to
	// invoke capabilities as the DID subject.
	CapabilityInvocation []string `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"`
	// capabilityDelegation is a list of verification methods that can be used to
	// delegate capabilities as the DID subject.
	CapabilityDelegation []string `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"`
	// keyAgreement is a list of verification methods that can be used to perform
	// key agreement as the DID subject.
	KeyAgreement []string `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"`
	// service is a list of services that can be used to interact with the DID subject.
	// Documentation: https://www.w3.org/TR/did-core/#services
	//
	// Required fields:
	// - id: A unique identifier for the service
	// - type: A service type defined in DID Specification Registries
	// - service_endpoint: Service endpoint(s), provided as a URI or set of URIs
	Service []*Service `protobuf:"bytes,10,rep,name=service,proto3" json:"service,omitempty"`
	// alsoKnownAs is a list of DIDs that are known to refer to the same DID subject.
	AlsoKnownAs []string `protobuf:"bytes,11,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"`
	// Version ID of the DID Document to be created
	//
	// Format: <uuid>
	VersionId string `protobuf:"bytes,12,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateDidDocPayload defines the structure of the payload for creating a new DID document

func (*MsgCreateDidDocPayload) Descriptor deprecated

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

Deprecated: Use MsgCreateDidDocPayload.ProtoReflect.Descriptor instead.

func (*MsgCreateDidDocPayload) GetAlsoKnownAs

func (x *MsgCreateDidDocPayload) GetAlsoKnownAs() []string

func (*MsgCreateDidDocPayload) GetAssertionMethod

func (x *MsgCreateDidDocPayload) GetAssertionMethod() []string

func (*MsgCreateDidDocPayload) GetAuthentication

func (x *MsgCreateDidDocPayload) GetAuthentication() []string

func (*MsgCreateDidDocPayload) GetCapabilityDelegation

func (x *MsgCreateDidDocPayload) GetCapabilityDelegation() []string

func (*MsgCreateDidDocPayload) GetCapabilityInvocation

func (x *MsgCreateDidDocPayload) GetCapabilityInvocation() []string

func (*MsgCreateDidDocPayload) GetContext

func (x *MsgCreateDidDocPayload) GetContext() []string

func (*MsgCreateDidDocPayload) GetController

func (x *MsgCreateDidDocPayload) GetController() []string

func (*MsgCreateDidDocPayload) GetId

func (x *MsgCreateDidDocPayload) GetId() string

func (*MsgCreateDidDocPayload) GetKeyAgreement

func (x *MsgCreateDidDocPayload) GetKeyAgreement() []string

func (*MsgCreateDidDocPayload) GetService

func (x *MsgCreateDidDocPayload) GetService() []*Service

func (*MsgCreateDidDocPayload) GetVerificationMethod

func (x *MsgCreateDidDocPayload) GetVerificationMethod() []*VerificationMethod

func (*MsgCreateDidDocPayload) GetVersionId

func (x *MsgCreateDidDocPayload) GetVersionId() string

func (*MsgCreateDidDocPayload) ProtoMessage

func (*MsgCreateDidDocPayload) ProtoMessage()

func (*MsgCreateDidDocPayload) ProtoReflect

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

func (*MsgCreateDidDocPayload) Reset

func (x *MsgCreateDidDocPayload) Reset()

func (*MsgCreateDidDocPayload) String

func (x *MsgCreateDidDocPayload) String() string

type MsgCreateDidDocResponse

type MsgCreateDidDocResponse struct {

	// Return the created DID Document with metadata
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateDidDocResponse defines response type for Msg/CreateDidDoc.

func (*MsgCreateDidDocResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateDidDocResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateDidDocResponse) GetValue

func (*MsgCreateDidDocResponse) ProtoMessage

func (*MsgCreateDidDocResponse) ProtoMessage()

func (*MsgCreateDidDocResponse) ProtoReflect

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

func (*MsgCreateDidDocResponse) Reset

func (x *MsgCreateDidDocResponse) Reset()

func (*MsgCreateDidDocResponse) String

func (x *MsgCreateDidDocResponse) String() string

type MsgDeactivateDidDoc

type MsgDeactivateDidDoc struct {

	// Payload containing the DID Document to be deactivated
	Payload *MsgDeactivateDidDocPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// Signatures of the DID Document's controller(s)
	Signatures []*SignInfo `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

MsgDeactivateDidDoc defines the Msg/DeactivateDidDoc request type. It describes the parameters of a request for deactivating an existing DID document.

func (*MsgDeactivateDidDoc) Descriptor deprecated

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

Deprecated: Use MsgDeactivateDidDoc.ProtoReflect.Descriptor instead.

func (*MsgDeactivateDidDoc) GetPayload

func (*MsgDeactivateDidDoc) GetSignatures

func (x *MsgDeactivateDidDoc) GetSignatures() []*SignInfo

func (*MsgDeactivateDidDoc) ProtoMessage

func (*MsgDeactivateDidDoc) ProtoMessage()

func (*MsgDeactivateDidDoc) ProtoReflect

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

func (*MsgDeactivateDidDoc) Reset

func (x *MsgDeactivateDidDoc) Reset()

func (*MsgDeactivateDidDoc) String

func (x *MsgDeactivateDidDoc) String() string

type MsgDeactivateDidDocPayload

type MsgDeactivateDidDocPayload struct {

	// Unique identifier of the DID Document to be deactivated
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Version ID of the DID Document to be deactivated
	// This is primarily used as a sanity check to ensure that the correct DID Document is being deactivated.
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// contains filtered or unexported fields
}

MsgDeactivateDidDocPayload defines the structure of the payload for deactivating an existing DID document

func (*MsgDeactivateDidDocPayload) Descriptor deprecated

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

Deprecated: Use MsgDeactivateDidDocPayload.ProtoReflect.Descriptor instead.

func (*MsgDeactivateDidDocPayload) GetId

func (*MsgDeactivateDidDocPayload) GetVersionId

func (x *MsgDeactivateDidDocPayload) GetVersionId() string

func (*MsgDeactivateDidDocPayload) ProtoMessage

func (*MsgDeactivateDidDocPayload) ProtoMessage()

func (*MsgDeactivateDidDocPayload) ProtoReflect

func (*MsgDeactivateDidDocPayload) Reset

func (x *MsgDeactivateDidDocPayload) Reset()

func (*MsgDeactivateDidDocPayload) String

func (x *MsgDeactivateDidDocPayload) String() string

type MsgDeactivateDidDocResponse

type MsgDeactivateDidDocResponse struct {

	// Return the deactivated DID Document with metadata
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

MsgDeactivateDidDocResponse defines response type for Msg/DeactivateDidDoc.

func (*MsgDeactivateDidDocResponse) Descriptor deprecated

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

Deprecated: Use MsgDeactivateDidDocResponse.ProtoReflect.Descriptor instead.

func (*MsgDeactivateDidDocResponse) GetValue

func (*MsgDeactivateDidDocResponse) ProtoMessage

func (*MsgDeactivateDidDocResponse) ProtoMessage()

func (*MsgDeactivateDidDocResponse) ProtoReflect

func (*MsgDeactivateDidDocResponse) Reset

func (x *MsgDeactivateDidDocResponse) Reset()

func (*MsgDeactivateDidDocResponse) String

func (x *MsgDeactivateDidDocResponse) String() string

type MsgServer

type MsgServer interface {
	// CreateDidDoc defines a method for creating a new DID document
	CreateDidDoc(context.Context, *MsgCreateDidDoc) (*MsgCreateDidDocResponse, error)
	// UpdateDidDoc defines a method for updating an existing DID document
	UpdateDidDoc(context.Context, *MsgUpdateDidDoc) (*MsgUpdateDidDocResponse, error)
	// DeactivateDidDoc defines a method for deactivating an existing DID document
	DeactivateDidDoc(context.Context, *MsgDeactivateDidDoc) (*MsgDeactivateDidDocResponse, error)
	// contains filtered or unexported methods
}

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

type MsgUpdateDidDoc

type MsgUpdateDidDoc struct {

	// Payload containing the DID Document to be updated. This should be updated the DID Document.
	Payload *MsgUpdateDidDocPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// Signatures of the DID Document's controller(s)
	Signatures []*SignInfo `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateDidDoc defines the Msg/UpdateDidDoc request type. It describes the parameters of a request for updating an existing DID document.

func (*MsgUpdateDidDoc) Descriptor deprecated

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

Deprecated: Use MsgUpdateDidDoc.ProtoReflect.Descriptor instead.

func (*MsgUpdateDidDoc) GetPayload

func (x *MsgUpdateDidDoc) GetPayload() *MsgUpdateDidDocPayload

func (*MsgUpdateDidDoc) GetSignatures

func (x *MsgUpdateDidDoc) GetSignatures() []*SignInfo

func (*MsgUpdateDidDoc) ProtoMessage

func (*MsgUpdateDidDoc) ProtoMessage()

func (*MsgUpdateDidDoc) ProtoReflect

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

func (*MsgUpdateDidDoc) Reset

func (x *MsgUpdateDidDoc) Reset()

func (*MsgUpdateDidDoc) String

func (x *MsgUpdateDidDoc) String() string

type MsgUpdateDidDocPayload

type MsgUpdateDidDocPayload struct {

	// context is a list of URIs used to identify the context of the DID document.
	// Default: https://www.w3.org/ns/did/v1
	Context []string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"`
	// id is the DID of the DID document.
	// Format: did:cheqd:<namespace>:<unique-identifier>
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// controller is a list of DIDs that are allowed to control the DID document.
	Controller []string `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"`
	// verificationMethod is a list of verification methods that can be used to
	// verify a digital signature or cryptographic proof.
	// Documentation: https://www.w3.org/TR/did-core/#verification-methods
	//
	// Required fields:
	// - id: A unique identifier for the verification method
	// - type: A supported verification method type (supported: Ed25519VerificationKey2018, Ed25519VerificationKey2020, JsonWebKey2020)
	// - controller: DID of the controller of the verification method
	// - verification_material: Public key of the verification method (supported: publicJwk, publicKeyBase58, publicKeyMultibase)
	VerificationMethod []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"`
	// authentication is a list of verification methods that can be used to
	// authenticate as the DID subject.
	Authentication []string `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"`
	// assertionMethod is a list of verification methods that can be used to
	// assert statements as the DID subject.
	AssertionMethod []string `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"`
	// capabilityInvocation is a list of verification methods that can be used to
	// invoke capabilities as the DID subject.
	CapabilityInvocation []string `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"`
	// capabilityDelegation is a list of verification methods that can be used to
	// delegate capabilities as the DID subject.
	CapabilityDelegation []string `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"`
	// keyAgreement is a list of verification methods that can be used to perform
	// key agreement as the DID subject.
	KeyAgreement []string `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"`
	// service is a list of services that can be used to interact with the DID subject.
	// Documentation: https://www.w3.org/TR/did-core/#services
	//
	// Required fields:
	// - id: A unique identifier for the service
	// - type: A service type defined in DID Specification Registries
	// - service_endpoint: Service endpoint(s), provided as a URI or set of URIs
	Service []*Service `protobuf:"bytes,10,rep,name=service,proto3" json:"service,omitempty"`
	// alsoKnownAs is a list of DIDs that are known to refer to the same DID subject.
	AlsoKnownAs []string `protobuf:"bytes,11,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"`
	// Updated version ID of the DID Document.
	// Links to next/previous versions of the DID Document will be automatically updated.
	//
	// Format: <uuid>
	VersionId string `protobuf:"bytes,12,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateDidDocPayload defines the structure of the payload for updating an existing DID document

func (*MsgUpdateDidDocPayload) Descriptor deprecated

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

Deprecated: Use MsgUpdateDidDocPayload.ProtoReflect.Descriptor instead.

func (*MsgUpdateDidDocPayload) GetAlsoKnownAs

func (x *MsgUpdateDidDocPayload) GetAlsoKnownAs() []string

func (*MsgUpdateDidDocPayload) GetAssertionMethod

func (x *MsgUpdateDidDocPayload) GetAssertionMethod() []string

func (*MsgUpdateDidDocPayload) GetAuthentication

func (x *MsgUpdateDidDocPayload) GetAuthentication() []string

func (*MsgUpdateDidDocPayload) GetCapabilityDelegation

func (x *MsgUpdateDidDocPayload) GetCapabilityDelegation() []string

func (*MsgUpdateDidDocPayload) GetCapabilityInvocation

func (x *MsgUpdateDidDocPayload) GetCapabilityInvocation() []string

func (*MsgUpdateDidDocPayload) GetContext

func (x *MsgUpdateDidDocPayload) GetContext() []string

func (*MsgUpdateDidDocPayload) GetController

func (x *MsgUpdateDidDocPayload) GetController() []string

func (*MsgUpdateDidDocPayload) GetId

func (x *MsgUpdateDidDocPayload) GetId() string

func (*MsgUpdateDidDocPayload) GetKeyAgreement

func (x *MsgUpdateDidDocPayload) GetKeyAgreement() []string

func (*MsgUpdateDidDocPayload) GetService

func (x *MsgUpdateDidDocPayload) GetService() []*Service

func (*MsgUpdateDidDocPayload) GetVerificationMethod

func (x *MsgUpdateDidDocPayload) GetVerificationMethod() []*VerificationMethod

func (*MsgUpdateDidDocPayload) GetVersionId

func (x *MsgUpdateDidDocPayload) GetVersionId() string

func (*MsgUpdateDidDocPayload) ProtoMessage

func (*MsgUpdateDidDocPayload) ProtoMessage()

func (*MsgUpdateDidDocPayload) ProtoReflect

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

func (*MsgUpdateDidDocPayload) Reset

func (x *MsgUpdateDidDocPayload) Reset()

func (*MsgUpdateDidDocPayload) String

func (x *MsgUpdateDidDocPayload) String() string

type MsgUpdateDidDocResponse

type MsgUpdateDidDocResponse struct {

	// Return the updated DID Document with metadata
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgUpdateDidDocResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateDidDocResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateDidDocResponse) GetValue

func (*MsgUpdateDidDocResponse) ProtoMessage

func (*MsgUpdateDidDocResponse) ProtoMessage()

func (*MsgUpdateDidDocResponse) ProtoReflect

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

func (*MsgUpdateDidDocResponse) Reset

func (x *MsgUpdateDidDocResponse) Reset()

func (*MsgUpdateDidDocResponse) String

func (x *MsgUpdateDidDocResponse) String() string

type QueryAllDidDocVersionsMetadataRequest

type QueryAllDidDocVersionsMetadataRequest struct {

	// DID unique identifier of the DID Document to fetch version metadata.
	// UUID-style DIDs as well as Indy-style DID are supported.
	//
	// Format: did:cheqd:<namespace>:<unique-identifier>
	//
	// Examples:
	// - did:cheqd:mainnet:c82f2b02-bdab-4dd7-b833-3e143745d612
	// - did:cheqd:testnet:wGHEXrZvJxR8vw5P3UWH1j
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryAllDidDocVersionsMetadataRequest is the request type for the Query/AllDidDocVersionsMetadata method

func (*QueryAllDidDocVersionsMetadataRequest) Descriptor deprecated

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

Deprecated: Use QueryAllDidDocVersionsMetadataRequest.ProtoReflect.Descriptor instead.

func (*QueryAllDidDocVersionsMetadataRequest) GetId

func (*QueryAllDidDocVersionsMetadataRequest) GetPagination

func (*QueryAllDidDocVersionsMetadataRequest) ProtoMessage

func (*QueryAllDidDocVersionsMetadataRequest) ProtoMessage()

func (*QueryAllDidDocVersionsMetadataRequest) ProtoReflect

func (*QueryAllDidDocVersionsMetadataRequest) Reset

func (*QueryAllDidDocVersionsMetadataRequest) String

type QueryAllDidDocVersionsMetadataResponse

type QueryAllDidDocVersionsMetadataResponse struct {

	// versions is the list of all versions of the requested DID Document
	Versions []*Metadata `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryAllDidDocVersionsMetadataResponse is the response type for the Query/AllDidDocVersionsMetadata method

func (*QueryAllDidDocVersionsMetadataResponse) Descriptor deprecated

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

Deprecated: Use QueryAllDidDocVersionsMetadataResponse.ProtoReflect.Descriptor instead.

func (*QueryAllDidDocVersionsMetadataResponse) GetPagination

func (*QueryAllDidDocVersionsMetadataResponse) GetVersions

func (*QueryAllDidDocVersionsMetadataResponse) ProtoMessage

func (*QueryAllDidDocVersionsMetadataResponse) ProtoReflect

func (*QueryAllDidDocVersionsMetadataResponse) Reset

func (*QueryAllDidDocVersionsMetadataResponse) String

type QueryClient

type QueryClient interface {
	// Fetch latest version of a DID Document for a given DID
	DidDoc(ctx context.Context, in *QueryDidDocRequest, opts ...grpc.CallOption) (*QueryDidDocResponse, error)
	// Fetch specific version of a DID Document for a given DID
	DidDocVersion(ctx context.Context, in *QueryDidDocVersionRequest, opts ...grpc.CallOption) (*QueryDidDocVersionResponse, error)
	// Fetch list of all versions of DID Documents for a given DID
	AllDidDocVersionsMetadata(ctx context.Context, in *QueryAllDidDocVersionsMetadataRequest, opts ...grpc.CallOption) (*QueryAllDidDocVersionsMetadataResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryDidDocRequest

type QueryDidDocRequest struct {

	// DID unique identifier of the DID Document to fetch.
	// UUID-style DIDs as well as Indy-style DID are supported.
	//
	// Format: did:cheqd:<namespace>:<unique-identifier>
	//
	// Examples:
	// - did:cheqd:mainnet:c82f2b02-bdab-4dd7-b833-3e143745d612
	// - did:cheqd:testnet:wGHEXrZvJxR8vw5P3UWH1j
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

QueryDidDocRequest is the request type for the Query/DidDoc method

func (*QueryDidDocRequest) Descriptor deprecated

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

Deprecated: Use QueryDidDocRequest.ProtoReflect.Descriptor instead.

func (*QueryDidDocRequest) GetId

func (x *QueryDidDocRequest) GetId() string

func (*QueryDidDocRequest) ProtoMessage

func (*QueryDidDocRequest) ProtoMessage()

func (*QueryDidDocRequest) ProtoReflect

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

func (*QueryDidDocRequest) Reset

func (x *QueryDidDocRequest) Reset()

func (*QueryDidDocRequest) String

func (x *QueryDidDocRequest) String() string

type QueryDidDocResponse

type QueryDidDocResponse struct {

	// Successful resolution of the DID Document returns the following:
	// - did_doc is the latest version of the DID Document
	// - metadata is is the DID Document metadata associated with the latest version of the DID Document
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

QueryDidDocResponse is the response type for the Query/DidDoc method

func (*QueryDidDocResponse) Descriptor deprecated

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

Deprecated: Use QueryDidDocResponse.ProtoReflect.Descriptor instead.

func (*QueryDidDocResponse) GetValue

func (x *QueryDidDocResponse) GetValue() *DidDocWithMetadata

func (*QueryDidDocResponse) ProtoMessage

func (*QueryDidDocResponse) ProtoMessage()

func (*QueryDidDocResponse) ProtoReflect

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

func (*QueryDidDocResponse) Reset

func (x *QueryDidDocResponse) Reset()

func (*QueryDidDocResponse) String

func (x *QueryDidDocResponse) String() string

type QueryDidDocVersionRequest

type QueryDidDocVersionRequest struct {

	// DID unique identifier of the DID Document to fetch.
	// UUID-style DIDs as well as Indy-style DID are supported.
	//
	// Format: did:cheqd:<namespace>:<unique-identifier>
	//
	// Examples:
	// - did:cheqd:mainnet:c82f2b02-bdab-4dd7-b833-3e143745d612
	// - did:cheqd:testnet:wGHEXrZvJxR8vw5P3UWH1j
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Unique version identifier of the DID Document to fetch.
	// Returns the specified version of the DID Document.
	//
	// Format: <uuid>
	//
	// Example: 93f2573c-eca9-4098-96cb-a1ec676a29ed
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

QueryDidDocVersionRequest is the request type for the Query/DidDocVersion method

func (*QueryDidDocVersionRequest) Descriptor deprecated

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

Deprecated: Use QueryDidDocVersionRequest.ProtoReflect.Descriptor instead.

func (*QueryDidDocVersionRequest) GetId

func (x *QueryDidDocVersionRequest) GetId() string

func (*QueryDidDocVersionRequest) GetVersion

func (x *QueryDidDocVersionRequest) GetVersion() string

func (*QueryDidDocVersionRequest) ProtoMessage

func (*QueryDidDocVersionRequest) ProtoMessage()

func (*QueryDidDocVersionRequest) ProtoReflect

func (*QueryDidDocVersionRequest) Reset

func (x *QueryDidDocVersionRequest) Reset()

func (*QueryDidDocVersionRequest) String

func (x *QueryDidDocVersionRequest) String() string

type QueryDidDocVersionResponse

type QueryDidDocVersionResponse struct {

	// Successful resolution of the DID Document returns the following:
	// - did_doc is the requested version of the DID Document
	// - metadata is DID Document metadata associated with the requested version of the DID Document
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

QueryDidDocVersionResponse is the response type for the Query/DidDocVersion method

func (*QueryDidDocVersionResponse) Descriptor deprecated

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

Deprecated: Use QueryDidDocVersionResponse.ProtoReflect.Descriptor instead.

func (*QueryDidDocVersionResponse) GetValue

func (*QueryDidDocVersionResponse) ProtoMessage

func (*QueryDidDocVersionResponse) ProtoMessage()

func (*QueryDidDocVersionResponse) ProtoReflect

func (*QueryDidDocVersionResponse) Reset

func (x *QueryDidDocVersionResponse) Reset()

func (*QueryDidDocVersionResponse) String

func (x *QueryDidDocVersionResponse) String() string

type QueryServer

type QueryServer interface {
	// Fetch latest version of a DID Document for a given DID
	DidDoc(context.Context, *QueryDidDocRequest) (*QueryDidDocResponse, error)
	// Fetch specific version of a DID Document for a given DID
	DidDocVersion(context.Context, *QueryDidDocVersionRequest) (*QueryDidDocVersionResponse, error)
	// Fetch list of all versions of DID Documents for a given DID
	AllDidDocVersionsMetadata(context.Context, *QueryAllDidDocVersionsMetadataRequest) (*QueryAllDidDocVersionsMetadataResponse, error)
	// contains filtered or unexported methods
}

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

type Service

type Service struct {

	// id is the unique identifier of the service.
	// Format: did:cheqd:<namespace>:<unique-identifier>#<service-id>
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// type is the type of the service.
	// Example: LinkedResource
	ServiceType string `protobuf:"bytes,2,opt,name=service_type,json=serviceType,proto3" json:"service_type,omitempty"`
	// serviceEndpoint is the endpoint of the service.
	// Example: https://example.com/endpoint
	ServiceEndpoint []string `protobuf:"bytes,3,rep,name=service_endpoint,json=serviceEndpoint,proto3" json:"service_endpoint,omitempty"`
	// contains filtered or unexported fields
}

Service defines a service, as defined in the DID Core specification. Documentation: https://www.w3.org/TR/did-core/#services

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetId

func (x *Service) GetId() string

func (*Service) GetServiceEndpoint

func (x *Service) GetServiceEndpoint() []string

func (*Service) GetServiceType

func (x *Service) GetServiceType() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type SignInfo

type SignInfo struct {

	// Verification method ID of the DID Controller
	VerificationMethodId string `protobuf:"bytes,1,opt,name=verification_method_id,json=verificationMethodId,proto3" json:"verification_method_id,omitempty"`
	// Signature of the DID Document controller
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

SignInfo defines the structure of a DID Document controller's signature

func (*SignInfo) Descriptor deprecated

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

Deprecated: Use SignInfo.ProtoReflect.Descriptor instead.

func (*SignInfo) GetSignature

func (x *SignInfo) GetSignature() []byte

func (*SignInfo) GetVerificationMethodId

func (x *SignInfo) GetVerificationMethodId() string

func (*SignInfo) ProtoMessage

func (*SignInfo) ProtoMessage()

func (*SignInfo) ProtoReflect

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

func (*SignInfo) Reset

func (x *SignInfo) Reset()

func (*SignInfo) String

func (x *SignInfo) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) CreateDidDoc

func (UnimplementedMsgServer) DeactivateDidDoc

func (UnimplementedMsgServer) UpdateDidDoc

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) DidDoc

type UnsafeMsgServer

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

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

type UnsafeQueryServer

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

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

type VerificationMethod

type VerificationMethod struct {

	// id is the unique identifier of the verification method.
	// Format: did:cheqd:<namespace>:<unique-identifier>#<key-id>
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// type is the type of the verification method.
	// Example: Ed25519VerificationKey2020
	VerificationMethodType string `` /* 129-byte string literal not displayed */
	// controller is the DID of the controller of the verification method.
	// Format: did:cheqd:<namespace>:<unique-identifier>
	Controller string `protobuf:"bytes,3,opt,name=controller,proto3" json:"controller,omitempty"`
	// verification_material is the public key of the verification method.
	// Commonly used verification material types: publicJwk, publicKeyBase58, publicKeyMultibase
	VerificationMaterial string `protobuf:"bytes,4,opt,name=verification_material,json=verificationMaterial,proto3" json:"verification_material,omitempty"`
	// contains filtered or unexported fields
}

VerificationMethod defines a verification method, as defined in the DID Core specification. Documentation: https://www.w3.org/TR/did-core/#verification-methods

func (*VerificationMethod) Descriptor deprecated

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

Deprecated: Use VerificationMethod.ProtoReflect.Descriptor instead.

func (*VerificationMethod) GetController

func (x *VerificationMethod) GetController() string

func (*VerificationMethod) GetId

func (x *VerificationMethod) GetId() string

func (*VerificationMethod) GetVerificationMaterial

func (x *VerificationMethod) GetVerificationMaterial() string

func (*VerificationMethod) GetVerificationMethodType

func (x *VerificationMethod) GetVerificationMethodType() string

func (*VerificationMethod) ProtoMessage

func (*VerificationMethod) ProtoMessage()

func (*VerificationMethod) ProtoReflect

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

func (*VerificationMethod) Reset

func (x *VerificationMethod) Reset()

func (*VerificationMethod) String

func (x *VerificationMethod) String() string

Jump to

Keyboard shortcuts

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