fabric: github.com/hyperledger/fabric/common/tools/idemixgen/idemixca Index | Files

package idemixca

import "github.com/hyperledger/fabric/common/tools/idemixgen/idemixca"


Package Files


func GenerateIssuerKey Uses

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 Uses

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.

Package idemixca imports 7 packages (graph) and is imported by 1 packages. Updated 2020-07-15. Refresh now. Tools for package owners.