File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -466,14 +466,11 @@ def _sign_taproot_input(
466466 # byte_key = bytes.fromhex(negated_key)
467467 byte_key = self .key .to_string ()
468468
469- # deterministic signing nonce is random and RFC6979-like
470- # it is the hash of the tx_digest and private key
471- # TODO not identical to Bitcoin Core's signature, rand_aux
472- # needs to change if we want identical signatures!
469+ # a value in rand_aux will make the signatures different from bitcoin core
473470 # if rand_aux is None:
474471 # rand_aux = hashlib.sha256(tx_digest + byte_key).digest()
475472
476- # Currently bitcoin core is passing 32 bytes data as randam aux
473+ # Currently bitcoin core is just passing 32 bytes data as randam aux
477474 # https://github.com/bitcoin/bitcoin/blob/master/src/script/sign.cpp#L88
478475 rand_aux = bytes (32 )
479476
You can’t perform that action at this time.
0 commit comments