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 new ArgumentError("Point is not on the curve");
}
return new BIP32(null, publicKey, chainCode, network);
}