Bip32Base constructor

Bip32Base({
  1. required List<int>? privKey,
  2. required List<int>? pubKey,
  3. required Bip32KeyData keyData,
  4. required Bip32KeyNetVersions keyNetVer,
})

Creates a BIP-32 key from provided parameters.

The privKey and pubKey parameters represent private and public key bytes, while keyData and keyNetVer specify key data and network versions.

Implementation

Bip32Base({
  required List<int>? privKey,
  required List<int>? pubKey,
  required Bip32KeyData keyData,
  required Bip32KeyNetVersions keyNetVer,
}) {
  _privKey =
      _initializePrivateKey(privKey, pubKey, keyData, keyNetVer, curveType);
  _pubKey =
      _initializePublicKey(privKey, pubKey, keyData, keyNetVer, curveType);
}