ExtendedPrivateKey.master constructor

ExtendedPrivateKey.master(
  1. Uint8List seed
)

Implementation

ExtendedPrivateKey.master(Uint8List seed)
    : super(version: privateKeyVersion) {
  var hash = hmacSha512(masterKey, seed);
  key = utils.decodeBigIntWithSign(1, _leftFrom(hash));
  chainCode = _rightFrom(hash);
  depth = 0;
  childNumber = 0;
  parentFingerprint = Uint8List.fromList([0, 0, 0, 0]);
}