Documentation ¶
Index ¶
- func AcceptOOBRequest(client *resty.Client, invitation json.RawMessage) (connection domain.Connection, err error)
- func CreateOOBInvitation(client *resty.Client) (invitation json.RawMessage, err error)
- type Holder
- func (h *Holder) AcceptCredential(piid string, name string) error
- func (h *Holder) AcceptOOBInvitation(invitation json.RawMessage) (err error)
- func (h *Holder) AcceptOffer(piid string) error
- func (h *Holder) AcceptPresentationRequest(piid string, presentation domain.Presentation) (err error)
- func (h *Holder) GetCredentialFromOffer(piid string) (credential *domain.Credential, err error)
- func (h *Holder) GetIssuedCredential(piid string) (credential *domain.Credential, err error)
- func (h *Holder) SendCredentialRequest(connection domain.Connection, credential domain.Credential) (piid string, err error)
- type Issuer
- func (i *Issuer) AcceptCredentialRequest(piid string, credential domain.Credential) (err error)
- func (i *Issuer) AcceptOOBRequest(invitation json.RawMessage) (connection domain.Connection, err error)
- func (i *Issuer) CreateOOBInvitation() (invitation json.RawMessage, err error)
- func (i *Issuer) GetCredentialFromRequest(piid string) (credential *domain.Credential, err error)
- func (i *Issuer) SendCredentialOffer(connection domain.Connection, credential domain.Credential) (piid string, err error)
- type VDR
- type Verifier
- func (v *Verifier) AcceptOOBRequest(invitation json.RawMessage) (connection domain.Connection, err error)
- func (v *Verifier) AcceptPresentation(piid string, name string) error
- func (v *Verifier) CreateOOBInvitation() (invitation json.RawMessage, err error)
- func (v *Verifier) GetIssuedPresentation(piid string) (presentation *domain.Presentation, err error)
- func (v *Verifier) SendPresentationRequest(connection domain.Connection) (piid string, err error)
- type Wallet
- func (w *Wallet) AddKey(userId string, passphrase string, keyId string, privKey ed25519.PrivateKey) (err error)
- func (w *Wallet) CreateWallet(userId string, passphrase string) (err error)
- func (w *Wallet) SignCredential(userId string, passphrase string, did string, credential domain.Credential) (domain.Credential, error)
- func (w *Wallet) SignPresentation(userId string, passphrase string, did string, presentation domain.Presentation) (domain.Presentation, error)
- func (w *Wallet) Verify(body any) error
- func (w *Wallet) VerifyCredential(userId string, passphrase string, rawCredential json.RawMessage) (err error)
- func (w *Wallet) VerifyPresentation(userId string, passphrase string, rawPresentation json.RawMessage) error
- func (w *Wallet) WalletExists(userId string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptOOBRequest ¶
func AcceptOOBRequest(client *resty.Client, invitation json.RawMessage) (connection domain.Connection, err error)
func CreateOOBInvitation ¶
func CreateOOBInvitation(client *resty.Client) (invitation json.RawMessage, err error)
Types ¶
type Holder ¶
type Holder struct {
// contains filtered or unexported fields
}
func (*Holder) AcceptOOBInvitation ¶
func (h *Holder) AcceptOOBInvitation(invitation json.RawMessage) (err error)
func (*Holder) AcceptOffer ¶
func (*Holder) AcceptPresentationRequest ¶
func (h *Holder) AcceptPresentationRequest(piid string, presentation domain.Presentation) (err error)
func (*Holder) GetCredentialFromOffer ¶
func (h *Holder) GetCredentialFromOffer(piid string) (credential *domain.Credential, err error)
func (*Holder) GetIssuedCredential ¶
func (h *Holder) GetIssuedCredential(piid string) (credential *domain.Credential, err error)
func (*Holder) SendCredentialRequest ¶
func (h *Holder) SendCredentialRequest(connection domain.Connection, credential domain.Credential) (piid string, err error)
type Issuer ¶
type Issuer struct {
// contains filtered or unexported fields
}
func (*Issuer) AcceptCredentialRequest ¶
func (i *Issuer) AcceptCredentialRequest(piid string, credential domain.Credential) (err error)
func (*Issuer) AcceptOOBRequest ¶
func (i *Issuer) AcceptOOBRequest(invitation json.RawMessage) (connection domain.Connection, err error)
func (*Issuer) CreateOOBInvitation ¶
func (i *Issuer) CreateOOBInvitation() (invitation json.RawMessage, err error)
func (*Issuer) GetCredentialFromRequest ¶
func (i *Issuer) GetCredentialFromRequest(piid string) (credential *domain.Credential, err error)
func (*Issuer) SendCredentialOffer ¶
func (i *Issuer) SendCredentialOffer(connection domain.Connection, credential domain.Credential) (piid string, err error)
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
func NewVerifier ¶
func (*Verifier) AcceptOOBRequest ¶
func (v *Verifier) AcceptOOBRequest(invitation json.RawMessage) (connection domain.Connection, err error)
func (*Verifier) AcceptPresentation ¶
func (*Verifier) CreateOOBInvitation ¶
func (v *Verifier) CreateOOBInvitation() (invitation json.RawMessage, err error)
func (*Verifier) GetIssuedPresentation ¶
func (v *Verifier) GetIssuedPresentation(piid string) (presentation *domain.Presentation, err error)
func (*Verifier) SendPresentationRequest ¶
func (v *Verifier) SendPresentationRequest(connection domain.Connection) (piid string, err error)
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) CreateWallet ¶
func (*Wallet) SignCredential ¶
func (w *Wallet) SignCredential(userId string, passphrase string, did string, credential domain.Credential) (domain.Credential, error)
func (*Wallet) SignPresentation ¶
func (w *Wallet) SignPresentation(userId string, passphrase string, did string, presentation domain.Presentation) (domain.Presentation, error)
func (*Wallet) VerifyCredential ¶
func (*Wallet) VerifyPresentation ¶
func (*Wallet) WalletExists ¶
Click to show internal directories.
Click to hide internal directories.