holder

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: EUPL-1.2 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CATEGORY_HIDDEN = 1 + iota
	CATEGORY_DISCLOSED_V2_SERIALIZATION
	CATEGORY_DISCLOSED_V3_SERIALIZATION
)

Variables

This section is empty.

Functions

func GenerateSk

func GenerateSk() *big.Int

Types

type Holder

type Holder struct {
	// contains filtered or unexported fields
}

func New

func New(findIssuerPk common.FindIssuerPkFunc, createCredentialVersion int) *Holder

func (*Holder) CreateCommitments

func (h *Holder) CreateCommitments(holderSk *big.Int, pim *common.IssueSpecificationMessage) ([]gabi.ProofBuilder, *gabi.IssueCommitmentMessage, error)

func (*Holder) CreateCredentials

func (h *Holder) CreateCredentials(credBuilders []gabi.ProofBuilder, ccms []*common.CreateCredentialMessage) ([]*gabi.Credential, error)

func (*Holder) DiscloseWithTime added in v0.8.0

func (h *Holder) DiscloseWithTime(holderSk *big.Int, cred *gabi.Credential, categoryMode int, now time.Time) (proofAsn1, proofIdentifier []byte, err error)

func (*Holder) DiscloseWithTimeQREncoded added in v0.8.0

func (h *Holder) DiscloseWithTimeQREncoded(holderSk *big.Int, cred *gabi.Credential, categoryMode int, now time.Time) (qr, proofIdentifier []byte, err error)

func (*Holder) ReadCredential added in v0.6.0

func (h *Holder) ReadCredential(cred *gabi.Credential) (attributes map[string]string, version int, err error)

Jump to

Keyboard shortcuts

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