Class Der

java.lang.Object
com.codename1.crypto.bitcoin.Der

public final class Der extends Object
Strict DER (BIP-66) encoding of an ECDSA signature.
  • 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