@Test void succeedsWhenEqualsReturnsFalseForDifferentInvalidSignatures() { final MikuliSignature signature1 = MikuliSignature.fromBytes(Bytes.fromHexString("1".repeat(HEX_CHARS_REQUIRED))); final MikuliSignature signature2 = MikuliSignature.fromBytes(Bytes.fromHexString("2".repeat(HEX_CHARS_REQUIRED))); assertNotEquals(signature1, signature2); }
public static MikuliSignature fromBytes(Bytes bytes) { return new MikuliSignature(bytes); }
MikuliSignature implements Signature { public static MikuliSignature fromBytes(Bytes bytes) { return new MikuliSignature(bytes); } }
MikuliSignature implements Signature { public static MikuliSignature fromBytes(Bytes bytes) { return new MikuliSignature(bytes); } MikuliSignature(G2Point point);  MikuliSignature(Bytes rawData);  MikuliSignature(MikuliSignature signature); }
MikuliSignature implements Signature { public static MikuliSignature fromBytes(Bytes bytes) { return new MikuliSignature(bytes); } MikuliSignature(G2Point point);  MikuliSignature(Bytes rawData);  MikuliSignature(MikuliSignature signature); static MikuliSignature aggregate(List<MikuliSignature> signatures); static MikuliSignature aggregate(Stream<MikuliSignature> signatures); static MikuliSignature fromBytes(Bytes bytes); static MikuliSignature fromBytesCompressed(Bytes bytes); static MikuliSignature random(int entropy); @Override boolean verify(List<PublicKeyMessagePair> keysToMessages); @Override boolean verify(List<PublicKey> publicKeys, Bytes message); @Override boolean verify(PublicKey publicKey, Bytes message, Bytes dst); boolean verify(MikuliPublicKey publicKey, G2Point hashInG2); boolean aggregateVerify(List<MikuliPublicKey> publicKeys, List<G2Point> hashesInG2); MikuliSignature combine(MikuliSignature signature); @Override Bytes toBytesUncompressed(); @Override Bytes toBytesCompressed(); @Override String toString(); @Override int hashCode(); @VisibleForTesting G2Point g2Point(); @Override boolean equals(Object obj); }
MikuliSignature implements Signature { public static MikuliSignature fromBytes(Bytes bytes) { return new MikuliSignature(bytes); } MikuliSignature(G2Point point);  MikuliSignature(Bytes rawData);  MikuliSignature(MikuliSignature signature); static MikuliSignature aggregate(List<MikuliSignature> signatures); static MikuliSignature aggregate(Stream<MikuliSignature> signatures); static MikuliSignature fromBytes(Bytes bytes); static MikuliSignature fromBytesCompressed(Bytes bytes); static MikuliSignature random(int entropy); @Override boolean verify(List<PublicKeyMessagePair> keysToMessages); @Override boolean verify(List<PublicKey> publicKeys, Bytes message); @Override boolean verify(PublicKey publicKey, Bytes message, Bytes dst); boolean verify(MikuliPublicKey publicKey, G2Point hashInG2); boolean aggregateVerify(List<MikuliPublicKey> publicKeys, List<G2Point> hashesInG2); MikuliSignature combine(MikuliSignature signature); @Override Bytes toBytesUncompressed(); @Override Bytes toBytesCompressed(); @Override String toString(); @Override int hashCode(); @VisibleForTesting G2Point g2Point(); @Override boolean equals(Object obj);  }