Comments (4)
Yeah, everything you say is true. :-( I will make sure this gets fixed one way or another before the next release -- I'm rewriting some stuff around it anyway. Thanks!
from elements.
@sipa As I recall, you objected strongly to the approach I originally used for signing values, which was to add the value to the CTxIn. Unfortunately it's now seeming even more like that is going to be needed if we want to be able to sign the values of all inputs we're hashing over, not just the one we're currently signing for. We could definitely try to pass them all in when signing, but it's not clear they'll be as readily available.
Alternatively we could just not sign the values of the other inputs (perhaps that's what you had in mind.) But especially since we're moving towards flexibility on which inputs/outputs get signed, it would be nice not to have to skip that. (We could, I suppose, only sign the current input's value IF we are signing in default "sign-all" mode, and require the values of any other to-be-signed inputs to be directly supplied if signing in bitmask mode.)
Thoughts?
from elements.
Just hash the value for the being-consumed output after you've hashed all the inputs.
There's no reason to hash the value of the other outputs anyway; you only care that this one doesn't change, and the other outputs will get committed by the other inputs' signatures.
from elements.
This seems like pre-segwit discussions... closing
from elements.
Related Issues (20)
- Green wallet seed import can't compatible with sideswap wallet HOT 3
- Elements/Liquidv1 package for StartOS HOT 1
- How to use with bitcoinlib-js HOT 7
- Message signing only works with legacy addresses HOT 4
- Block proof invalid after block 431 HOT 16
- issueasset: issuance is always blinded HOT 2
- RPC example or tutorial opcodes enabled by liquid HOT 1
- Write and sign custom transaction code HOT 2
- Can´t mint tokens HOT 1
- Can't enable coin control features HOT 5
- Given claim_script does not match the given Bitcoin transaction. HOT 9
- signmessage HOT 1
- Wallet migration fails with confidential transactions HOT 8
- wallet managed by elements-cli receives tx with tokens but doesn't process them (not in the locally parsed TX, not in the balance) HOT 2
- Received funds appear in listreceivedbyaddress, but are not taken into account for the wallet balance and cannot be transferred
- Support for Jade hardware wallet HOT 3
- Confidential peg-in transaction HOT 11
- Sending transactions with 0.01 instead of 0.1 sats/vbyte
- `bad optional access` error at startup HOT 5
- fuzz crash in coins.h
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elements.