idemixca

package
v0.0.0-...-46723fb Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateIssuerKey

func GenerateIssuerKey() ([]byte, []byte, error)

GenerateIssuerKey invokes Idemix library to generate an issuer (CA) signing key pair. Currently four attributes are supported by the issuer: AttributeNameOU is the organization unit name AttributeNameRole is the role (member or admin) name AttributeNameEnrollmentId is the enrollment id AttributeNameRevocationHandle contains the revocation handle, which can be used to revoke this user Generated keys are serialized to bytes.

func GenerateSignerConfig

func GenerateSignerConfig(roleMask int, ouString string, enrollmentId string, revocationHandle int, key *idemix.IssuerKey, revKey *sm2.PrivateKey) ([]byte, error)

GenerateSignerConfig creates a new signer config. It generates a fresh user secret and issues a credential with four attributes (described above) using the CA's key pair. func GenerateSignerConfig(roleMask int, ouString string, enrollmentId string, revocationHandle int, key *idemix.IssuerKey, revKey *ecdsa.PrivateKey) ([]byte, error) {

Types

This section is empty.

Jump to

Keyboard shortcuts

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