Skip to content

Pass signature as &[u8] to avoid triggering From::from conversion#47

Merged
girazoki merged 2 commits intomoonbeam-polkadot-v0.9.29from
nish-fix-verify-panic
Nov 1, 2022
Merged

Pass signature as &[u8] to avoid triggering From::from conversion#47
girazoki merged 2 commits intomoonbeam-polkadot-v0.9.29from
nish-fix-verify-panic

Conversation

@nbaztec
Copy link
Copy Markdown

@nbaztec nbaztec commented Nov 1, 2022

This fixes a behavior bug introduced in ec0de09 where the signature was being passed as [u8; 64] triggering a From::from conversion https://github.com/RustCrypto/signatures/blob/d610ad50d3f7dac0bad9e647231bf03aabab3078/ed25519/src/lib.rs#L372 as the impl is also auto-implemented for TryFrom.

Related issue RustCrypto/signatures#563

@nbaztec nbaztec added the bug Something isn't working label Nov 1, 2022
Copy link
Copy Markdown

@notlesh notlesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. A comment about this subtle issue would help

@girazoki
Copy link
Copy Markdown

girazoki commented Nov 1, 2022

Added

@girazoki girazoki merged commit 01bd16c into moonbeam-polkadot-v0.9.29 Nov 1, 2022
@nbaztec nbaztec deleted the nish-fix-verify-panic branch November 1, 2022 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A0-pleasereview bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants