Bip32.fromPublicKey constructor
Bip32.fromPublicKey(
- Uint8List publicKey,
- Uint8List chainCode, [
- NetworkType? nw
Implementation
factory Bip32.fromPublicKey(Uint8List publicKey, Uint8List chainCode,
[NetworkType? nw]) {
NetworkType network = nw ?? bitcoin;
if (!ecc.isPoint(publicKey)) {
throw ArgumentError('Point is not on the curve');
}
return Bip32(null, publicKey, chainCode, network);
}