types

package
v1.2.4-develop.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 41 Imported by: 3

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	BaseMinimalDenom = "ncheq"
	BaseFactor       = 1e9
)
View Source
const (
	JSONWebKey2020Type             = "JsonWebKey2020"
	Ed25519VerificationKey2020Type = "Ed25519VerificationKey2020"
	Ed25519VerificationKey2018Type = "Ed25519VerificationKey2018"
)
View Source
const (
	DefaultDidNamespace       = "testnet"
	DefaultCreateDidTxFee     = 50e9                   // 50 CHEQ or 50000000000 ncheq
	DefaultUpdateDidTxFee     = 25e9                   // 25 CHEQ or 25000000000 ncheq
	DefaultDeactivateDidTxFee = 10e9                   // 10 CHEQ or 10000000000 ncheq
	DefaultBurnFactor         = "0.500000000000000000" // 0.5 or 50%
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "cheqd"

	// 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

	DidMethod = ModuleName
)
View Source
const (
	LatestDidDocVersionKey = "did-latest:"
	DidDocVersionKey       = "did-version:"
	DidDocCountKey         = "did-count:"
	DidNamespaceKey        = "did-namespace:"
)
View Source
const (
	QueryGetDidDoc            = "get-diddoc"
	QueryGetAllDidDocVersions = "get-all-diddoc-versions"
	QueryGetDidDocVersion     = "get-diddoc-version"
)

Variables

View Source
var (
	ErrInvalidLengthDiddoc        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDiddoc          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDiddoc = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrBadRequest                 = sdkerrors.Register(ModuleName, 1000, "bad request")
	ErrInvalidSignature           = sdkerrors.Register(ModuleName, 1100, "invalid signature detected")
	ErrSignatureNotFound          = sdkerrors.Register(ModuleName, 1101, "signature is required but not found")
	ErrDidDocExists               = sdkerrors.Register(ModuleName, 1200, "DID Doc exists")
	ErrDidDocNotFound             = sdkerrors.Register(ModuleName, 1201, "DID Doc not found")
	ErrVerificationMethodNotFound = sdkerrors.Register(ModuleName, 1202, "verification method not found")
	ErrUnexpectedDidVersion       = sdkerrors.Register(ModuleName, 1203, "unexpected DID version")
	ErrBasicValidation            = sdkerrors.Register(ModuleName, 1205, "basic validation failed")
	ErrNamespaceValidation        = sdkerrors.Register(ModuleName, 1206, "DID namespace validation failed")
	ErrDIDDocDeactivated          = sdkerrors.Register(ModuleName, 1207, "DID Doc already deactivated")
	ErrUnpackStateValue           = sdkerrors.Register(ModuleName, 1300, "invalid did state value")
	ErrInternal                   = sdkerrors.Register(ModuleName, 1500, "internal error")
)

x/cheqd module sentinel errors

View Source
var (
	ErrInvalidLengthFee        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFee          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFee = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	ParamStoreKeyFeeParams = []byte("feeparams")
)

Parameter store key

Functions

func GetDidDocVersionKey

func GetDidDocVersionKey(did string, version string) []byte

func GetDidDocVersionsPrefix

func GetDidDocVersionsPrefix(did string) []byte

func GetLatestDidDocVersionKey

func GetLatestDidDocVersionKey(did string) []byte

func GetLatestDidDocVersionPrefix

func GetLatestDidDocVersionPrefix() []byte

func GetServiceIds

func GetServiceIds(vms []*Service) []string

func GetSignInfoIds

func GetSignInfoIds(infos []*SignInfo) []string

func GetVerificationMethodIds

func GetVerificationMethodIds(vms []*VerificationMethod) []string

func IsUniqueSignInfoList

func IsUniqueSignInfoList(infos []*SignInfo) bool

func MsgCreateDidPayloadFromDid

func MsgCreateDidPayloadFromDid(did *didtypesv1.Did) didtypesv1.MsgCreateDidPayload

func NormalizeSignInfoList

func NormalizeSignInfoList(signatures []*SignInfo)

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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)

func VerificationMethodListToMapByFragment

func VerificationMethodListToMapByFragment(vms []*VerificationMethod) map[string]VerificationMethod

func VerifySignature

func VerifySignature(vm VerificationMethod, message []byte, signature []byte) error

Types

type CustomErrorRule

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

func HasPrefix

func HasPrefix(prefix string) *CustomErrorRule

func IsBase58Ed25519VerificationKey2018 added in v1.1.0

func IsBase58Ed25519VerificationKey2018() *CustomErrorRule

func IsDID

func IsDID(allowedNamespaces []string) *CustomErrorRule

func IsDIDUrl

func IsDIDUrl(allowedNamespaces []string, pathRule, queryRule, fragmentRule ValidationType) *CustomErrorRule

func IsID

func IsID() *CustomErrorRule

func IsJWK

func IsJWK() *CustomErrorRule

func IsMultibase

func IsMultibase() *CustomErrorRule

func IsMultibaseEd25519VerificationKey2020 added in v1.1.0

func IsMultibaseEd25519VerificationKey2020() *CustomErrorRule

func IsMultibaseEncodedEd25519PubKey

func IsMultibaseEncodedEd25519PubKey() *CustomErrorRule

func IsURI

func IsURI() *CustomErrorRule

func IsUUID

func IsUUID() *CustomErrorRule

func IsUniqueServiceListByIDRule added in v1.1.0

func IsUniqueServiceListByIDRule() *CustomErrorRule

func IsUniqueSignInfoListByIDRule added in v1.1.0

func IsUniqueSignInfoListByIDRule() *CustomErrorRule

func IsUniqueSignInfoListRule

func IsUniqueSignInfoListRule() *CustomErrorRule

func IsUniqueStrList

func IsUniqueStrList() *CustomErrorRule

func IsUniqueVerificationMethodListByIDRule added in v1.1.0

func IsUniqueVerificationMethodListByIDRule() *CustomErrorRule

func NewCustomErrorRule

func NewCustomErrorRule(fn func(value interface{}) error) *CustomErrorRule

func ValidMsgCreateDidPayloadRule

func ValidMsgCreateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule

func ValidMsgDeactivateDidPayloadRule

func ValidMsgDeactivateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule

func ValidMsgUpdateDidPayloadRule

func ValidMsgUpdateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule

func ValidServiceRule

func ValidServiceRule(baseDid string, allowedNamespaces []string) *CustomErrorRule

