rpc: remove NewWitnessAddress RPC

In this commit, we remove the unnecessary NewWitnessAddress RPC. We do
this as, at the moment, we only expose the wallet to generate witness
addresses. Now that the RPC has been removed, its REST endpoint has been
assigned to the NewAddress RPC, which should be the de facto way of
having the wallet generate any type of supported address.

Fixes #1986.
This commit is contained in:
Wilmer Paulino
2018-09-27 15:54:59 -07:00
parent b341dea373
commit bdcc847a44
6 changed files with 526 additions and 585 deletions

View File

@@ -37,10 +37,8 @@ description):
(many outputs).
* NewAddress
* Returns a new address, the following address types are supported:
pay-to-public-key-hash (p2pkh), pay-to-witness-key-hash (p2wkh), and
nested-pay-to-witness-key-hash (np2wkh).
* NewWitnessAddress
* Returns a new witness address (np2wkh) under control of the local wallet.
pay-to-witness-key-hash (p2wkh) and nested-pay-to-witness-key-hash
(np2wkh).
* SignMessage
* Signs a message with the node's identity key and returns a
zbase32 encoded signature.