holder

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignProofHolderWithYubikey

func SignProofHolderWithYubikey(s Holder, docToSign []byte, yubikeyPIN int32) (entity.Proof, error)

SignProofHolderWithYubikey signs a presentation with a yubikey.

Types

type Holder

type Holder struct {
	PublicKey crypto.PublicKey
	Yubico    *yubico.Yubikey
}

func CreateHolder

func CreateHolder(pub *ecdsa.PublicKey) (Holder, error)

CreateHolder creates a holder.

func (Holder) GetSubject

func (s Holder) GetSubject() (verifiable.Subject, error)

GetSubject returns the subject of the holder.

func (Holder) SignPresentation

func (s Holder) SignPresentation(credentials entity.Credential, nonce []byte, yubikeyPIN int32) (entity.Presentation, error)

SignPresentation creates a presentation.

Jump to

Keyboard shortcuts

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