diff --git a/data/bx b/data/bx index 39970ca3b..81db5eb45 100644 --- a/data/bx +++ b/data/bx @@ -69,7 +69,6 @@ _bx() script-decode script-encode script-to-address - seed send-tx send-tx-node send-tx-p2p diff --git a/include/bitcoin/explorer/commands/seed.hpp b/include/bitcoin/explorer/commands/seed.hpp index d82e0f0af..b3a1b783b 100644 --- a/include/bitcoin/explorer/commands/seed.hpp +++ b/include/bitcoin/explorer/commands/seed.hpp @@ -60,8 +60,8 @@ namespace commands { /** * Various localizable strings. */ -#define BX_SEED_BIT_LENGTH_UNSUPPORTED \ - "The seed size is not supported." +#define BX_SEED_OBSOLETE \ + "This command is obsolete. Use an alternative source of entropy for your key generation needs." /** * Class to implement the seed command. @@ -111,6 +111,15 @@ class BCX_API seed return "Generate a pseudorandom seed."; } + /** + * Declare whether the command has been obsoleted. + * @return True if the command is obsolete + */ + virtual bool obsolete() + { + return true; + } + /** * Load program argument definitions. * A value of -1 indicates that the number of instances is unlimited. @@ -150,11 +159,6 @@ class BCX_API seed BX_CONFIG_VARIABLE ",c", value(), "The path to the configuration settings file." - ) - ( - "bit_length,b", - value(&option_.bit_length)->default_value(192), - "The length of the seed in bits. Must be divisible by 8 and must not be less than 128, defaults to 192." ); return options; @@ -179,23 +183,6 @@ class BCX_API seed /* Properties */ - /** - * Get the value of the bit_length option. - */ - virtual uint16_t& get_bit_length_option() - { - return option_.bit_length; - } - - /** - * Set the value of the bit_length option. - */ - virtual void set_bit_length_option( - const uint16_t& value) - { - option_.bit_length = value; - } - private: /** @@ -219,11 +206,9 @@ class BCX_API seed struct option { option() - : bit_length() { } - uint16_t bit_length; } option_; }; diff --git a/model/generate.xml b/model/generate.xml index 6f27ad844..5bb35c978 100644 --- a/model/generate.xml +++ b/model/generate.xml @@ -477,9 +477,8 @@ - -