Bip49.fromPublicKey constructor

Bip49.fromPublicKey(
  1. List<int> pubkeyBytes,
  2. Bip49Coins coinType, {
  3. Bip32KeyData? keyData,
})

Constructor for creating a Bip49 object from a public key and coin.

Implementation

Bip49.fromPublicKey(
  List<int> pubkeyBytes,
  Bip49Coins coinType, {
  Bip32KeyData? keyData,
}) : super.fromPublicKey(
       pubkeyBytes,
       coinType.conf,
       keyData:
           keyData ??
           Bip32KeyData(depth: Bip32Depth(Bip44Levels.account.value)),
     );