Add missing elementstx/util.py which currently only holds the
_secp256k1_library_path
variable
Fix elements RawElementsSignatureHash for SIGVERSION_BASE
use amount=None
instead of amount=-1
(with -1 RawBitcoinSignatureHash of bitcointx returns
an error)
Add elementstx.set_custom_secp256k1_path
, elementstx.get_custom_secp256k1_path
Delay initialization of secp256k1 library handle in elementsx.core.secp256k1
until any function that uses this handle is called. This allows to call
elementstx.set_custom_secp256k1_path
after all the imports are done
- Make
CTransaction.stream_deserialize
a @classmethod, as it should be - set
CT_BITS
to 52 (sync with Elements Core, PR#834) - Fix sighash calculation when transaction contains asset issuances
- Fix the number of output witnesses after blind. When last outputs were not blinded, empty witnesses were not added for them.
Potentially breaking change:
Transaction.blind()
method andblind_transaction()
function now acceptis_blind_success_strict
argument, with default valueTrue
. When it isTrue
,BlindFailure
will be returned if the number of successfully blinded outputs+issuances is not equal to the number expected (as calculated fromoutput_pubkeys
andblind_issuance_(asset|token)_keys)
. Ifis_blind_success_strict
specified asFalse
, the behavior will be as before, with no checks of number of successful blindings This change is unlikely to cause any problems, because in most cases, the caller had to check that the number of successfully blinded outputs+issuances was as expected. This only makes this more automatic.
- Fix
BlindingOrUnblindingResult.ok
: it must be a property, but @property decorator was missing. This could result inunblinding_result.ok
check to incorrectly pass in the code that uses the library. This might lead to serious bugs, and thus the new version of the library is released with the fix.
- Fixes to sync with python-bitcointx latest version
- Add type annotations and runtime instance type checks
- Bugfix:
CElementsScript.is_pegout()
could return True incorrectly when encountering empty data
- Fixes to sync with python-bitcointx latest version
Initial release