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

feat: ensure that seed phrase must produce a 64 byte seed #915

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

krpeacock
Copy link
Contributor

Description

Throws an error if the seed returned by mnemonicToSeedSync is not 64 bytes long.

I could not find an example seed that produces the behavior, but added tests that ensure that invalid mnemonics are handled correctly

How Has This Been Tested?

New unit tests

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@krpeacock krpeacock requested a review from a team as a code owner August 6, 2024 20:14
@krpeacock krpeacock changed the title Kai/assert secp256k1 seed length feat: ensure that seed phrase must produce a 64 byte seed Aug 6, 2024
Copy link
Contributor

github-actions bot commented Aug 6, 2024

size-limit report 📦

Path Size
@dfinity/agent 85.63 KB (0%)
@dfinity/candid 13.58 KB (0%)
@dfinity/principal 4.97 KB (0%)
@dfinity/auth-client 60.3 KB (0%)
@dfinity/assets 80.8 KB (0%)
@dfinity/identity 57.51 KB (0%)
@dfinity/identity-secp256k1 130.62 KB (+0.02% 🔺)

@krpeacock krpeacock merged commit 5a21dae into main Aug 7, 2024
16 checks passed
@krpeacock krpeacock deleted the kai/assert-secp256k1-seed-length branch August 7, 2024 15:41
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.

2 participants