Cip1852.fromPublicKey constructor

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

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

Implementation

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