scalarToBytes static method

List<int> scalarToBytes(
  1. Secp256k1Scalar s
)

convert scalar to 32 bytes

Implementation

static List<int> scalarToBytes(Secp256k1Scalar s) {
  final List<int> bytes = List<int>.filled(32, 0);
  Secp256k1.secp256k1ScalarGetB32(bytes, s);
  return bytes;
}