BIP32.fromPublicKey constructor
BIP32.fromPublicKey(
- Uint8List publicKey,
- Uint8List chainCode, [
- NetworkType? nw
From Public Key
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);
}