What is Nostr?
Mark Friedenbach [ARCHIVE] /
npub1r3sā€¦8d0u
2023-06-07 18:05:40
in reply to nevent1qā€¦f7jw

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.
Author Public Key
npub1r3san9v5njl6798hvauyu9ntm6r9c7u8s0t65wls58gpfdcvqp5sa48d0u