/ursa_key_utils

Primary LanguageRustApache License 2.0Apache-2.0

ursa_key_utils

Standalone Key Generator for Iroha Accounts and Peers.

Usage

Standalone

Download binary or build with cargo build --release.

ursa_key_utils 0.1
Soramitsu
ursa_key_utils is a command line arguments wrapper around `Ursa`.

USAGE:
    ursa_key_utils [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --secret <secret_key>    Sets a secret key. Should be used separately from `seed`.
        --seed <seed>            Sets a seed for random number generator. Should be used separately from `secret`.

Functionality

Use cases

  • Standalone key generator for nodes and peers.
  • As a library inside Iroha 2:
    • generate peers IDs when default hasn't been provided.

Concerns

Strong Random Number Generator

One thing to keep in mind is that when generating keys, they need to be done using a cryptographically secure random number generator.

Ursa provides an ability to generate pseudo random numbers via BigNumber::rand which internally is OpenSSL BigNumRef::rand.