Package score.impl.bls12381
Class BLS12381
- java.lang.Object
-
- score.impl.bls12381.BLS12381
-
public class BLS12381 extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BLS12381()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
aggregateG1Values(byte[] prevAgg, byte[] values)
Returns aggregation of prevAgg and values.static supranational.blst.P1
identity()
static boolean
verifyG2Signature(byte[] pubKey, byte[] sig, byte[] msg)
-
-
-
Field Detail
-
G1_LEN
public static final int G1_LEN
- See Also:
- Constant Field Values
-
G2_LEN
public static final int G2_LEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
identity
public static supranational.blst.P1 identity()
-
aggregateG1Values
public static byte[] aggregateG1Values(byte[] prevAgg, byte[] values)
Returns aggregation of prevAgg and values.- Parameters:
prevAgg
- previous aggregation. null if there is no previous aggregation.values
- values to be aggregated.- Returns:
- aggregated value.
-
verifyG2Signature
public static boolean verifyG2Signature(byte[] pubKey, byte[] sig, byte[] msg)
-
-