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: rework deriveAddress to have all schemes support #293

Merged
merged 3 commits into from
May 3, 2023

Conversation

TarikGul
Copy link
Member

@TarikGul TarikGul commented May 3, 2023

closes: #292

This PR aims to fix deriveAddress to ensure it can derive the Address of a given publicKey for all schemes. It adds a parameter to the function called scheme which accepts 'ed25519' | 'sr25519' | 'ecdsa' and will default to sr25519 if nothing is passed in.

@TarikGul TarikGul requested a review from a team as a code owner May 3, 2023 01:22
Copy link
Collaborator

@marshacb marshacb 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!

@TarikGul TarikGul merged commit 5b99d23 into main May 3, 2023
@TarikGul TarikGul deleted the tarik-ecdsa-derive branch May 3, 2023 20:03
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.

Bug: the function 'deriveAddress' from a public key with ecdsa
2 participants