Bip32.fromPublicKey constructor

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