serialize static method

String serialize(
  1. IPrivateKey privKey,
  2. Bip32KeyData keyData, [
  3. Bip32KeyNetVersions? keyNetVer
])

Serialize a private key.

Implementation

static String serialize(IPrivateKey privKey, Bip32KeyData keyData,
    [Bip32KeyNetVersions? keyNetVer]) {
  keyNetVer ??= Bip32Const.mainNetKeyNetVersions;
  return _Bip32KeySerializer.serialize(
      List<int>.from([0x00, ...privKey.raw]), keyData, keyNetVer.private);
}