use wasm_bindgen_test::wasm_bindgen_test; #[test] #[wasm_bindgen_test] fn fast_sign_message() { use lunesrs::wallet::signatures::{fast_signature, validate_signature}; use lunesrs::wallet::assembly::{to_private_key, to_public_key}; let prvk = to_private_key(vec![1; 32]); let pubk = to_public_key(prvk.clone()); let message = "Lunes".as_bytes().to_vec(); let signature = fast_signature(prvk, message.clone()); assert_eq!(true, validate_signature(pubk, message, signature)); }