BIP32.fromPublicKey constructor

BIP32.fromPublicKey(
  1. Uint8List publicKey,
  2. Uint8List chainCode, [
  3. 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);
}