func ValidSignInfoRule

func ValidSignInfoRule(allowedNamespaces []string) *CustomErrorRule

func ValidVerificationMethodRule

func ValidVerificationMethodRule(baseDid string, allowedNamespaces []string) *CustomErrorRule

func (CustomErrorRule) Validate

func (c CustomErrorRule) Validate(value interface{}) error

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"`
}

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

func NewDidDoc

func NewDidDoc(context []string, id string, controller []string, verificationMethod []*VerificationMethod,
	authentication []string, assertionMethod []string, capabilityInvocation []string, capabilityDelegation []string,
	keyAgreement []string, service []*Service, alsoKnownAs []string,
) *DidDoc

func (*DidDoc) AllControllerDids

func (didDoc *DidDoc) AllControllerDids() []string

AllControllerDids returns controller DIDs used in both did.controllers and did.verification_method.controller

func (*DidDoc) Descriptor

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

func (*DidDoc) GetAlsoKnownAs

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

func (*DidDoc) GetAssertionMethod

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

func (*DidDoc) GetAuthentication

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

func (*DidDoc) GetCapabilityDelegation

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

func (*DidDoc) GetCapabilityInvocation

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

func (*DidDoc) GetContext

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

func (*DidDoc) GetController

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

func (*DidDoc) GetControllersOrSubject

func (didDoc *DidDoc) GetControllersOrSubject() []string

func (*DidDoc) GetId

func (m *DidDoc) GetId() string

func (*DidDoc) GetKeyAgreement

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

func (*DidDoc) GetService

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

func (*DidDoc) GetVerificationMethod

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

func (*DidDoc) GetVerificationMethodControllers

func (didDoc *DidDoc) GetVerificationMethodControllers() []string

func (*DidDoc) Marshal

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

func (*DidDoc) MarshalTo

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

func (*DidDoc) MarshalToSizedBuffer

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

func (*DidDoc) ProtoMessage

func (*DidDoc) ProtoMessage()

func (*DidDoc) ReplaceDids

func (didDoc *DidDoc) ReplaceDids(old, new string)

ReplaceDids replaces ids in all controller and id fields

func (*DidDoc) Reset

func (m *DidDoc) Reset()

func (*DidDoc) Size

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

func (*DidDoc) String

func (m *DidDoc) String() string

func (*DidDoc) Unmarshal

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

func (DidDoc) Validate

func (didDoc DidDoc) Validate(allowedNamespaces []string) error

func (*DidDoc) XXX_DiscardUnknown

func (m *DidDoc) XXX_DiscardUnknown()

func (*DidDoc) XXX_Marshal

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

func (*DidDoc) XXX_Merge

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

func (*DidDoc) XXX_Size

func (m *DidDoc) XXX_Size() int

func (*DidDoc) XXX_Unmarshal

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

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"`
}

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

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

func (*DidDocVersionSet) GetDidDocs

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

func (*DidDocVersionSet) GetLatestVersion

func (m *DidDocVersionSet) GetLatestVersion() string

func (*DidDocVersionSet) Marshal

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

func (*DidDocVersionSet) MarshalTo

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

func (*DidDocVersionSet) MarshalToSizedBuffer

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

func (*DidDocVersionSet) ProtoMessage

func (*DidDocVersionSet) ProtoMessage()

func (*DidDocVersionSet) Reset

func (m *DidDocVersionSet) Reset()

func (*DidDocVersionSet) Size

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

func (*DidDocVersionSet) String

func (m *DidDocVersionSet) String() string

func (*DidDocVersionSet) Unmarshal

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

func (*DidDocVersionSet) XXX_DiscardUnknown

func (m *DidDocVersionSet) XXX_DiscardUnknown()

func (*DidDocVersionSet) XXX_Marshal

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

func (*DidDocVersionSet) XXX_Merge

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

func (*DidDocVersionSet) XXX_Size

func (m *DidDocVersionSet) XXX_Size() int

func (*DidDocVersionSet) XXX_Unmarshal

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

type DidDocWithMetadata

type DidDocWithMetadata struct {
	// didDocument is the DID Document.
	DidDoc *DidDoc `protobuf:"bytes,1,opt,name=did_doc,json=didDoc,proto3" json:"didDocument"`
	// didDocumentMetadata is the DID Document metadata.
	Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"didDocumentMetadata"`
}

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 NewDidDocWithMetadata

func NewDidDocWithMetadata(didDoc *DidDoc, metadata *Metadata) DidDocWithMetadata

func (*DidDocWithMetadata) Descriptor

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

func (*DidDocWithMetadata) GetDidDoc

func (m *DidDocWithMetadata) GetDidDoc() *DidDoc

func (*DidDocWithMetadata) GetMetadata

func (m *DidDocWithMetadata) GetMetadata() *Metadata

func (*DidDocWithMetadata) Marshal

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

func (*DidDocWithMetadata) MarshalTo

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

func (*DidDocWithMetadata) MarshalToSizedBuffer

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

func (*DidDocWithMetadata) ProtoMessage

func (*DidDocWithMetadata) ProtoMessage()

func (*DidDocWithMetadata) ReplaceDids

func (d *DidDocWithMetadata) ReplaceDids(old, new string)

func (*DidDocWithMetadata) Reset

func (m *DidDocWithMetadata) Reset()

func (*DidDocWithMetadata) Size

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

func (*DidDocWithMetadata) String

func (m *DidDocWithMetadata) String() string

func (*DidDocWithMetadata) Unmarshal

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

func (*DidDocWithMetadata) XXX_DiscardUnknown

func (m *DidDocWithMetadata) XXX_DiscardUnknown()

func (*DidDocWithMetadata) XXX_Marshal

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

func (*DidDocWithMetadata) XXX_Merge

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

func (*DidDocWithMetadata) XXX_Size

func (m *DidDocWithMetadata) XXX_Size() int

func (*DidDocWithMetadata) XXX_Unmarshal

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

type FeeParams

type FeeParams struct {
	// Fixed fee for creating a DID
	//
	// Default: 50 CHEQ or 50000000000ncheq
	CreateDid types.Coin `protobuf:"bytes,1,opt,name=create_did,json=createDid,proto3" json:"create_did"`
	// Fixed fee for updating a DID
	//
	// Default: 25 CHEQ or 25000000000ncheq
	UpdateDid types.Coin `protobuf:"bytes,2,opt,name=update_did,json=updateDid,proto3" json:"update_did"`
	// Fixed fee for deactivating a DID
	//
	// Default: 10 CHEQ or 10000000000ncheq
	DeactivateDid types.Coin `protobuf:"bytes,3,opt,name=deactivate_did,json=deactivateDid,proto3" json:"deactivate_did"`
	// Percentage of the fixed fee that will be burned
	//
	// Default: 0.5 (50%)
	BurnFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */
}

FeeParams defines the parameters for the cheqd DID module fixed fee

func DefaultFeeParams

func DefaultFeeParams() *FeeParams

DefaultFeeParams returns default cheqd module tx fee parameters

func (*FeeParams) Descriptor

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

func (*FeeParams) Equal

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

func (*FeeParams) GetCreateDid

func (m *FeeParams) GetCreateDid() types.Coin

func (*FeeParams) GetDeactivateDid

func (m *FeeParams) GetDeactivateDid() types.Coin

func (*FeeParams) GetUpdateDid

func (m *FeeParams) GetUpdateDid() types.Coin

func (*FeeParams) Marshal

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

func (*FeeParams) MarshalTo

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

func (*FeeParams) MarshalToSizedBuffer

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

func (*FeeParams) ProtoMessage

func (*FeeParams) ProtoMessage()

func (*FeeParams) Reset

func (m *FeeParams) Reset()

func (*FeeParams) Size

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

func (*FeeParams) String

func (m *FeeParams) String() string

func (*FeeParams) Unmarshal

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

func (*FeeParams) ValidateBasic

func (tfp *FeeParams) ValidateBasic() error

ValidateBasic performs basic validation of cheqd module tx fee parameters

func (*FeeParams) XXX_DiscardUnknown

func (m *FeeParams) XXX_DiscardUnknown()

func (*FeeParams) XXX_Marshal

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

func (*FeeParams) XXX_Merge

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

func (*FeeParams) XXX_Size

func (m *FeeParams) XXX_Size() int

func (*FeeParams) XXX_Unmarshal

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

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"`
}

