idemixca

package
Version: v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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 *ecdsa.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.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL