Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultIdemixCurve is the curve picked by Fabric-CA at default
DefaultIdemixCurve = "amcl.Fp256bn"
)
Variables ¶
View Source
var ( // Curves lists all idemix curves that can be picked by Fabric-CA Curves = CurveIDs{FP256BN, Gurvy, FP256BNMiracl} )
Functions ¶
func InstanceForCurve ¶
InstanceForCurve returns an Idemix instance that uses the given CurveID
Types ¶
type CurveID ¶
type CurveID uint8
CurveID defines the index of the possible idemix curves
const ( // Undefined is used to indicate that no curve has been defined Undefined CurveID = iota // FP256BN is an AMCL implementation of BN256 and its corresponding finite field FP256BN // Gurvy is an implementation of gnark-crypto of BN254 and its corresponding finite field Gurvy // FP256BNMiracl is another AMCL implementation of BN256 and its corresponding finite field FP256BNMiracl )
Click to show internal directories.
Click to hide internal directories.