serialize function

BigInt serialize(
  1. ECPrivateKey privateKey
)

Returns a serialized form of the private key which can be stored. It might seem odd to have such a trivial method but doing this prevents the user of this library from including a bunch of PointyCastle dependencies.

Implementation

BigInt serialize(ECPrivateKey privateKey) {
  return privateKey.d;
}