Documentation ¶
Index ¶
- Constants
- 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(keyUsage string, credentialAmount int) (*common.PrepareIssueMessage, error)
- type Signer
- type StaticIssueMessage
Constants ¶
View Source
const DEFAULT_CREDENTIAL_VERSION = 2
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"` CredentialVersion int `json:"credentialVersion"` 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 ¶
type Signer ¶
type Signer interface { PrepareSign(keyUsage string) (pkId string, issuerNonce *big.Int, err error) Sign(keyUsage string, credentialsAttributeList [][]*big.Int, proofUs []*big.Int, holderNonce *big.Int) (isms []*gabi.IssueSignatureMessage, err error) FindIssuerPkByUsage(keyUsage string) (pk *gabi.PublicKey, kid string, err error) GetPrimePool() gabipool.PrimePool }
Click to show internal directories.
Click to hide internal directories.