Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(crypto): do not panic if the passed Ed25519Sha512 public key is of invalid length #4650

Merged

Conversation

DCNick3
Copy link
Contributor

@DCNick3 DCNick3 commented May 27, 2024

Description

Change the conversion of unsized slice to array reference to be infallible and form a better error message.

This prevents a panic during parity_scale_cli's type probing

Linked issue

Closes #4649

Checklist

  • make CI pass

VAmuzing
VAmuzing previously approved these changes May 27, 2024
@mversic mversic force-pushed the fix-iroha_crypto-pk-parse-panic branch from 8084904 to 27ec95a Compare May 28, 2024 09:07
@mversic mversic merged commit f41b080 into hyperledger-iroha:main May 28, 2024
9 of 10 checks passed
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.

iroha_crypto panic
3 participants