btclib icon indicating copy to clipboard operation
btclib copied to clipboard

Valid taproot signature may not must has length of 64

Open timqi opened this issue 1 year ago • 1 comments

Describe the bug It seems not right to check signature of taproot is valid by assert length of it equals 64: https://github.com/btclib-org/btclib/blob/da0cfc146545c1ec220901094c98e32690f255af/btclib/psbt/psbt_utils.py#L307

To Reproduce There is an example on how to make a valid taproot signature which length is not 64: https://github.com/bitcoinjs/bitcoinjs-lib/issues/1934

Environment (please complete the following information):

  • OS: ubuntu
  • Python version: 3.10.13
  • btclib version: da0cfc146545c1ec220901094c98e32690f255af master 2023.12.12

timqi avatar Dec 11 '23 17:12 timqi

Will it support sign psbt from library?

timqi avatar Dec 11 '23 17:12 timqi