Comments (3)
You are right, will take a look at it
from bitcoinlib.
This issue is addressed in commit 33dd52d
However hash_types other than SIGHASH_ALL are not supported at the moment. You can create transactions with other hash types but signing is not possible. I will transform this issue in a 'feature request'.
from bitcoinlib.
It is actually pretty easy to fix. Do not pass hash_type to sign function, the one that comes from keys.py file, just get the signature and append your hash_type to your signature in the sign function that belongs to Transaction object. You would probably need to fix all the other places where 01 is expected to be appended to the signature.
from bitcoinlib.
Related Issues (20)
- Error parsing bitcoin testnet transaction HOT 1
- Asynchronous Version? HOT 1
- Error in transaction parsing: Incorrect pubkeyhash length HOT 8
- Send BTC
- getting error: "no such column: transaction_inputs.witnesses" HOT 5
- Error creating wallet from wif HOT 1
- I am encountering an issue with retrieving UTXO and balance values. Please help. HOT 1
- Error in transaction (sign and send): Please help. HOT 4
- Payment gateway for my marketplace
- Return failed transaction
- Getting error "non-mandatory-script-verify-flag (Witness program hash mismatch)" when trying to send raw signed transaction HOT 2
- local bitcoind provider, getting error "No wallet is loaded."
- Invalid Addresses? HOT 1
- bitcoinlib.scripts.ScriptError: Expected a sequence of 69 bytes, got 70 HOT 3
- Add a Electrum rivate server service
- When update bitcoinlib version, can't use previous database
- Can't use Wallet scan() and utxos_update() functions at version 0.7.0b1 because of sql errors HOT 1
- Call to RFC6979 needs another argument added
- Wallet.scan() datetime timezone issue while reading transactions from Cache HOT 1
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 bitcoinlib.