GenesisState defines the cheqd DID module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default `did` genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetDidNamespace

func (m *GenesisState) GetDidNamespace() string

func (*GenesisState) GetFeeParams

func (m *GenesisState) GetFeeParams() *FeeParams

func (*GenesisState) GetVersionSets

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

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (GenesisState) ValidateBasic

func (gs GenesisState) ValidateBasic() error

func (GenesisState) ValidateNoDuplicates

func (gs GenesisState) ValidateNoDuplicates() error

func (GenesisState) ValidateVersionSets

func (gs GenesisState) ValidateVersionSets() error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type IdentityMsg

type IdentityMsg interface {
	GetSignBytes() []byte
}

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 time.Time `protobuf:"bytes,1,opt,name=created,proto3,stdtime" json:"created"`
	// updated is the timestamp of the last update of the DID Document.
	// Format: RFC3339
	// Example: 2021-03-10T15:16:17Z
	Updated *time.Time `protobuf:"bytes,2,opt,name=updated,proto3,stdtime" 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"`
}

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 NewMetadataFromContext

func NewMetadataFromContext(ctx sdk.Context, version string) Metadata

func (*Metadata) Descriptor

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

func (*Metadata) GetCreated

func (m *Metadata) GetCreated() time.Time

func (*Metadata) GetDeactivated

func (m *Metadata) GetDeactivated() bool

func (*Metadata) GetNextVersionId

func (m *Metadata) GetNextVersionId() string

func (*Metadata) GetPreviousVersionId

func (m *Metadata) GetPreviousVersionId() string

func (*Metadata) GetUpdated

func (m *Metadata) GetUpdated() *time.Time

func (*Metadata) GetVersionId

func (m *Metadata) GetVersionId() string

func (*Metadata) Marshal

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

func (*Metadata) MarshalTo

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

func (*Metadata) MarshalToSizedBuffer

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

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) Size

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

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) Unmarshal

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

func (*Metadata) Update

func (m *Metadata) Update(ctx sdk.Context, version string)

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

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

func (*Metadata) XXX_Merge

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

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

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

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) 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"`
}

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

func NewMsgCreateDid

func NewMsgCreateDid(payload *MsgCreateDidDocPayload, signatures []*SignInfo) *MsgCreateDidDoc

func (*MsgCreateDidDoc) Descriptor

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

func (*MsgCreateDidDoc) GetPayload

func (m *MsgCreateDidDoc) GetPayload() *MsgCreateDidDocPayload

func (*MsgCreateDidDoc) GetSignBytes

func (msg *MsgCreateDidDoc) GetSignBytes() []byte

func (*MsgCreateDidDoc) GetSignatures

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

func (*MsgCreateDidDoc) GetSigners

func (msg *MsgCreateDidDoc) GetSigners() []sdk.AccAddress

func (*MsgCreateDidDoc) Marshal

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

func (*MsgCreateDidDoc) MarshalTo

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

func (*MsgCreateDidDoc) MarshalToSizedBuffer

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

func (*MsgCreateDidDoc) Normalize

func (msg *MsgCreateDidDoc) Normalize()

func (*MsgCreateDidDoc) ProtoMessage

func (*MsgCreateDidDoc) ProtoMessage()

func (*MsgCreateDidDoc) Reset

func (m *MsgCreateDidDoc) Reset()

func (*MsgCreateDidDoc) Route

func (msg *MsgCreateDidDoc) Route() string

func (*MsgCreateDidDoc) Size

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

func (*MsgCreateDidDoc) String

func (m *MsgCreateDidDoc) String() string

func (*MsgCreateDidDoc) Type

func (msg *MsgCreateDidDoc) Type() string

func (*MsgCreateDidDoc) Unmarshal

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

func (MsgCreateDidDoc) Validate

func (msg MsgCreateDidDoc) Validate(allowedNamespaces []string) error

func (*MsgCreateDidDoc) ValidateBasic

func (msg *MsgCreateDidDoc) ValidateBasic() error

func (*MsgCreateDidDoc) XXX_DiscardUnknown

func (m *MsgCreateDidDoc) XXX_DiscardUnknown()

func (*MsgCreateDidDoc) XXX_Marshal

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

func (*MsgCreateDidDoc) XXX_Merge

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

func (*MsgCreateDidDoc) XXX_Size

func (m *MsgCreateDidDoc) XXX_Size() int

func (*MsgCreateDidDoc) XXX_Unmarshal

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

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"`
}

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

