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

Introduce SecretStore for Substrate binary #28

Merged
merged 8 commits into from
Mar 17, 2020
Merged

Conversation

svyatonik
Copy link
Contributor

This PR introduces first SS binary in this repo: parity-secretstore-substrate. It starts key server, substrate service and connects to Substrate node that run blockchain with SecretStore module. Since there could be multiple different blockchains which use different hashes, transactions, etc, this binary is designed to be 'generic' (not as in Rust) over runtime. Everything must be configured in the runtime.rs module. The node should also expose system_accountNextIndex RPC. Right now it is configured to work with the bin/substrate-node.

Tests are yet to be added - both integration (#17 ) and module-level.

@svyatonik svyatonik requested a review from grbIzl March 17, 2020 13:44
)?,
).await.map_err(|error| format!("Failed to start substrate client: {:?}", error))?;

// TODO: use db key storage
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a next thing to fix - I'm preparing a PR that will reintroduce persistent keys storage and then will make a PR that fixes this TODO.

@svyatonik svyatonik merged commit 26d01e3 into master Mar 17, 2020
@svyatonik svyatonik deleted the substrate-binary branch March 17, 2020 14:14
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