Skip to content

Commit

Permalink
fix: Updates to BBS signing/verifying
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Jan 9, 2024
1 parent 2d1f386 commit 8eef996
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8eef996

Please sign in to comment.