func (*MsgCreateDidDocPayload) Descriptor

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

func (*MsgCreateDidDocPayload) GetAlsoKnownAs

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

func (*MsgCreateDidDocPayload) GetAssertionMethod

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

func (*MsgCreateDidDocPayload) GetAuthentication

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

func (*MsgCreateDidDocPayload) GetCapabilityDelegation

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

func (*MsgCreateDidDocPayload) GetCapabilityInvocation

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

func (*MsgCreateDidDocPayload) GetContext

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

func (*MsgCreateDidDocPayload) GetController

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

func (*MsgCreateDidDocPayload) GetId

func (m *MsgCreateDidDocPayload) GetId() string

func (*MsgCreateDidDocPayload) GetKeyAgreement

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

func (*MsgCreateDidDocPayload) GetService

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

func (*MsgCreateDidDocPayload) GetSignBytes

func (msg *MsgCreateDidDocPayload) GetSignBytes() []byte

func (*MsgCreateDidDocPayload) GetVerificationMethod

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

func (*MsgCreateDidDocPayload) GetVersionId

func (m *MsgCreateDidDocPayload) GetVersionId() string

func (*MsgCreateDidDocPayload) Marshal

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

func (*MsgCreateDidDocPayload) MarshalTo

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

func (*MsgCreateDidDocPayload) MarshalToSizedBuffer

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

func (*MsgCreateDidDocPayload) Normalize

func (msg *MsgCreateDidDocPayload) Normalize()

func (*MsgCreateDidDocPayload) ProtoMessage

func (*MsgCreateDidDocPayload) ProtoMessage()

func (*MsgCreateDidDocPayload) Reset

func (m *MsgCreateDidDocPayload) Reset()

func (*MsgCreateDidDocPayload) Size

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

func (*MsgCreateDidDocPayload) String

func (m *MsgCreateDidDocPayload) String() string

func (*MsgCreateDidDocPayload) ToDidDoc

func (msg *MsgCreateDidDocPayload) ToDidDoc() DidDoc

func (*MsgCreateDidDocPayload) Unmarshal

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

func (MsgCreateDidDocPayload) Validate

func (msg MsgCreateDidDocPayload) Validate(allowedNamespaces []string) error

func (*MsgCreateDidDocPayload) XXX_DiscardUnknown

func (m *MsgCreateDidDocPayload) XXX_DiscardUnknown()

func (*MsgCreateDidDocPayload) XXX_Marshal

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

func (*MsgCreateDidDocPayload) XXX_Merge

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

func (*MsgCreateDidDocPayload) XXX_Size

func (m *MsgCreateDidDocPayload) XXX_Size() int

func (*MsgCreateDidDocPayload) XXX_Unmarshal

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

type MsgCreateDidDocResponse

type MsgCreateDidDocResponse struct {
	// Return the created DID Document with metadata
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

MsgCreateDidDocResponse defines response type for Msg/CreateDidDoc.

func (*MsgCreateDidDocResponse) Descriptor

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

func (*MsgCreateDidDocResponse) GetValue

func (*MsgCreateDidDocResponse) Marshal

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

func (*MsgCreateDidDocResponse) MarshalTo

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

func (*MsgCreateDidDocResponse) MarshalToSizedBuffer

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

func (*MsgCreateDidDocResponse) ProtoMessage

func (*MsgCreateDidDocResponse) ProtoMessage()

func (*MsgCreateDidDocResponse) Reset

func (m *MsgCreateDidDocResponse) Reset()

func (*MsgCreateDidDocResponse) Size

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

func (*MsgCreateDidDocResponse) String

func (m *MsgCreateDidDocResponse) String() string

func (*MsgCreateDidDocResponse) Unmarshal

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

func (*MsgCreateDidDocResponse) XXX_DiscardUnknown

func (m *MsgCreateDidDocResponse) XXX_DiscardUnknown()

func (*MsgCreateDidDocResponse) XXX_Marshal

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

func (*MsgCreateDidDocResponse) XXX_Merge

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

func (*MsgCreateDidDocResponse) XXX_Size

func (m *MsgCreateDidDocResponse) XXX_Size() int

func (*MsgCreateDidDocResponse) XXX_Unmarshal

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

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"`
}

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

func NewMsgDeactivateDid

func NewMsgDeactivateDid(payload *MsgDeactivateDidDocPayload, signatures []*SignInfo) *MsgDeactivateDidDoc

func (*MsgDeactivateDidDoc) Descriptor

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

func (*MsgDeactivateDidDoc) GetPayload

func (*MsgDeactivateDidDoc) GetSignBytes

func (msg *MsgDeactivateDidDoc) GetSignBytes() []byte

func (*MsgDeactivateDidDoc) GetSignatures

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

func (*MsgDeactivateDidDoc) GetSigners

func (msg *MsgDeactivateDidDoc) GetSigners() []sdk.AccAddress

func (*MsgDeactivateDidDoc) Marshal

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

func (*MsgDeactivateDidDoc) MarshalTo

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

func (*MsgDeactivateDidDoc) MarshalToSizedBuffer

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

func (*MsgDeactivateDidDoc) Normalize

func (msg *MsgDeactivateDidDoc) Normalize()

func (*MsgDeactivateDidDoc) ProtoMessage

func (*MsgDeactivateDidDoc) ProtoMessage()

func (*MsgDeactivateDidDoc) Reset

func (m *MsgDeactivateDidDoc) Reset()

func (*MsgDeactivateDidDoc) Route

func (msg *MsgDeactivateDidDoc) Route() string

func (*MsgDeactivateDidDoc) Size

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

func (*MsgDeactivateDidDoc) String

func (m *MsgDeactivateDidDoc) String() string

func (*MsgDeactivateDidDoc) Type

func (msg *MsgDeactivateDidDoc) Type() string

func (*MsgDeactivateDidDoc) Unmarshal

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

func (MsgDeactivateDidDoc) Validate

func (msg MsgDeactivateDidDoc) Validate(allowedNamespaces []string) error

func (*MsgDeactivateDidDoc) ValidateBasic

func (msg *MsgDeactivateDidDoc) ValidateBasic() error

func (*MsgDeactivateDidDoc) XXX_DiscardUnknown

func (m *MsgDeactivateDidDoc) XXX_DiscardUnknown()

func (*MsgDeactivateDidDoc) XXX_Marshal

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

func (*MsgDeactivateDidDoc) XXX_Merge

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

