issuer

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: EUPL-1.2 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueMessage

type IssueMessage struct {
	PrepareIssueMessage    *common.IssueSpecificationMessage `json:"prepareIssueMessage"`
	IssueCommitmentMessage *gabi.IssueCommitmentMessage      `json:"issueCommitmentMessage"`
	CredentialsAttributes  []map[string]string               `json:"credentialsAttributes"`
	CredentialVersion      int                               `json:"credentialVersion"`
	KeyIdentifier          string                            `json:"keyIdentifier"`

	// DEPRECATED: This field is deprecated and should be removed when callers have been migrated
	KeyUsage string `json:"keyUsage"`
}

type Issuer

type Issuer struct {
	Signer Signer
}

func New

func New(signer Signer) *Issuer

func (*Issuer) Issue

func (iss *Issuer) Issue(im *IssueMessage) ([]*common.CreateCredentialMessage, error)

func (*Issuer) IssueStatic added in v0.3.0

func (iss *Issuer) IssueStatic(sim *StaticIssueMessage) (proofPrefixed, proofIdentifier []byte, err error)

func (*Issuer) PrepareIssue

type PrepareIssueRequestMessage added in v0.7.2

type PrepareIssueRequestMessage struct {
	KeyIdentifier    string `json:"keyIdentifier"`
	CredentialAmount int    `json:"credentialAmount"`

	// DEPRECATED: This field is deprecated and should be removed when callers have been migrated
	KeyUsage string `json:"keyUsage"`
}

type Signer

type Signer interface {
	PrepareSign(keySpecification *localsigner.KeySpecification) (pkId string, issuerNonce *big.Int, err error)
	Sign(keySpecification *localsigner.KeySpecification, credentialsAttributeList [][]*big.Int, proofUs []*big.Int, holderNonce *big.Int) (isms []*gabi.IssueSignatureMessage, err error)
	FindIssuerPk(keySpecification *localsigner.KeySpecification) (pk *gabi.PublicKey, kid string, err error)
	GetPrimePool() gabipool.PrimePool
}

type StaticIssueMessage added in v0.3.0

type StaticIssueMessage struct {
	CredentialAttributes map[string]string `json:"credentialAttributes"`
	CredentialVersion    int               `json:"credentialVersion"`
	KeyIdentifier        string            `json:"keyIdentifier"`

	// DEPRECATED: This field is deprecated and should be removed when callers have been migrated
	KeyUsage string `json:"keyUsage"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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