-
Notifications
You must be signed in to change notification settings - Fork 179
Random Numbers
Kulpreet Singh edited this page Aug 21, 2023
·
14 revisions
With the exception of cert-new, any BX command that requires a random number obtains that value as an argument. This places the responsibility of ensuring random number strength on end-users and also helps them understand the potential for problems.
The
cert-new
command uses platform random number generation due to its reliance on the underlying Curve ZMQ implementation.
The seed command was provided (prior to version 3.8.0) as a convenience for demonstrative purposes only
$ bx help seed
Usage: echo [user entropy] [-h] [--bit_length value] [--config value]
Info: Generate a pseudorandom seed.
Options (named):
-b [--bit_length] The length of the seed in bits. Must be divisible by
8 and must not be less than 128, defaults to 192.
-c [--config] The path to the configuration settings file.
-h [--help] Get a description and instructions for this command.
Example usage:
$ bx seed -b 256
e4d28a5972ce0785477f39f58e424c5ef643b26894c50f8e024601f87736b8fe
BX utilizes libbitcoin's deterministic ECDSA and as such requires no seed for signing.
Users | Developers | License | Copyright © 2011-2024 libbitcoin developers
- Home
- Build BX
- General Information
- Developer Information
- Configuration Settings
- Tutorials
- Meta Commands
- Wallet Commands
- Key Encryption Commands
- Stealth Commands
- Messaging Commands
- Transaction Commands
- Online Commands
- Encoding Commands
- Hash Commands
- Math Commands