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

Update crypto algorithm checks for account keys #461

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

tarakby
Copy link
Contributor

@tarakby tarakby commented Oct 23, 2024

closes #460

Account keys can only use:

  • ECDSA on P256 and secp256k1
  • sha2 and sha3 with 256 bits
    All other combinations should be rejected early by the transactions.

@tarakby tarakby requested a review from joshuahannan as a code owner October 23, 2024 23:42
@tarakby tarakby self-assigned this Oct 23, 2024
Copy link
Member

@joshuahannan joshuahannan left a comment

Choose a reason for hiding this comment

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

Looks good! You'll also need to update /lib/go/templates/cmd/mainifest/manifest.go to remove the weight argument from the sample arguments for the create account transaction. And then this will affect the ledger transactions, so make sure this gets pulled into the feature branch as soon as you merge it

@tarakby
Copy link
Contributor Author

tarakby commented Oct 24, 2024

Good point 👌🏼 I removed the weight argument in 7223cd9

@tarakby tarakby merged commit 35451d1 into master Oct 24, 2024
2 checks passed
@joshuahannan joshuahannan deleted the tarak/account-key-algos branch October 24, 2024 22:20
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.

Update the crypto algos during account creation
2 participants