Skip to content

Commit

Permalink
Merge pull request #735 from kulpreet/obsolete-seed-command
Browse files Browse the repository at this point in the history
Remove entropy from geenrate.xml
  • Loading branch information
evoskuil authored Aug 19, 2023
2 parents b37570c + d05c339 commit 0ccbf50
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 384 deletions.
1 change: 0 additions & 1 deletion data/bx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ _bx()
electrum-decode
electrum-new
electrum-to-seed
entropy
fetch-balance
fetch-block
fetch-block-hashes
Expand Down
235 changes: 0 additions & 235 deletions include/bitcoin/explorer/commands/entropy.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion include/bitcoin/explorer/generated.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
#include <bitcoin/explorer/commands/electrum-decode.hpp>
#include <bitcoin/explorer/commands/electrum-new.hpp>
#include <bitcoin/explorer/commands/electrum-to-seed.hpp>
#include <bitcoin/explorer/commands/entropy.hpp>
#include <bitcoin/explorer/commands/fetch-balance.hpp>
#include <bitcoin/explorer/commands/fetch-block.hpp>
#include <bitcoin/explorer/commands/fetch-block-hashes.hpp>
Expand Down Expand Up @@ -114,6 +113,7 @@
#include <bitcoin/explorer/commands/script-to-key.hpp>
#include <bitcoin/explorer/commands/script-to-witness.hpp>
#include <bitcoin/explorer/commands/seed.hpp>
#include <bitcoin/explorer/commands/seed.hpp>
#include <bitcoin/explorer/commands/send-tx.hpp>
#include <bitcoin/explorer/commands/settings.hpp>
#include <bitcoin/explorer/commands/sha160.hpp>
Expand Down
5 changes: 0 additions & 5 deletions model/generate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,6 @@
<define name="BX_ELECTRUM_TO_SEED_PASSPHRASE_ICU" value="This is not an ICU build, so the passphrase is limited to ascii characters." />
</command>

<command symbol="entropy" formerly="seed" output="base16" category="WALLET" description="Generate pseudorandom entropy.">
<option name="bits" type="uint16_t" default="192" description="The length of the entropy in bits. The value must be at least 128 and is rounded up to a whole byte, defaults to 192." />
<define name="BX_ENTROPY_SHORT_BIT_LENGTH" value="The entropy bit length is not at least 128." />
</command>

<command symbol="fetch-balance" output="balance_row" category="ONLINE" network="true" description="Get the balance in satoshi of a payment address. Requires a Libbitcoin server connection.">
<option name="format" type="encoding" description="The output format. Options are 'info', 'json' and 'xml', defaults to 'info'." />
<argument name="hash" stdin="true" type="hash256" description="The Base16 payments search key. If not specified the key is read from STDIN."/>
Expand Down
49 changes: 0 additions & 49 deletions src/commands/entropy.cpp

This file was deleted.

8 changes: 3 additions & 5 deletions src/generated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ void broadcast(const function<void(shared_ptr<command>)> func)
func(make_shared<electrum_decode>());
func(make_shared<electrum_new>());
func(make_shared<electrum_to_seed>());
func(make_shared<entropy>());
func(make_shared<fetch_balance>());
func(make_shared<fetch_block>());
func(make_shared<fetch_block_hashes>());
Expand Down Expand Up @@ -127,6 +126,7 @@ void broadcast(const function<void(shared_ptr<command>)> func)
func(make_shared<script_to_key>());
func(make_shared<script_to_witness>());
func(make_shared<seed>());
func(make_shared<seed>());
func(make_shared<send_tx>());
func(make_shared<settings>());
func(make_shared<sha160>());
Expand Down Expand Up @@ -248,8 +248,6 @@ shared_ptr<command> find(const string& symbol)
return make_shared<electrum_new>();
if (symbol == electrum_to_seed::symbol())
return make_shared<electrum_to_seed>();
if (symbol == entropy::symbol())
return make_shared<entropy>();
if (symbol == fetch_balance::symbol())
return make_shared<fetch_balance>();
if (symbol == fetch_block::symbol())
Expand Down Expand Up @@ -340,6 +338,8 @@ shared_ptr<command> find(const string& symbol)
return make_shared<script_to_witness>();
if (symbol == seed::symbol())
return make_shared<seed>();
if (symbol == seed::symbol())
return make_shared<seed>();
if (symbol == send_tx::symbol())
return make_shared<send_tx>();
if (symbol == settings::symbol())
Expand Down Expand Up @@ -426,8 +426,6 @@ std::string formerly(const string& former)
return ec_to_ek::symbol();
if (former == ec_to_public::formerly())
return ec_to_public::symbol();
if (former == entropy::formerly())
return entropy::symbol();
if (former == fetch_height::formerly())
return fetch_height::symbol();
if (former == fetch_public_key::formerly())
Expand Down
Loading

0 comments on commit 0ccbf50

Please sign in to comment.