Bip32KeyNetVersions constructor

Bip32KeyNetVersions(
  1. List<int> pubNetVer,
  2. List<int> privNetVer
)

constractur for Bip32KeyNetVersions

Implementation

factory Bip32KeyNetVersions(List<int> pubNetVer, List<int> privNetVer) {
  if (pubNetVer.length != length || privNetVer.length != length) {
    throw const ArgumentException("Invalid key net version length");
  }
  return Bip32KeyNetVersions._(
      pubNetVer.asImmutableBytes, privNetVer.asImmutableBytes);
}