-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support loading keys from Polkadot-JS accounts. (#1661)
* Import key pair from JSON. * Get secret. * Fix JSON decryption. * Fix error handling. * Fix warnings. * Add polkadot-js links. * Fix packages. * Fix json feature. * Add copyright message. * Update Cargo.toml Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com> * Improve error handling. * Expect that provided parameters are valid. * Add Scrypt parameters comment from JS implementation. * Fix expect() message * Make from_ed25519_bytes() pub(crate) * Rename json feature to polkadot-js-compat * Add comment about polkadot-js-compat dependencies. Co-authored-by: James Wilson <james@jsdw.me> * Add decrypt_json() public method. * json.rs -> polkadot_js_compat.rs * Simplify JSON structs. * Only declare from_ed25519_bytes() with polkadot-js-compat * Move decrypt_json() to top of file. * Don't enable new crates on std feature * Avoid enabling a couple of existing optional crates on std feature --------- Co-authored-by: Jonathan Brown <jbrown@acuity.network> Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com> Co-authored-by: James Wilson <james@jsdw.me>
- Loading branch information
1 parent
a8a700c
commit c7ccc58
Showing
6 changed files
with
304 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.