HARDENED top-level constant

int const HARDENED

The following part is ported from InternetIdentity service. It's main purpose is to recover an identity that registered. These truths are covered.

  • It generates masterseed using Bip39 and sha512
  • Then use derivationPath matches to m/44'/223’/0’/0’/0'
  • Then use Ed25519KeyIdentity.to generate a new identity.
  • Internet Identity service then use the generated identity as a binding to originial identity.
  • So the phrases that generated can be saved to a new location, then combined with a device number to recover

Implementation

// ignore: constant_identifier_names
const HARDENED = 0x80000000;