Documentation ¶
Index ¶
- func AggregateAllPubKeys(api frontend.API, pubKeys []sw_bls12381.G1Affine) (*sw_bls12381.G1Affine, error)
- func AggregatePubKeys(api frontend.API, bits [common.LenOfValidators]frontend.Variable, ...) (*sw_bls12381.G1Affine, frontend.Variable)
- func AggregatedVerify(api frontend.API, bits [common.LenOfValidators]frontend.Variable, ...) error
- func G1AffineFromBytes(api frontend.API, pubKey [common.LenOfPubKey]uints.U8) (*sw_bls12381.G1Affine, error)
- func G1AffineToBytes(api frontend.API, g1Affine sw_bls12381.G1Affine) (*[common.LenOfPubKey]uints.U8, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateAllPubKeys ¶
func AggregateAllPubKeys(api frontend.API, pubKeys []sw_bls12381.G1Affine) (*sw_bls12381.G1Affine, error)
func AggregatePubKeys ¶
func AggregatePubKeys(api frontend.API, bits [common.LenOfValidators]frontend.Variable, pubKeys [common.LenOfValidators]sw_bls12381.G1Affine) (*sw_bls12381.G1Affine, frontend.Variable)
this function ensures that each selector bit is indeed a boolean
func AggregatedVerify ¶
func AggregatedVerify(api frontend.API, bits [common.LenOfValidators]frontend.Variable, pubKeys [common.LenOfValidators]sw_bls12381.G1Affine, sig sw_bls12381.G2Affine, msg []uints.U8, threshold frontend.Variable) error
func G1AffineFromBytes ¶
func G1AffineFromBytes(api frontend.API, pubKey [common.LenOfPubKey]uints.U8) (*sw_bls12381.G1Affine, error)
func G1AffineToBytes ¶
func G1AffineToBytes(api frontend.API, g1Affine sw_bls12381.G1Affine) (*[common.LenOfPubKey]uints.U8, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.