func (*MsgDeactivateDidDoc) XXX_Size

func (m *MsgDeactivateDidDoc) XXX_Size() int

func (*MsgDeactivateDidDoc) XXX_Unmarshal

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

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"`
}

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

func (*MsgDeactivateDidDocPayload) Descriptor

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

func (*MsgDeactivateDidDocPayload) GetId

func (*MsgDeactivateDidDocPayload) GetSignBytes

func (msg *MsgDeactivateDidDocPayload) GetSignBytes() []byte

func (*MsgDeactivateDidDocPayload) GetVersionId

func (m *MsgDeactivateDidDocPayload) GetVersionId() string

func (*MsgDeactivateDidDocPayload) Marshal

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

func (*MsgDeactivateDidDocPayload) MarshalTo

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

func (*MsgDeactivateDidDocPayload) MarshalToSizedBuffer

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

func (*MsgDeactivateDidDocPayload) Normalize

func (msg *MsgDeactivateDidDocPayload) Normalize()

func (*MsgDeactivateDidDocPayload) ProtoMessage

func (*MsgDeactivateDidDocPayload) ProtoMessage()

func (*MsgDeactivateDidDocPayload) Reset

func (m *MsgDeactivateDidDocPayload) Reset()

func (*MsgDeactivateDidDocPayload) Size

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

func (*MsgDeactivateDidDocPayload) String

func (m *MsgDeactivateDidDocPayload) String() string

func (*MsgDeactivateDidDocPayload) Unmarshal

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

func (MsgDeactivateDidDocPayload) Validate

func (msg MsgDeactivateDidDocPayload) Validate(allowedNamespaces []string) error

func (*MsgDeactivateDidDocPayload) XXX_DiscardUnknown

func (m *MsgDeactivateDidDocPayload) XXX_DiscardUnknown()

func (*MsgDeactivateDidDocPayload) XXX_Marshal

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

func (*MsgDeactivateDidDocPayload) XXX_Merge

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

func (*MsgDeactivateDidDocPayload) XXX_Size

func (m *MsgDeactivateDidDocPayload) XXX_Size() int

func (*MsgDeactivateDidDocPayload) XXX_Unmarshal

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

type MsgDeactivateDidDocResponse

type MsgDeactivateDidDocResponse struct {
	// Return the deactivated DID Document with metadata
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

MsgDeactivateDidDocResponse defines response type for Msg/DeactivateDidDoc.

func (*MsgDeactivateDidDocResponse) Descriptor

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

func (*MsgDeactivateDidDocResponse) GetValue

func (*MsgDeactivateDidDocResponse) Marshal

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

func (*MsgDeactivateDidDocResponse) MarshalTo

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

func (*MsgDeactivateDidDocResponse) MarshalToSizedBuffer

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

func (*MsgDeactivateDidDocResponse) ProtoMessage

func (*MsgDeactivateDidDocResponse) ProtoMessage()

func (*MsgDeactivateDidDocResponse) Reset

func (m *MsgDeactivateDidDocResponse) Reset()

func (*MsgDeactivateDidDocResponse) Size

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

func (*MsgDeactivateDidDocResponse) String

func (m *MsgDeactivateDidDocResponse) String() string

func (*MsgDeactivateDidDocResponse) Unmarshal

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

func (*MsgDeactivateDidDocResponse) XXX_DiscardUnknown

func (m *MsgDeactivateDidDocResponse) XXX_DiscardUnknown()

func (*MsgDeactivateDidDocResponse) XXX_Marshal

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

func (*MsgDeactivateDidDocResponse) XXX_Merge

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

func (*MsgDeactivateDidDocResponse) XXX_Size

func (m *MsgDeactivateDidDocResponse) XXX_Size() int

func (*MsgDeactivateDidDocResponse) XXX_Unmarshal

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

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

MsgServer is the server API for Msg service.

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"`
}

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

func NewMsgUpdateDid

func NewMsgUpdateDid(payload *MsgUpdateDidDocPayload, signatures []*SignInfo) *MsgUpdateDidDoc

func (*MsgUpdateDidDoc) Descriptor

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

func (*MsgUpdateDidDoc) GetPayload

func (m *MsgUpdateDidDoc) GetPayload() *MsgUpdateDidDocPayload

func (*MsgUpdateDidDoc) GetSignBytes

func (msg *MsgUpdateDidDoc) GetSignBytes() []byte

func (*MsgUpdateDidDoc) GetSignatures

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

func (*MsgUpdateDidDoc) GetSigners

func (msg *MsgUpdateDidDoc) GetSigners() []sdk.AccAddress

func (*MsgUpdateDidDoc) Marshal

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

func (*MsgUpdateDidDoc) MarshalTo

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

func (*MsgUpdateDidDoc) MarshalToSizedBuffer

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

func (*MsgUpdateDidDoc) Normalize

func (msg *MsgUpdateDidDoc) Normalize()

func (*MsgUpdateDidDoc) ProtoMessage

func (*MsgUpdateDidDoc) ProtoMessage()

func (*MsgUpdateDidDoc) Reset

func (m *MsgUpdateDidDoc) Reset()

func (*MsgUpdateDidDoc) Route

func (msg *MsgUpdateDidDoc) Route() string

func (*MsgUpdateDidDoc) Size

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

func (*MsgUpdateDidDoc) String

func (m *MsgUpdateDidDoc) String() string

func (*MsgUpdateDidDoc) Type

func (msg *MsgUpdateDidDoc) Type() string

func (*MsgUpdateDidDoc) Unmarshal

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

func (MsgUpdateDidDoc) Validate

func (msg MsgUpdateDidDoc) Validate(allowedNamespaces []string) error

func (*MsgUpdateDidDoc) ValidateBasic

func (msg *MsgUpdateDidDoc) ValidateBasic() error

func (*MsgUpdateDidDoc) XXX_DiscardUnknown

func (m *MsgUpdateDidDoc) XXX_DiscardUnknown()

func (*MsgUpdateDidDoc) XXX_Marshal

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

func (*MsgUpdateDidDoc) XXX_Merge

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

func (*MsgUpdateDidDoc) XXX_Size

func (m *MsgUpdateDidDoc) XXX_Size() int

func (*MsgUpdateDidDoc) XXX_Unmarshal

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

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"`
}

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

func (*MsgUpdateDidDocPayload) Descriptor

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

func (*MsgUpdateDidDocPayload) GetAlsoKnownAs

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

