Sjors
commented at 2:23 pm on March 18, 2021:
member
In addition, this PR enables external signer testing on CI.
This PR moves the ExternalSigner class and RPC methods out of the wallet module.
The enumeratesigners RPC can be used without a wallet since #21417. With additional modifications external signers could be used without a wallet in general, e.g. via signrawtransaction.
The signerdisplayaddress RPC is ranamed to walletdisplayaddress because it requires wallet context. A future displayaddress RPC call without wallet context could take a descriptor argument.
This commit fixes a rpc_help.py failure when configured with --disable-wallet.
DrahtBot added the label
Build system
on Mar 18, 2021
DrahtBot added the label
Docs
on Mar 18, 2021
DrahtBot added the label
RPC/REST/ZMQ
on Mar 18, 2021
DrahtBot added the label
Wallet
on Mar 18, 2021
Sjors force-pushed
on Mar 18, 2021
DrahtBot
commented at 11:05 pm on March 18, 2021:
member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
#21538 (fuzz: Add fuzzing syscall sandbox: detect use of unexpected syscalls when fuzzing (“syscall sanitizer”) by practicalswift)
#21378 (Convert taproot to flag day activation by ajtowns)
#21207 (MOVEONLY: CWallet transaction code out of wallet.cpp/.h by ryanofsky)
#21206 (refactor: Make CWalletTx sync state type-safe by ryanofsky)
#20744 ([POC] Use std::filesystem. Remove Boost Filesystem & System by fanquake)
#20586 (Fix Windows build with –enable-werror by hebasto)
#20487 (Add syscall sandboxing using seccomp-bpf (Linux secure computing mode) by practicalswift)
#19602 (wallet: Migrate legacy wallets to descriptor wallets by achow101)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Sjors force-pushed
on Mar 19, 2021
fanquake requested review from achow101
on Mar 19, 2021
fanquake requested review from instagibbs
on Mar 19, 2021
in
src/rpc/external_signer.cpp:7
in
cafc7d210doutdated
in
src/wallet/rpcwallet.cpp:4531
in
a1991f44faoutdated
4526@@ -4527,36 +4527,36 @@ static RPCHelpMan upgradewallet()
4527 #ifdef ENABLE_EXTERNAL_SIGNER
4528 static RPCHelpMan walletdisplayaddress()
4529 {
4530- return RPCHelpMan{
4531- "walletdisplayaddress",
4532- "Display address on an external signer for verification.\n",
4533+ return RPCHelpMan{"walletdisplayaddress",
4534+ "\nDisplay address on an external signer for verification.\n",
MarcoFalke
commented at 6:45 pm on March 22, 2021:
nit: I think the leading and trailing newlines should be the responsibility of RPCHelpMan. Also, they wouldn’t make sense if the help is exported as json.
in
src/wallet/rpcwallet.cpp:4538
in
a1991f44faoutdated
MarcoFalke
commented at 6:46 pm on March 22, 2021:
nit: For new code it would be good to use properly clang-formatted code. Any reason to make a change to move away from clang-formatted code?
fanquake
commented at 5:26 am on March 23, 2021:
member
@Sjors I discussed with @MarcoFalke, and given there isn’t currently a correct RPCHelpMan formatting style, can you drop the formatting/whitespace changes? We’ll just add the [&]s, the examples etc. Sorry for the bum steer.
Sjors force-pushed
on Mar 26, 2021
Sjors
commented at 9:28 am on March 26, 2021:
member
DrahtBot added the label
Needs rebase
on Apr 8, 2021
Sjors force-pushed
on Apr 8, 2021
DrahtBot removed the label
Needs rebase
on Apr 8, 2021
Move external signer out of wallet module
This commit moves the ExternalSigner class and RPC methods out of the wallet module.
The enumeratesigners RPC can be used without a wallet since #21417.
With additional modifications external signers could be used without a wallet in general, e.g. via signrawtransaction.
The signerdisplayaddress RPC is ranamed to walletdisplayaddress because it requires wallet context.
A future displayaddress RPC call without wallet context could take a descriptor argument.
This commit fixes a rpc_help.py failure when configured with --disable-wallet.
b54b2e7b1a
ci: use --enable-external-signer instead of --with-boost-process
An earlier version of #16546 used both --with-boost-process and --enable-external-signer, which was simplified to only use the latter. However I forgot to update CI, so the external signer tests were not run.
b0db187e5b
rpc: add help for enumeratesigners and walletdisplayaddress88d4d5ff2f
Sjors force-pushed
on Apr 8, 2021
fanquake deleted a comment
on Apr 9, 2021
ryanofsky approved
ryanofsky
commented at 6:18 pm on April 9, 2021:
member
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2025-06-18 00:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me