File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11/target
2+ Cargo.lock
Original file line number Diff line number Diff line change 11[package ]
22name = " secret-storage"
3- version = " 0.1 .0"
3+ version = " 0.2 .0"
44edition = " 2021"
55authors = [" IOTA Stiftung" ]
66homepage = " https://www.iota.org"
Original file line number Diff line number Diff line change 55pub trait SignatureScheme {
66 type PublicKey ;
77 type Signature ;
8+ type Input ;
89}
Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ use crate::SignatureScheme;
1515#[ cfg_attr( feature = "send-sync-storage" , async_trait) ]
1616pub trait Signer < K : SignatureScheme > {
1717 type KeyId ;
18- async fn sign ( & self , data : & [ u8 ] ) -> Result < K :: Signature > ;
18+
19+ async fn sign ( & self , data : & K :: Input ) -> Result < K :: Signature > ;
20+
1921 async fn public_key ( & self ) -> Result < K :: PublicKey > ;
22+
2023 fn key_id ( & self ) -> & Self :: KeyId ;
2124}
You can’t perform that action at this time.
0 commit comments