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 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) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.