@Test void verifyingWithPointsAtInfinityAlwaysSucceeds() { Bytes message = Bytes.wrap("Hello, world!".getBytes(UTF_8)); MikuliPublicKey infPubKey = new MikuliPublicKey(new G1Point()); MikuliSignature infSignature = new MikuliSignature(new G2Point()); assertTrue(MikuliBLS12381.verify(infPubKey, message, infSignature)); }
public static boolean verify( MikuliPublicKey publicKey, Bytes message, MikuliSignature signature) { return coreVerify(publicKey, message, signature); }
MikuliBLS12381 implements BLS12381 { public static boolean verify( MikuliPublicKey publicKey, Bytes message, MikuliSignature signature) { return coreVerify(publicKey, message, signature); } }
MikuliBLS12381 implements BLS12381 { public static boolean verify( MikuliPublicKey publicKey, Bytes message, MikuliSignature signature) { return coreVerify(publicKey, message, signature); } protected  MikuliBLS12381(); }
MikuliBLS12381 implements BLS12381 { public static boolean verify( MikuliPublicKey publicKey, Bytes message, MikuliSignature signature) { return coreVerify(publicKey, message, signature); } protected  MikuliBLS12381(); @Override KeyPair generateKeyPair(Random random); @Override PublicKey publicKeyFromCompressed(Bytes48 compressedPublicKeyBytes); @Override MikuliSignature signatureFromCompressed(Bytes compressedSignatureBytes); @Override SecretKey secretKeyFromBytes(Bytes32 secretKeyBytes); @Override PublicKey aggregatePublicKeys(List<? extends PublicKey> publicKeys); @Override MikuliSignature aggregateSignatures(List<? extends Signature> signatures); static MikuliSignature sign(MikuliSecretKey secretKey, Bytes message); static MikuliSignature sign(MikuliSecretKey secretKey, Bytes message, Bytes dst); static boolean verify(
      MikuliPublicKey publicKey, Bytes message, MikuliSignature signature); static MikuliSignature aggregate(List<MikuliSignature> signatures); static MikuliSignature aggregate(Stream<MikuliSignature> signatures); static boolean aggregateVerify(
      List<MikuliPublicKey> publicKeys, List<Bytes> messages, MikuliSignature signature); static boolean fastAggregateVerify(
      List<MikuliPublicKey> publicKeys, Bytes message, MikuliSignature signature); static boolean coreVerify(
      MikuliPublicKey publicKey, Bytes message, MikuliSignature signature); static boolean coreVerify(
      MikuliPublicKey publicKey, Bytes message, MikuliSignature signature, Bytes dst); static boolean coreAggregateVerify(
      List<MikuliPublicKey> publicKeys, List<Bytes> messages, MikuliSignature signature); @Override BatchSemiAggregate prepareBatchVerify(
      int index, List<? extends PublicKey> publicKeys, Bytes message, Signature signature); @Override BatchSemiAggregate prepareBatchVerify2(
      int index,
      List<? extends PublicKey> publicKeys1,
      Bytes message1,
      Signature signature1,
      List<? extends PublicKey> publicKeys2,
      Bytes message2,
      Signature signature2); @Override boolean completeBatchVerify(List<? extends BatchSemiAggregate> preparedList); }
MikuliBLS12381 implements BLS12381 { public static boolean verify( MikuliPublicKey publicKey, Bytes message, MikuliSignature signature) { return coreVerify(publicKey, message, signature); } protected  MikuliBLS12381(); @Override KeyPair generateKeyPair(Random random); @Override PublicKey publicKeyFromCompressed(Bytes48 compressedPublicKeyBytes); @Override MikuliSignature signatureFromCompressed(Bytes compressedSignatureBytes); @Override SecretKey secretKeyFromBytes(Bytes32 secretKeyBytes); @Override PublicKey aggregatePublicKeys(List<? extends PublicKey> publicKeys); @Override MikuliSignature aggregateSignatures(List<? extends Signature> signatures); static MikuliSignature sign(MikuliSecretKey secretKey, Bytes message); static MikuliSignature sign(MikuliSecretKey secretKey, Bytes message, Bytes dst); static boolean verify(
      MikuliPublicKey publicKey, Bytes message, MikuliSignature signature); static MikuliSignature aggregate(List<MikuliSignature> signatures); static MikuliSignature aggregate(Stream<MikuliSignature> signatures); static boolean aggregateVerify(
      List<MikuliPublicKey> publicKeys, List<Bytes> messages, MikuliSignature signature); static boolean fastAggregateVerify(
      List<MikuliPublicKey> publicKeys, Bytes message, MikuliSignature signature); static boolean coreVerify(
      MikuliPublicKey publicKey, Bytes message, MikuliSignature signature); static boolean coreVerify(
      MikuliPublicKey publicKey, Bytes message, MikuliSignature signature, Bytes dst); static boolean coreAggregateVerify(
      List<MikuliPublicKey> publicKeys, List<Bytes> messages, MikuliSignature signature); @Override BatchSemiAggregate prepareBatchVerify(
      int index, List<? extends PublicKey> publicKeys, Bytes message, Signature signature); @Override BatchSemiAggregate prepareBatchVerify2(
      int index,
      List<? extends PublicKey> publicKeys1,
      Bytes message1,
      Signature signature1,
      List<? extends PublicKey> publicKeys2,
      Bytes message2,
      Signature signature2); @Override boolean completeBatchVerify(List<? extends BatchSemiAggregate> preparedList); static final MikuliBLS12381 INSTANCE; }