identity

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity struct {
	Subject string   `json:"subject"`
	DIDs    []string `json:"dids"`
}

type IdentityDetails

type IdentityDetails struct {
	Identity
	DIDDocuments      []did.Document            `json:"did_documents"`
	DiscoveryServices []discovery.DIDStatus     `json:"discovery_services"`
	WalletCredentials []vc.VerifiableCredential `json:"wallet_credentials"`
}

type Service

type Service struct {
	VDRClient        *vdr.Client
	VCRClient        *vcr.Client
	DiscoveryService discovery.Service
}

func (Service) Create

func (i Service) Create(ctx context.Context, subject *string) (*Identity, error)

func (Service) Get

func (i Service) Get(ctx context.Context, subjectID string) (*IdentityDetails, error)

func (Service) List

func (i Service) List(ctx context.Context) ([]Identity, error)

Jump to

Keyboard shortcuts

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