issuer

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: EUPL-1.2 Imports: 7 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.PrepareIssueMessage  `json:"prepareIssueMessage"`
	IssueCommitmentMessage *gabi.IssueCommitmentMessage `json:"issueCommitmentMessage"`
	CredentialsAttributes  []map[string]string          `json:"credentialsAttributes"`
}

type Issuer

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

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) ([]byte, error)

func (*Issuer) PrepareIssue

func (iss *Issuer) PrepareIssue(credentialAmount int) (*common.PrepareIssueMessage, error)

type Signer

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

type StaticIssueMessage added in v0.3.0

type StaticIssueMessage struct {
	CredentialAttributes map[string]string `json:"credentialAttributes"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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