Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duniter/duniter-keypair
Official module providing a keypair to the Duniter node.
https://github.com/duniter/duniter-keypair
duniter keypair module
Last synced: 16 days ago
JSON representation
Official module providing a keypair to the Duniter node.
- Host: GitHub
- URL: https://github.com/duniter/duniter-keypair
- Owner: duniter
- License: agpl-3.0
- Created: 2017-01-13T09:14:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T07:56:46.000Z (over 7 years ago)
- Last Synced: 2024-08-08T23:12:37.592Z (5 months ago)
- Topics: duniter, keypair, module
- Language: JavaScript
- Size: 161 KB
- Stars: 3
- Watchers: 8
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
duniter-keypair
===============A module providing the cryptographic keypair required by the Duniter_ node.
Features
--------Provide a cryptographic keypair (Ed25519) using scrypt_ derivation mechanism from a salt and a passphrase.
Usage
-----.. code:: bash
duniter config --salt abc --passwd def
This will *store* in Duniter configuration file a keypair derived from ``abc`` and ``def`` strings:.. code:: json
{
"pair": {
"pub": "G2CBgZBPLe6FSFUgpx2Jf1Aqsgta6iib3vmDRA1yLiqU",
"sec": "58LDg8QLmF5pv6Dn9h7X4yFKfMTdP8fdAiWVcyDoTRJu454fwRihCLULH4MW37zncsg4ruoTGJPZneWk22QmG1w4"
}
}CLI options
-----------This module provide the following options:
``--salt``
A string to use along with ```--passwd``` option to derive from with scrypt.
``--passwd``
A string to use along with ```--salt``` option to derive from with scrypt.
``--keyprompt``
Instead of giving salt and password on program call, this option will prompt you the values from the command line at runtime. You will have to *type* them with your fingers.
The derivated keypair **won't be stored on filesystem** but only be used in memory. If you wan't to use this keypair again, you will have to give to answer the prompt again as well.
``--keyfile``
Same behavior as ``--keyprompt``, but the salt and password are given by a file instead of a prompt.
.. _Duniter: https://github.com/duniter/duniter
.. _scrypt: https://en.wikipedia.org/wiki/Scrypt