signatures icon indicating copy to clipboard operation
signatures copied to clipboard

dsa: reduce `Box<[u8]>` allocation in `SignatureEncoding::to_vec`

Open dishmaker opened this issue 9 months ago • 1 comments

Rewritten as SignatureRef

dishmaker avatar May 13 '25 11:05 dishmaker

The crypto-bigint crate has native support for der, although it's missing DecodeValue/EncodeValue impls for BoxedUint (and NonZero<BoxedUint>). They exist for Uint.

Perhaps support could be added there so there's not need for complex encoding logic in the dsa crate.

tarcieri avatar May 15 '25 17:05 tarcieri

Depends on:

  • https://github.com/RustCrypto/crypto-bigint/pull/851

dishmaker avatar Jun 23 '25 12:06 dishmaker

Closing as stale

tarcieri avatar Nov 22 '25 01:11 tarcieri