-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hot wallet #43
Add hot wallet #43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cargo build
fails in this branch, the compiler says:
error: cannot find attribute `clap` in this scope
--> src/bip43.rs:120:7
|
120 | #[clap(skip)]
| ^^^^
error: could not compile `bp-wallet` (lib) due to 1 previous error
As a temporary fix I'm now building with all features enabled, but I'm now encountering the following error:
error: failed to select a version for `unicode-normalization`.
... required by package `idna v0.5.0`
... which satisfies dependency `idna = "^0.5.0"` (locked to 0.5.0) of package `url v2.5.0`
... which satisfies dependency `url = "^2.2"` (locked to 2.5.0) of package `reqwest v0.12.4`
... which satisfies dependency `reqwest = "^0.12.4"` (locked to 0.12.4) of package `bp-esplora v0.11.0-beta.6 (/mnt/dmc/zoe/work/bitfinex/rgb-integration-tests/bp-esplora-client)`
... which satisfies path dependency `bp-esplora` (locked to 0.11.0-beta.6) of package `rgb-integration-tests v0.1.0 (/mnt/dmc/zoe/work/bitfinex/rgb-integration-tests)`
versions that meet the requirements `^0.1.22` (locked to 0.1.23) are: 0.1.23
all possible versions conflict with previously selected packages.
previously selected package `unicode-normalization v0.1.22`
... which satisfies dependency `unicode-normalization = "=0.1.22"` of package `bip39 v2.0.0`
... which satisfies dependency `bip39 = "^2.0.0"` of package `bp-wallet v0.11.0-beta.6.1 (/mnt/dmc/zoe/work/bitfinex/rgb-integration-tests/bp-wallet)`
... which satisfies path dependency `bp-wallet` (locked to 0.11.0-beta.6.1) of package `rgb-integration-tests v0.1.0 (/mnt/dmc/zoe/work/bitfinex/rgb-integration-tests)`
failed to select a version for `unicode-normalization` which could resolve this conflict
Not sure how we should fix this, bp-wallet
depends on the bip39
crate which depends on unicode-normalization
version 0.1.22
while bp-esplora
depends on a version of reqwest
which indirectly depends on unicode-normalization
version 0.1.23
Temporarily fixed by enabling only the
P.S. All repos are on |
@dr-orlovsky Signing of the PSBT seems to work fine but then when trying to deserialize the psbt as so: let _sig_count = psbt.sign(&signer).unwrap();
let serialized = psbt.serialize(psbt.version);
let tx = bp::Tx::consensus_deserialize(serialized).unwrap(); I receive a panic: Moreover, a couple of questions:
P.S. I know privately I told you that we needed only taprot signing support but I was wrong, we also need wpkh signing support, sorry. |
I have rebased the branch on top of master which now contains fixes to the build issues. I have also added commit fixing
Since this signer signs only keys for testnet (and panics on mainnet keys). Maybe
No, I can't. It takes Xprivs by reference, since Xprivs are not But you can always write your own whatever custom signer, named
Good news: Segwit and legacy sighash business logic it's already there (and this is the hardest part of signing). Just need to do one more function in PSBT to support it - will do in the next few days. I am also working on getting the test environment where I can get actual signing happening, so I will be able to debug the panic you have reported. |
PS. I have updated |
Great, thanks! I've opened RGB-WG/rgb#217 to fix the build issues on |
Well, of course it won't work! You are deserializing PSBT as a bitcoin transaction, which is not! You need first to finalize PSBT, exporting signed transaction in such a way. |
No description provided.