vc

package
v0.0.0-...-e13654e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Holder

type Holder interface {
	GetCredentialFromOffer(piid string) (credential *domain.Credential, err error)
	GetIssuedCredential(piid string) (credential *domain.Credential, err error)
	SendCredentialRequest(connection domain.Connection, credential domain.Credential) (piid string, err error)
	AcceptOffer(piid string) error
	AcceptCredential(piid string, name string) error
	AcceptPresentationRequest(piid string, presentation domain.Presentation) error

	AcceptOOBInvitation(invitation json.RawMessage) (err error)
}

type Issuer

type Issuer interface {
	SendCredentialOffer(connection domain.Connection, credential domain.Credential) (piid string, err error)
	GetCredentialFromRequest(piid string) (credential *domain.Credential, err error)
	AcceptCredentialRequest(piid string, credential domain.Credential) error

	CreateOOBInvitation() (invitation json.RawMessage, err error)
	AcceptOOBRequest(invitation json.RawMessage) (connection domain.Connection, err error)
}

type OOBInvitee

type OOBInvitee interface {
	AcceptOOBInvitation(invitation json.RawMessage) (err error)
}

type OOBInviter

type OOBInviter interface {
	CreateOOBInvitation() (invitation json.RawMessage, err error)
	AcceptOOBRequest(invitation json.RawMessage) (connection domain.Connection, err error)
}

type VDR

type VDR interface {
	CreateKeyDID(pubKey ed25519.PublicKey) (did string, verificationMethodId string, err error)
}

type Verifier

type Verifier interface {
	SendPresentationRequest(connection domain.Connection) (piid string, err error)
	GetIssuedPresentation(piid string) (presentation *domain.Presentation, err error)
	AcceptPresentation(piid string, name string) error

	CreateOOBInvitation() (invitation json.RawMessage, err error)
	AcceptOOBRequest(invitation json.RawMessage) (connection domain.Connection, err error)
}

type Wallet

type Wallet interface {
	SignCredential(userId string, passphrase string, did string, credential domain.Credential) (domain.Credential, error)
	SignPresentation(userId string, passphrase string, did string, presentaion domain.Presentation) (domain.Presentation, error)
	VerifyCredential(userId string, passphrase string, rawCredential json.RawMessage) error
	VerifyPresentation(userId string, passphrase string, rawPresentation json.RawMessage) error

	WalletExists(userId string) bool
	CreateWallet(userId string, passphrase string) (err error)

	AddKey(userId string, passphrase string, keyId string, privKey ed25519.PrivateKey) (err error)
}

Directories

Path Synopsis
impl

Jump to

Keyboard shortcuts

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