mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 18:57:57 +00:00
d7fcf5dc9d
* Rijig to Ristretto * Rebuild wasm * adds compatibility test with the wasm module * Add Ed25519-BIP39 support * Bump subkey version * Update CLI output * New keys. * Standard phrase/password/path keys. * Subkey uses S-URI for secrets * Move everything to use new HDKD crypto. * Test fixes * Ignore old test vector. * fix the ^^ old test vector. * Fix tests * Test fixes * Cleanups * Fix broken key conversion logic in grandpa CC @rphmeier * Remove legacy Keyring usage * Traitify `Pair` * Replace Ed25519AuthorityId with ed25519::Public * Expunge Ed25519AuthorityId type! * Replace Sr25519AuthorityId with sr25519::Public * Remove dodgy crypto type-punning conversions * Fix some tests * Avoid trait * Deduplicate DeriveJunction string decode * Remove cruft code * Fix test * Minor removals * Build fix * Subkey supports sign and verify * Inspect works for public key URIs * Remove more crypto type-punning * Fix typo * Fix tests
37 lines
1.3 KiB
Rust
37 lines
1.3 KiB
Rust
// Copyright 2017-2019 Parity Technologies (UK) Ltd.
|
|
// This file is part of Substrate.
|
|
|
|
// Substrate is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Substrate is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Support code for the runtime. A set of test accounts.
|
|
|
|
/// Test account crypto for sr25519.
|
|
pub mod sr25519;
|
|
|
|
/// Test account crypto for ed25519.
|
|
pub mod ed25519;
|
|
|
|
/// Convenience export: Sr25519's Keyring is exposed as `AccountKeyring`,
|
|
/// since it tends to be used for accounts.
|
|
pub use sr25519::Keyring as AccountKeyring;
|
|
|
|
/// Convenience export: Ed25519's Keyring is exposed as `AuthorityKeyring`,
|
|
/// since it tends to be used for authorities (session keys &c.).
|
|
pub use ed25519::Keyring as AuthorityKeyring;
|
|
|
|
pub mod test {
|
|
/// The keyring for use with accounts when using the test runtime.
|
|
pub use super::ed25519::Keyring as AccountKeyring;
|
|
}
|