Skip to content

Commit 5a973b0

Browse files
committed
updated comment on rand_aux for taproot signing
1 parent 36ef4bc commit 5a973b0

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

bitcoinutils/keys.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)