diff --git a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G1_BBSPlus_PrivateKeySigner.java b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G1_BBSPlus_PrivateKeySigner.java index 29eb346..fdcb574 100644 --- a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G1_BBSPlus_PrivateKeySigner.java +++ b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G1_BBSPlus_PrivateKeySigner.java @@ -19,7 +19,7 @@ public byte[] sign(byte[] content) throws GeneralSecurityException { try { - return Bbs.blsSign(this.getPrivateKey().secretKey, this.getPrivateKey().publicKey, new byte[][]{content}); + return Bbs.blsSign(this.getPrivateKey().secretKey, this.getPrivateKey().publicKey, new byte[][] { content }); } catch (GeneralSecurityException ex) { throw ex; diff --git a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G1_BBSPlus_PublicKeyVerifier.java b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G1_BBSPlus_PublicKeyVerifier.java index 0831332..cb6f86a 100644 --- a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G1_BBSPlus_PublicKeyVerifier.java +++ b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G1_BBSPlus_PublicKeyVerifier.java @@ -19,7 +19,7 @@ public boolean verify(byte[] content, byte[] signature) throws GeneralSecurityEx try { - return Bbs.blsVerify(this.getPublicKey().publicKey, signature, new byte[][]{signature}); + return Bbs.blsVerify(this.getPublicKey().publicKey, signature, new byte[][] { content }); } catch (GeneralSecurityException ex) { throw ex; diff --git a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G2_BBSPlus_PrivateKeySigner.java b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G2_BBSPlus_PrivateKeySigner.java index 969a6bf..a567771 100644 --- a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G2_BBSPlus_PrivateKeySigner.java +++ b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G2_BBSPlus_PrivateKeySigner.java @@ -19,7 +19,7 @@ public byte[] sign(byte[] content) throws GeneralSecurityException { try { - return Bbs.blsSign(this.getPrivateKey().secretKey, this.getPrivateKey().publicKey, new byte[][]{content}); + return Bbs.blsSign(this.getPrivateKey().secretKey, this.getPrivateKey().publicKey, new byte[][] { content }); } catch (GeneralSecurityException ex) { throw ex; diff --git a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G2_BBSPlus_PublicKeyVerifier.java b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G2_BBSPlus_PublicKeyVerifier.java index 702f09d..14438cc 100644 --- a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G2_BBSPlus_PublicKeyVerifier.java +++ b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls12381G2_BBSPlus_PublicKeyVerifier.java @@ -19,7 +19,7 @@ public boolean verify(byte[] content, byte[] signature) throws GeneralSecurityEx try { - return Bbs.blsVerify(this.getPublicKey().publicKey, signature, new byte[][]{signature}); + return Bbs.blsVerify(this.getPublicKey().publicKey, signature, new byte[][] { content }); } catch (GeneralSecurityException ex) { throw ex; diff --git a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G1_BBSPlus_PrivateKeySigner.java b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G1_BBSPlus_PrivateKeySigner.java index 49491ac..5d46bf2 100644 --- a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G1_BBSPlus_PrivateKeySigner.java +++ b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G1_BBSPlus_PrivateKeySigner.java @@ -19,7 +19,7 @@ public byte[] sign(byte[] content) throws GeneralSecurityException { try { - return Bbs.blsSign(this.getPrivateKey().secretKey, this.getPrivateKey().publicKey, new byte[][]{content}); + return Bbs.blsSign(this.getPrivateKey().secretKey, this.getPrivateKey().publicKey, new byte[][] { content }); } catch (GeneralSecurityException ex) { throw ex; diff --git a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G1_BBSPlus_PublicKeyVerifier.java b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G1_BBSPlus_PublicKeyVerifier.java index 72c7c20..2266bd8 100644 --- a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G1_BBSPlus_PublicKeyVerifier.java +++ b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G1_BBSPlus_PublicKeyVerifier.java @@ -19,7 +19,7 @@ public boolean verify(byte[] content, byte[] signature) throws GeneralSecurityEx try { - return Bbs.blsVerify(this.getPublicKey().publicKey, signature, new byte[][]{signature}); + return Bbs.blsVerify(this.getPublicKey().publicKey, signature, new byte[][] { content }); } catch (GeneralSecurityException ex) { throw ex; diff --git a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G2_BBSPlus_PrivateKeySigner.java b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G2_BBSPlus_PrivateKeySigner.java index 9ea45e7..009234d 100644 --- a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G2_BBSPlus_PrivateKeySigner.java +++ b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G2_BBSPlus_PrivateKeySigner.java @@ -19,7 +19,7 @@ public byte[] sign(byte[] content) throws GeneralSecurityException { try { - return Bbs.blsSign(this.getPrivateKey().secretKey, this.getPrivateKey().publicKey, new byte[][]{content}); + return Bbs.blsSign(this.getPrivateKey().secretKey, this.getPrivateKey().publicKey, new byte[][] { content }); } catch (GeneralSecurityException ex) { throw ex; diff --git a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G2_BBSPlus_PublicKeyVerifier.java b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G2_BBSPlus_PublicKeyVerifier.java index 639848e..5f88ec3 100644 --- a/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G2_BBSPlus_PublicKeyVerifier.java +++ b/src/main/java/com/danubetech/keyformats/crypto/impl/Bls48581G2_BBSPlus_PublicKeyVerifier.java @@ -19,7 +19,7 @@ public boolean verify(byte[] content, byte[] signature) throws GeneralSecurityEx try { - return Bbs.blsVerify(this.getPublicKey().publicKey, signature, new byte[][]{signature}); + return Bbs.blsVerify(this.getPublicKey().publicKey, signature, new byte[][] { content }); } catch (GeneralSecurityException ex) { throw ex;