mafintosh / hyperdb

Distributed scalable database
MIT License
752 stars 75 forks source link

Ability to specify secret key when creating a hyperdb #158

Closed aral closed 5 years ago

aral commented 5 years ago

In hypercore, you can specify secretKey in the options object passed to the constructor.

This allows you to, for example, generate the keys from a Diceware passphrase.

In order to support the same use case, you should be able to do the same with hyperdb.

aral commented 5 years ago

See discussion.

aral commented 5 years ago

To clarify, you can specify the secret key and other options when creating the initial hyperdb instance and they are used (it’s the hypercore created afterwards that you have no control over currently)

aral commented 5 years ago

Related: https://github.com/mafintosh/hyperdb/issues/137

aral commented 5 years ago

Closing this as you can pass the secret key in the options and what I ended up exploring in the PR mentioned above is actually not necessary for creating a seamless device/node authorisation process for multiwriter.