Class BLS12381


  • public class BLS12381
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int G1_LEN  
      static int G2_LEN  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BLS12381

        public BLS12381()
    • 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)