func (*MsgUpdateDidDocPayload) GetAssertionMethod

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

func (*MsgUpdateDidDocPayload) GetAuthentication

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

func (*MsgUpdateDidDocPayload) GetCapabilityDelegation

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

func (*MsgUpdateDidDocPayload) GetCapabilityInvocation

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

func (*MsgUpdateDidDocPayload) GetContext

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

func (*MsgUpdateDidDocPayload) GetController

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

func (*MsgUpdateDidDocPayload) GetId

func (m *MsgUpdateDidDocPayload) GetId() string

func (*MsgUpdateDidDocPayload) GetKeyAgreement

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

func (*MsgUpdateDidDocPayload) GetService

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

func (*MsgUpdateDidDocPayload) GetSignBytes

func (msg *MsgUpdateDidDocPayload) GetSignBytes() []byte

func (*MsgUpdateDidDocPayload) GetVerificationMethod

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

func (*MsgUpdateDidDocPayload) GetVersionId

func (m *MsgUpdateDidDocPayload) GetVersionId() string

func (*MsgUpdateDidDocPayload) Marshal

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

func (*MsgUpdateDidDocPayload) MarshalTo

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

func (*MsgUpdateDidDocPayload) MarshalToSizedBuffer

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

func (*MsgUpdateDidDocPayload) Normalize

func (msg *MsgUpdateDidDocPayload) Normalize()

func (*MsgUpdateDidDocPayload) ProtoMessage

func (*MsgUpdateDidDocPayload) ProtoMessage()

func (*MsgUpdateDidDocPayload) Reset

func (m *MsgUpdateDidDocPayload) Reset()

func (*MsgUpdateDidDocPayload) Size

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

func (*MsgUpdateDidDocPayload) String

func (m *MsgUpdateDidDocPayload) String() string

func (*MsgUpdateDidDocPayload) ToDidDoc

func (msg *MsgUpdateDidDocPayload) ToDidDoc() DidDoc

func (*MsgUpdateDidDocPayload) Unmarshal

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

func (MsgUpdateDidDocPayload) Validate

func (msg MsgUpdateDidDocPayload) Validate(allowedNamespaces []string) error

func (*MsgUpdateDidDocPayload) XXX_DiscardUnknown

func (m *MsgUpdateDidDocPayload) XXX_DiscardUnknown()

func (*MsgUpdateDidDocPayload) XXX_Marshal

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

func (*MsgUpdateDidDocPayload) XXX_Merge

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

func (*MsgUpdateDidDocPayload) XXX_Size

func (m *MsgUpdateDidDocPayload) XXX_Size() int

func (*MsgUpdateDidDocPayload) XXX_Unmarshal

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

type MsgUpdateDidDocResponse

type MsgUpdateDidDocResponse struct {
	// Return the updated DID Document with metadata
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*MsgUpdateDidDocResponse) Descriptor

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

func (*MsgUpdateDidDocResponse) GetValue

func (*MsgUpdateDidDocResponse) Marshal

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

func (*MsgUpdateDidDocResponse) MarshalTo

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

func (*MsgUpdateDidDocResponse) MarshalToSizedBuffer

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

func (*MsgUpdateDidDocResponse) ProtoMessage

func (*MsgUpdateDidDocResponse) ProtoMessage()

func (*MsgUpdateDidDocResponse) Reset

func (m *MsgUpdateDidDocResponse) Reset()

func (*MsgUpdateDidDocResponse) Size

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

func (*MsgUpdateDidDocResponse) String

func (m *MsgUpdateDidDocResponse) String() string

func (*MsgUpdateDidDocResponse) Unmarshal

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

func (*MsgUpdateDidDocResponse) XXX_DiscardUnknown

func (m *MsgUpdateDidDocResponse) XXX_DiscardUnknown()

func (*MsgUpdateDidDocResponse) XXX_Marshal

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

func (*MsgUpdateDidDocResponse) XXX_Merge

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

func (*MsgUpdateDidDocResponse) XXX_Size

func (m *MsgUpdateDidDocResponse) XXX_Size() int

func (*MsgUpdateDidDocResponse) XXX_Unmarshal

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

type ParamSubspace

type ParamSubspace interface {
	Get(ctx sdk.Context, key []byte, ptr interface{})
	Set(ctx sdk.Context, key []byte, param interface{})
}

ParamSubspace defines the expected Subspace interface for parameters (noalias)

type QueryAllDidDocVersionsMetadataRequest added in v1.1.0

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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllDidDocVersionsMetadataRequest is the request type for the Query/AllDidDocVersionsMetadata method

func (*QueryAllDidDocVersionsMetadataRequest) Descriptor added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataRequest) GetId added in v1.1.0

func (*QueryAllDidDocVersionsMetadataRequest) GetPagination added in v1.1.0

func (*QueryAllDidDocVersionsMetadataRequest) Marshal added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataRequest) MarshalTo added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataRequest) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataRequest) Normalize added in v1.1.0

func (query *QueryAllDidDocVersionsMetadataRequest) Normalize()

func (*QueryAllDidDocVersionsMetadataRequest) ProtoMessage added in v1.1.0

func (*QueryAllDidDocVersionsMetadataRequest) ProtoMessage()

func (*QueryAllDidDocVersionsMetadataRequest) Reset added in v1.1.0

func (*QueryAllDidDocVersionsMetadataRequest) Size added in v1.1.0

func (*QueryAllDidDocVersionsMetadataRequest) String added in v1.1.0

func (*QueryAllDidDocVersionsMetadataRequest) Unmarshal added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataRequest) XXX_DiscardUnknown added in v1.1.0

func (m *QueryAllDidDocVersionsMetadataRequest) XXX_DiscardUnknown()

func (*QueryAllDidDocVersionsMetadataRequest) XXX_Marshal added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataRequest) XXX_Merge added in v1.1.0

func (*QueryAllDidDocVersionsMetadataRequest) XXX_Size added in v1.1.0

func (*QueryAllDidDocVersionsMetadataRequest) XXX_Unmarshal added in v1.1.0

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

type QueryAllDidDocVersionsMetadataResponse added in v1.1.0

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 *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllDidDocVersionsMetadataResponse is the response type for the Query/AllDidDocVersionsMetadata method

func (*QueryAllDidDocVersionsMetadataResponse) Descriptor added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataResponse) GetPagination added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) GetVersions added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) Marshal added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataResponse) MarshalTo added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataResponse) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataResponse) ProtoMessage added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) Reset added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) Size added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) String added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) Unmarshal added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataResponse) XXX_DiscardUnknown added in v1.1.0

