Mark Friedenbach [ARCHIVE] on Nostr: š Original date posted:2017-09-22 š Original message:There is no harm in the ...
š
Original date posted:2017-09-22
š Original message:There is no harm in the value being a maximum off by a few bytes.
> On Sep 22, 2017, at 2:54 PM, Sergio Demian Lerner <sergio.d.lerner at gmail.com> wrote:
>
> If the variable size increase is only a few bytes, then three possibilities arise:
>
> - one should allow signatures to be zero padded (to reach the maximum size) and abandon strict DER encoding
>
> - one should allow spare witness stack elements (to pad the size to match the maximum size) and remove the cleanstack rule. But this is tricky because empty stack elements must be counted as 1 byte.
>
> - signers must loop the generation of signatures until the signature generated is of its maximum size.
š Original message:There is no harm in the value being a maximum off by a few bytes.
> On Sep 22, 2017, at 2:54 PM, Sergio Demian Lerner <sergio.d.lerner at gmail.com> wrote:
>
> If the variable size increase is only a few bytes, then three possibilities arise:
>
> - one should allow signatures to be zero padded (to reach the maximum size) and abandon strict DER encoding
>
> - one should allow spare witness stack elements (to pad the size to match the maximum size) and remove the cleanstack rule. But this is tricky because empty stack elements must be counted as 1 byte.
>
> - signers must loop the generation of signatures until the signature generated is of its maximum size.