@@ -19,7 +19,7 @@ pub struct VerifyingKey {
1919}
2020
2121/// Errors using an encrypted JSON keystore.
22- #[ cfg( not( target_arch = "wasm32" ) ) ]
22+ #[ cfg( not( all ( target_arch = "wasm32" , target_os = "unknown" ) ) ) ]
2323#[ derive( Debug , thiserror:: Error ) ]
2424pub enum KeystoreError {
2525 /// The file path is invalid.
@@ -59,7 +59,7 @@ impl SigningKey {
5959 }
6060
6161 /// Loads the private key from a Web3 Secret Storage Definition keystore.
62- #[ cfg( not( target_arch = "wasm32" ) ) ]
62+ #[ cfg( not( all ( target_arch = "wasm32" , target_os = "unknown" ) ) ) ]
6363 pub fn from_keystore < P > ( path : P , password : & str ) -> Result < Self , KeystoreError >
6464 where
6565 P : AsRef < std:: path:: Path > ,
@@ -70,7 +70,7 @@ impl SigningKey {
7070 }
7171
7272 /// Encrypts and saves the private key to a Web3 Secret Storage Definition JSON file.
73- #[ cfg( not( target_arch = "wasm32" ) ) ]
73+ #[ cfg( not( all ( target_arch = "wasm32" , target_os = "unknown" ) ) ) ]
7474 pub fn save_as_keystore < P > ( & self , path : P , password : & str ) -> Result < ( ) , KeystoreError >
7575 where
7676 P : AsRef < std:: path:: Path > ,
0 commit comments