karask / python-bitcoin-utils

Library to interact with the Bitcoin network. Ideal for low-level learning and experimenting.
MIT License
262 stars 99 forks source link

Adding annex to signature hash #84

Closed vking45 closed 2 months ago

vking45 commented 2 months ago

In the traditional Schnorr signature scheme, the verification process typically involves verifying the correctness of the signature with respect to the message and the public key of the signer. The annex value itself may not be directly involved in the verification process, as it is often considered as additional data that does not affect the validity of the signature.

@karask do we need to consider annex in the verification process ?

karask commented 2 months ago

If I remember correctly annex is not used yet. When it is used then it will be part of the digest to sign. I have left this implementation for later since I wasn't sure of the use cases that it applies.

Not sure if I answered your question :)

vking45 commented 2 months ago

You sort of answered it, for now I think we should leave annex out of the signatures, I will get back to this after gathering enough credible information about implementation which includes annexes.