Documentation ¶
Index ¶
- type IssueMessage
- type Issuer
- func (iss *Issuer) Issue(im *IssueMessage) ([]*common.CreateCredentialMessage, error)
- func (iss *Issuer) IssueStatic(sim *StaticIssueMessage) (proofPrefixed, proofIdentifier []byte, err error)
- func (iss *Issuer) PrepareIssue(pir *PrepareIssueRequestMessage) (*common.IssueSpecificationMessage, error)
- type PrepareIssueRequestMessage
- type Signer
- type StaticIssueMessage
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 (*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 ¶
func (iss *Issuer) PrepareIssue(pir *PrepareIssueRequestMessage) (*common.IssueSpecificationMessage, error)
type PrepareIssueRequestMessage ¶ added in v0.7.2
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"` }
Click to show internal directories.
Click to hide internal directories.