func (m *QueryAllDidDocVersionsMetadataResponse) XXX_DiscardUnknown()

func (*QueryAllDidDocVersionsMetadataResponse) XXX_Marshal added in v1.1.0

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

func (*QueryAllDidDocVersionsMetadataResponse) XXX_Merge added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) XXX_Size added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) XXX_Unmarshal added in v1.1.0

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

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryDidDocRequest added in v1.1.0

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"`
}

QueryDidDocRequest is the request type for the Query/DidDoc method

func (*QueryDidDocRequest) Descriptor added in v1.1.0

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

func (*QueryDidDocRequest) GetId added in v1.1.0

func (m *QueryDidDocRequest) GetId() string

func (*QueryDidDocRequest) Marshal added in v1.1.0

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

func (*QueryDidDocRequest) MarshalTo added in v1.1.0

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

func (*QueryDidDocRequest) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryDidDocRequest) Normalize added in v1.1.0

func (query *QueryDidDocRequest) Normalize()

func (*QueryDidDocRequest) ProtoMessage added in v1.1.0

func (*QueryDidDocRequest) ProtoMessage()

func (*QueryDidDocRequest) Reset added in v1.1.0

func (m *QueryDidDocRequest) Reset()

func (*QueryDidDocRequest) Size added in v1.1.0

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

func (*QueryDidDocRequest) String added in v1.1.0

func (m *QueryDidDocRequest) String() string

func (*QueryDidDocRequest) Unmarshal added in v1.1.0

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

func (*QueryDidDocRequest) XXX_DiscardUnknown added in v1.1.0

func (m *QueryDidDocRequest) XXX_DiscardUnknown()

func (*QueryDidDocRequest) XXX_Marshal added in v1.1.0

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

func (*QueryDidDocRequest) XXX_Merge added in v1.1.0

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

func (*QueryDidDocRequest) XXX_Size added in v1.1.0

func (m *QueryDidDocRequest) XXX_Size() int

func (*QueryDidDocRequest) XXX_Unmarshal added in v1.1.0

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

type QueryDidDocResponse added in v1.1.0

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"`
}

QueryDidDocResponse is the response type for the Query/DidDoc method

func (*QueryDidDocResponse) Descriptor added in v1.1.0

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

func (*QueryDidDocResponse) GetValue added in v1.1.0

func (m *QueryDidDocResponse) GetValue() *DidDocWithMetadata

func (*QueryDidDocResponse) Marshal added in v1.1.0

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

func (*QueryDidDocResponse) MarshalTo added in v1.1.0

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

func (*QueryDidDocResponse) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryDidDocResponse) ProtoMessage added in v1.1.0

func (*QueryDidDocResponse) ProtoMessage()

func (*QueryDidDocResponse) Reset added in v1.1.0

func (m *QueryDidDocResponse) Reset()

func (*QueryDidDocResponse) Size added in v1.1.0

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

func (*QueryDidDocResponse) String added in v1.1.0

func (m *QueryDidDocResponse) String() string

func (*QueryDidDocResponse) Unmarshal added in v1.1.0

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

func (*QueryDidDocResponse) XXX_DiscardUnknown added in v1.1.0

func (m *QueryDidDocResponse) XXX_DiscardUnknown()

func (*QueryDidDocResponse) XXX_Marshal added in v1.1.0

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

func (*QueryDidDocResponse) XXX_Merge added in v1.1.0

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

func (*QueryDidDocResponse) XXX_Size added in v1.1.0

func (m *QueryDidDocResponse) XXX_Size() int

func (*QueryDidDocResponse) XXX_Unmarshal added in v1.1.0

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

type QueryDidDocVersionRequest added in v1.1.0

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"`
}

QueryDidDocVersionRequest is the request type for the Query/DidDocVersion method

func (*QueryDidDocVersionRequest) Descriptor added in v1.1.0

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

func (*QueryDidDocVersionRequest) GetId added in v1.1.0

func (m *QueryDidDocVersionRequest) GetId() string

func (*QueryDidDocVersionRequest) GetVersion added in v1.1.0

func (m *QueryDidDocVersionRequest) GetVersion() string

func (*QueryDidDocVersionRequest) Marshal added in v1.1.0

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

func (*QueryDidDocVersionRequest) MarshalTo added in v1.1.0

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

func (*QueryDidDocVersionRequest) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryDidDocVersionRequest) Normalize added in v1.1.0

func (query *QueryDidDocVersionRequest) Normalize()

func (*QueryDidDocVersionRequest) ProtoMessage added in v1.1.0

func (*QueryDidDocVersionRequest) ProtoMessage()

func (*QueryDidDocVersionRequest) Reset added in v1.1.0

func (m *QueryDidDocVersionRequest) Reset()

func (*QueryDidDocVersionRequest) Size added in v1.1.0

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

func (*QueryDidDocVersionRequest) String added in v1.1.0

func (m *QueryDidDocVersionRequest) String() string

func (*QueryDidDocVersionRequest) Unmarshal added in v1.1.0

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

func (*QueryDidDocVersionRequest) XXX_DiscardUnknown added in v1.1.0

func (m *QueryDidDocVersionRequest) XXX_DiscardUnknown()

func (*QueryDidDocVersionRequest) XXX_Marshal added in v1.1.0

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

func (*QueryDidDocVersionRequest) XXX_Merge added in v1.1.0

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

func (*QueryDidDocVersionRequest) XXX_Size added in v1.1.0

func (m *QueryDidDocVersionRequest) XXX_Size() int

func (*QueryDidDocVersionRequest) XXX_Unmarshal added in v1.1.0

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

type QueryDidDocVersionResponse added in v1.1.0

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"`
}

QueryDidDocVersionResponse is the response type for the Query/DidDocVersion method

func (*QueryDidDocVersionResponse) Descriptor added in v1.1.0

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

func (*QueryDidDocVersionResponse) GetValue added in v1.1.0

func (*QueryDidDocVersionResponse) Marshal added in v1.1.0

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

func (*QueryDidDocVersionResponse) MarshalTo added in v1.1.0

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

func (*QueryDidDocVersionResponse) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryDidDocVersionResponse) ProtoMessage added in v1.1.0

func (*QueryDidDocVersionResponse) ProtoMessage()

