Skip to content

[cryptography] avoid redundant signature clone in certificate assemble#3303

Open
VolodymyrBg wants to merge 1 commit intocommonwarexyz:mainfrom
VolodymyrBg:fix/certificate-assemble-lazy-copy
Open

[cryptography] avoid redundant signature clone in certificate assemble#3303
VolodymyrBg wants to merge 1 commit intocommonwarexyz:mainfrom
VolodymyrBg:fix/certificate-assemble-lazy-copy

Conversation

@VolodymyrBg
Copy link
Contributor

assemble in the secp256r1 and ed25519 certificate schemes was decoding and cloning each attestation signature, then wrapping it back into Lazy.
That added unnecessary copy work and extra processing in a hot path.

Preserve the existing validation behavior (signature.get()?) and move Lazy signatures directly into the certificate payload.
This removes the redundant decode/clone/rewrap step in secp256r1 and ed25519 certificate assembly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant