public static BigInteger[] transformRawSignature(byte[] raw) throws IOException {
  BigInteger[] output=new BigInteger[2];
  output[0]=new BigInteger(1,Arrays.copyOfRange(raw,0,32));
  output[1]=new BigInteger(1,Arrays.copyOfRange(raw,32,64));
  return output;
}

public static BigInteger [ ] transformRawSignature ( byte [ ] raw ) throws IOException { BigInteger [ ] output = new BigInteger [ 2 ] ; output [ 0 ] = new BigInteger ( 1 , Arrays . copyOfRange ( raw , 0 , 32 ) ) ; output [ 1 ] = new BigInteger ( 1 , Arrays . copyOfRange ( raw , 32 , 64 ) ) ; return output ; }
from byte [ ] to big integers r , s uaf_alg_sign_secp256k1_ecdsa_sha256_raw 0x05 an ecdsa signature on the secp256k1 curve which must have raw r and s buffers , encoded in big - endian order . i . e . [ r ( 32 bytes ) , s ( 32 bytes ) ]
