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 master-seed using Bip39 and sha512. Then use icDerivationPath matches to m/44'/223’/0’/0’/0'. Then use Ed25519KeyIdentity.generate to generate a new identity. Internet Identity service then use the generated identity as a binding to original identity. So the phrases that generated can be saved to a new location, then combined with a device number to recover.

Implementation

const hardened = 0x80000000;