Deterministic seeds from passphrases suitable for WetWare RAM (Read: the human brain)
mindvault
Deterministic seeds from passphrases suitable for WetWare RAM (Read: the human brain)
var hash = require('mindvault')
var crypt = require('ssb-keys')
var generatePassphrase = require('eff-diceware-passphrase')
var appId = Buffer.alloc(hash.APP_ID_BYTES).fill('mindvault')
var salt = Buffer.from('[email protected]')
var passphrase = Buffer.from(generatePassphrase.entropy(100).join(' '))
var keyPair = crypt.generate('ed25519', hash(passphrase, salt, appId))
// Go crazy with your new key pair
mindvault(passphrase, salt, [appId])
passphrase
must be a Buffer of arbitrary length, and is recommended to havesalt
must be Buffer of arbitrary length. It ss used to partition the keyappId
is optional, but must be a Buffer of length mindvault.APP_ID_BYTES
.passphrase
and salt
practicallynpm install mindvault