ssb-horcrux

1.0.0 • Public • Published

patch-horcrux

[WIP] - will be a depject patchbay module

Do you crave immortality? Secure your private key by splitting it like Voldemort did (no human sacrifce required).

Split your key into some number of parts, give those to trusted friends, and if your computer ever dies, you can re-create your private key.

example script

Splitting a key into 5 parts, but only needing 3 to recover your key.

var secrets = require('secrets.js')

// you'd actually use your private key
var key = '@ye+QM09iPcDJD6YvQYjoQc7sLF/IFhmNbEqgdzQo3lQ=.ed25519' 

var hexKey =  secrets.str2hex(key)
var shares = secrets.share( hexKey, 5, 3 )

console.log( shares )

var combinedShares = secrets.combine( shares.slice(0,3) )
var myKey          = secrets.hex2str( combinedShares )

console.log( myKey )

https://www.npmjs.com/package/secrets.js

Readme

Keywords

none

Package Sidebar

Install

npm i ssb-horcrux

Weekly Downloads

0

Version

1.0.0

License

GPL-3.0

Unpacked Size

29 kB

Total Files

8

Last publish

Collaborators

  • powersource
  • arj03
  • staltz
  • mixmix
  • cel