Skip to content

Commit

Permalink
fix compilation (var is not Java 8 compliant)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulvi committed Sep 14, 2021
1 parent b82f7f7 commit ccef8ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private boolean isValidEd25519Signature(byte[] payload, Extrinsic.Signature sign
PublicKey publicKey = keyFactory.generatePublic(keySpec);

// verify signature
final var signedData = Signature.getInstance("ed25519", bouncyCastleProvider);
final Signature signedData = Signature.getInstance("ed25519", bouncyCastleProvider);
signedData.initVerify(publicKey);
signedData.update(payload);
return signedData.verify(signature.getValue().getBytes());
Expand Down

0 comments on commit ccef8ef

Please sign in to comment.