We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74f2092 commit 168d7faCopy full SHA for 168d7fa
.gitignore
@@ -1 +1,2 @@
1
/target
2
+Cargo.lock
src/signature_scheme.rs
@@ -5,4 +5,5 @@
5
pub trait SignatureScheme {
6
type PublicKey;
7
type Signature;
8
+ type Input;
9
}
src/signer.rs
@@ -15,7 +15,10 @@ use crate::SignatureScheme;
15
#[cfg_attr(feature = "send-sync-storage", async_trait)]
16
pub trait Signer<K: SignatureScheme> {
17
type KeyId;
18
- async fn sign(&self, data: &[u8]) -> Result<K::Signature>;
+
19
+ async fn sign(&self, data: &K::Input) -> Result<K::Signature>;
20
21
async fn public_key(&self) -> Result<K::PublicKey>;
22
23
fn key_id(&self) -> &Self::KeyId;
24
0 commit comments