ltonetwork / seasalt

NaCl compatible cryptography library using Bouncy Castle (Java)
Apache License 2.0
3 stars 1 forks source link

JWS compatibility #15

Closed KaloyanTanev closed 2 years ago

KaloyanTanev commented 2 years ago

On some places you will see new BigInteger(XYZ) -> new BigInteger(1, XYZ), the 1 is the magnitude, it's not mandatory but it is an extra check for variables which should be positive. https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html#BigInteger(int,%20byte[])