Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public final class Der
- Object
- Der
Strict DER (BIP-66) encoding of an ECDSA signature.
Methods
public static byte[] encode(byte[] r, byte[] s) | 30 len 02 len r 02 len s of two 32-byte big-endian integers. |
public static byte[] decode(byte[] der) | The r || s 64 bytes of a strict DER signature (without the sighash byte). |
Inherited methods
Method details
encode
public static byte[] encode(byte[] r, byte[] s)30 len 02 len r 02 len s of two 32-byte big-endian integers.decode
public static byte[] decode(byte[] der)The
r || s 64 bytes of a strict DER signature (without the sighash byte).Throws
IllegalArgumentException- for anything BIP-66 rejects