serialize static method
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);
}