Documentation ¶
Overview ¶
Package indy implements a VDR interface for Aries (aries-framework-go).
Index ¶
- Constants
- type Client
- type Option
- type VDR
- func (v *VDR) Accept(method string) bool
- func (v *VDR) Close() error
- func (v *VDR) Create(didDoc *did.Doc, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
- func (v *VDR) Deactivate(did string, opts ...vdrapi.DIDMethodOption) error
- func (v *VDR) Read(did string, opts ...vdrapi.DIDMethodOption) (*diddoc.DocResolution, error)
- func (v *VDR) Update(didDoc *diddoc.Doc, opts ...vdrapi.DIDMethodOption) error
Constants ¶
View Source
const ( // DefaultServiceType default service type. DefaultServiceType = "defaultServiceType" // DefaultServiceEndpoint default service endpoint. DefaultServiceEndpoint = "defaultServiceEndpoint" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetNym(did string) (*vdr.ReadReply, error) GetEndpoint(did string) (*vdr.ReadReply, error) GetPoolStatus() (*vdr.PoolStatus, error) RefreshPool() error Close() error }
Client is the API for interacting with the Indy VDR client.
type Option ¶
type Option func(opts *VDR)
Option configures the Indy vdri.
func WithIndyClient ¶
WithIndyClient configures the VDR with an existing Indy Client.
func WithIndyVDRGenesisFile ¶
WithIndyVDRGenesisFile configures the VDR with a genesis file.
func WithIndyVDRGenesisReader ¶
func WithIndyVDRGenesisReader(genesisData io.ReadCloser) Option
WithIndyVDRGenesisReader configures the VDR with a genesis reader.
func WithRefresh ¶
WithRefresh option configuring an initial refresh of the Indy pool.
type VDR ¶
VDR represents a Verifiable Data Registry for use with Indy ledgers.
func (*VDR) Create ¶
func (v *VDR) Create(didDoc *did.Doc, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
Create builds a new DID Doc.
func (*VDR) Deactivate ¶
func (v *VDR) Deactivate(did string, opts ...vdrapi.DIDMethodOption) error
Deactivate did doc.
func (*VDR) Read ¶
func (v *VDR) Read(did string, opts ...vdrapi.DIDMethodOption) (*diddoc.DocResolution, error)
Click to show internal directories.
Click to hide internal directories.