func (*QueryDidDocVersionResponse) Reset added in v1.1.0

func (m *QueryDidDocVersionResponse) Reset()

func (*QueryDidDocVersionResponse) Size added in v1.1.0

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

func (*QueryDidDocVersionResponse) String added in v1.1.0

func (m *QueryDidDocVersionResponse) String() string

func (*QueryDidDocVersionResponse) Unmarshal added in v1.1.0

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

func (*QueryDidDocVersionResponse) XXX_DiscardUnknown added in v1.1.0

func (m *QueryDidDocVersionResponse) XXX_DiscardUnknown()

func (*QueryDidDocVersionResponse) XXX_Marshal added in v1.1.0

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

func (*QueryDidDocVersionResponse) XXX_Merge added in v1.1.0

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

func (*QueryDidDocVersionResponse) XXX_Size added in v1.1.0

func (m *QueryDidDocVersionResponse) XXX_Size() int

func (*QueryDidDocVersionResponse) XXX_Unmarshal added in v1.1.0

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

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

QueryServer is the server API for Query service.

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:"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"`
}

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

func NewService

func NewService(id string, serviceType string, serviceEndpoint []string) *Service

func (*Service) Descriptor

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

func (*Service) GetId

func (m *Service) GetId() string

func (*Service) GetServiceEndpoint

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

func (*Service) GetServiceType added in v1.1.0

func (m *Service) GetServiceType() string

func (*Service) Marshal

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

func (*Service) MarshalTo

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

func (*Service) MarshalToSizedBuffer

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

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ReplaceDids

func (s *Service) ReplaceDids(old, new string)

ReplaceDids replaces ids in all fields

func (*Service) Reset

func (m *Service) Reset()

func (*Service) Size

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

func (*Service) String

func (m *Service) String() string

func (*Service) Unmarshal

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

func (Service) Validate

func (s Service) Validate(baseDid string, allowedNamespaces []string) error

func (*Service) XXX_DiscardUnknown

func (m *Service) XXX_DiscardUnknown()

func (*Service) XXX_Marshal

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

func (*Service) XXX_Merge

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

func (*Service) XXX_Size

func (m *Service) XXX_Size() int

func (*Service) XXX_Unmarshal

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

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"`
}

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

func FindSignInfoBySigner

func FindSignInfoBySigner(infos []*SignInfo, signer string) (info SignInfo, found bool)

FindSignInfoBySigner returns the first sign info that corresponds to the provided signer's did

func FindSignInfosBySigner

func FindSignInfosBySigner(infos []*SignInfo, signer string) []SignInfo

FindSignInfosBySigner returns the sign infos that corresponds to the provided signer's did

func NewSignInfo

func NewSignInfo(verificationMethodID string, signature []byte) *SignInfo

func (*SignInfo) Descriptor

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

func (*SignInfo) GetSignature

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

func (*SignInfo) GetVerificationMethodId

func (m *SignInfo) GetVerificationMethodId() string

func (*SignInfo) Marshal

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

func (*SignInfo) MarshalTo

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

func (*SignInfo) MarshalToSizedBuffer

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

func (*SignInfo) Normalize

func (si *SignInfo) Normalize()

func (*SignInfo) ProtoMessage

func (*SignInfo) ProtoMessage()

func (*SignInfo) Reset

func (m *SignInfo) Reset()

func (*SignInfo) Size

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

func (*SignInfo) String

func (m *SignInfo) String() string

func (*SignInfo) Unmarshal

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

func (SignInfo) Validate

func (si SignInfo) Validate(allowedNamespaces []string) error

func (*SignInfo) XXX_DiscardUnknown

func (m *SignInfo) XXX_DiscardUnknown()

func (*SignInfo) XXX_Marshal

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

func (*SignInfo) XXX_Merge

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

func (*SignInfo) XXX_Size

func (m *SignInfo) XXX_Size() int

func (*SignInfo) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateDidDoc

func (*UnimplementedMsgServer) DeactivateDidDoc

func (*UnimplementedMsgServer) UpdateDidDoc

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DidDoc

func (*UnimplementedQueryServer) DidDocVersion

type ValidationType

type ValidationType int
const (
	Optional ValidationType = iota
	Required ValidationType = iota
	Empty    ValidationType = iota
)

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 `protobuf:"bytes,2,opt,name=verification_method_type,json=verificationMethodType,proto3" json:"type,omitempty"`
	// 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"`
}

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

func FindVerificationMethod

func FindVerificationMethod(vms []VerificationMethod, id string) (VerificationMethod, bool)

func NewVerificationMethod

func NewVerificationMethod(id string, vmType string, controller string, verificationMaterial string) *VerificationMethod

func (*VerificationMethod) Descriptor

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

func (*VerificationMethod) GetController

func (m *VerificationMethod) GetController() string

func (*VerificationMethod) GetId

func (m *VerificationMethod) GetId() string

func (*VerificationMethod) GetVerificationMaterial

func (m *VerificationMethod) GetVerificationMaterial() string

func (*VerificationMethod) GetVerificationMethodType added in v1.1.0

func (m *VerificationMethod) GetVerificationMethodType() string

func (*VerificationMethod) Marshal

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

func (*VerificationMethod) MarshalTo

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

func (*VerificationMethod) MarshalToSizedBuffer

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

func (*VerificationMethod) ProtoMessage

func (*VerificationMethod) ProtoMessage()

func (*VerificationMethod) ReplaceDids

func (vm *VerificationMethod) ReplaceDids(old, new string)

ReplaceDids replaces ids in all fields

func (*VerificationMethod) Reset

func (m *VerificationMethod) Reset()

func (*VerificationMethod) Size

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

func (*VerificationMethod) String

func (m *VerificationMethod) String() string

func (*VerificationMethod) Unmarshal

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

func (VerificationMethod) Validate

func (vm VerificationMethod) Validate(baseDid string, allowedNamespaces []string) error

Validation

func (*VerificationMethod) XXX_DiscardUnknown

func (m *VerificationMethod) XXX_DiscardUnknown()

func (*VerificationMethod) XXX_Marshal

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

func (*VerificationMethod) XXX_Merge

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

func (*VerificationMethod) XXX_Size

func (m *VerificationMethod) XXX_Size() int

func (*VerificationMethod) XXX_Unmarshal

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

Directories

Path Synopsis
Package v1 is a reverse proxy.
Package v1 is a reverse proxy.

Jump to

Keyboard shortcuts

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