From 6d6794ea71aa84521ed3740d4b619835deac8911 Mon Sep 17 00:00:00 2001 From: honeywest <50997103+honeywest@users.noreply.github.com> Date: Tue, 5 Jan 2021 19:32:35 +0800 Subject: [PATCH] Feat sp keystore (#7826) * delete not used VRFTranscriptValue * specification variable naming --- substrate/primitives/keystore/src/lib.rs | 6 +++--- substrate/primitives/keystore/src/vrf.rs | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/substrate/primitives/keystore/src/lib.rs b/substrate/primitives/keystore/src/lib.rs index 25f8cb4965..f42f6dd712 100644 --- a/substrate/primitives/keystore/src/lib.rs +++ b/substrate/primitives/keystore/src/lib.rs @@ -96,9 +96,9 @@ pub trait CryptoStore: Send + Sync { /// `Err` if there's some sort of weird filesystem error, but should generally be `Ok`. async fn insert_unknown( &self, - _key_type: KeyTypeId, - _suri: &str, - _public: &[u8] + id: KeyTypeId, + suri: &str, + public: &[u8] ) -> Result<(), ()>; /// Find intersection between provided keys and supported keys diff --git a/substrate/primitives/keystore/src/vrf.rs b/substrate/primitives/keystore/src/vrf.rs index 759c8263ce..463a565f9d 100644 --- a/substrate/primitives/keystore/src/vrf.rs +++ b/substrate/primitives/keystore/src/vrf.rs @@ -70,7 +70,6 @@ pub fn make_transcript(data: VRFTranscriptData) -> Transcript { #[cfg(test)] mod tests { use super::*; - use crate::vrf::VRFTranscriptValue; use rand::RngCore; use rand_chacha::{ rand_core::SeedableRng,