Skip to content

Commit

Permalink
PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stormeye2000 committed Jun 26, 2024
1 parent ec5b64a commit 8726ebc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/com/syntifi/crypto/key/Secp256k1PublicKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,11 @@ public static byte[] getShortKey(final byte[] key) {
* @return short key as byte array
*/
public static byte[] getRecoveredShortKey(final byte[] key){
return (key[0] == (byte) 0)
? getShortKey(Arrays.copyOfRange(key, 1, (key.length - 1)))
: getShortKey(key);
if (key[0] == (byte) 0) {
return getShortKey(Arrays.copyOfRange(key, 1, (key.length - 1)));
} else {
return getShortKey(key);
}
}

}

0 comments on commit 8726ebc

Please sign in to comment.