privateKey property
SVPrivateKey
privateKey
Converts the HDPrivateKey instance to a SVPrivateKey. The generic APIs require SVPrivateKeys, with HDPrivateKey only being used as a means to expose BIP32 wallet functionality
Implementation
SVPrivateKey get privateKey {
var pk = this.keyBuffer;
var normalisedPK = pk.map((elem) => elem.toUnsigned(8)).toList();
return SVPrivateKey.fromHex(HEX.encode(normalisedPK), this.networkType!);
}