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

entropy-protocol - polkadot-js compatible sr25519 key generation for wasm API #533

Merged
merged 6 commits into from
Nov 29, 2023

Conversation

ameba23
Copy link
Contributor

@ameba23 ameba23 commented Nov 28, 2023

This changes the how sr25519 secret keys are interpreted in entropy-protocol's wasm API.

In order to be compatible with sr25519 on polkadot-js we need to handle secret keys slightly differently than with sp-core::sr25519.

So that we can have the integration test work continue to work with the sp_keyring accounts, i've added a feature flag 'wasm-test' which will effectively use the same keypairs as before in the tests.

I've also changed the API to take a secret key rather than a seed, as this is in-line with what we've done elsewhere (eg: in x25519chacha20poly1305`).

For context see this issue: entropyxyz/x25519-chacha20poly1305#15

Copy link

vercel bot commented Nov 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
entropy-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2023 10:25pm

@ameba23 ameba23 marked this pull request as draft November 28, 2023 16:46
Copy link
Collaborator

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

LGTM

@ameba23 ameba23 merged commit 13152bf into master Nov 29, 2023
10 checks passed
@ameba23 ameba23 deleted the peg/protocol-wasm-takes-sk branch November 29, 2023 21:53
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.

3 participants