Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 2 Imported by: 34

Documentation

Index

Constants

View Source
const (
	// DIDCommServiceType default DID Communication service endpoint type.
	DIDCommServiceType = "did-communication"

	// DIDCommV2ServiceType is the DID Communications V2 service type.
	DIDCommV2ServiceType = "DIDCommMessaging"

	// LegacyServiceType is the DID Communication V1 indy based service type.
	LegacyServiceType = "IndyAgent"
)

Variables

View Source
var ErrNotFound = errors.New("DID does not exist")

ErrNotFound is returned when a DID resolver does not find the DID.

Functions

This section is empty.

Types

type DIDMethodOption

type DIDMethodOption func(opts *DIDMethodOpts)

DIDMethodOption is a did method option.

func WithOption

func WithOption(name string, value interface{}) DIDMethodOption

WithOption add option for did method.

type DIDMethodOpts

type DIDMethodOpts struct {
	Values map[string]interface{}
}

DIDMethodOpts did method opts.

type Registry

type Registry interface {
	Resolve(did string, opts ...DIDMethodOption) (*did.DocResolution, error)
	Create(method string, did *did.Doc, opts ...DIDMethodOption) (*did.DocResolution, error)
	Update(did *did.Doc, opts ...DIDMethodOption) error
	Deactivate(did string, opts ...DIDMethodOption) error
	Close() error
}

Registry vdr registry.

type VDR

type VDR interface {
	Read(did string, opts ...DIDMethodOption) (*did.DocResolution, error)
	Create(did *did.Doc, opts ...DIDMethodOption) (*did.DocResolution, error)
	Accept(method string, opts ...DIDMethodOption) bool
	Update(did *did.Doc, opts ...DIDMethodOption) error
	Deactivate(did string, opts ...DIDMethodOption) error
	Close() error
}

VDR verifiable data registry interface. TODO https://github.com/hyperledger/aries-framework-go/issues/2475

Jump to

Keyboard shortcuts

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