Removing unused signing test module
This commit is contained in:
@@ -6,8 +6,6 @@ pub mod fixtures;
|
||||
pub mod messages;
|
||||
#[cfg(test)]
|
||||
pub mod queries;
|
||||
#[cfg(test)]
|
||||
pub mod signing;
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod test_helpers {
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
// use ed25519_dalek::{Keypair, PublicKey, Signature, Signer};
|
||||
|
||||
// use rand::rngs::OsRng;
|
||||
|
||||
// /// A test helper which signs a piece of text with a supplied private key
|
||||
// /// This is test-only code, not meant for use inside the smart contract.
|
||||
// /// It allows us to sign things so we can test that verification works inside
|
||||
// /// the smart contract.
|
||||
// pub(crate) fn sign(text: &str) -> (Signature, PublicKey) {
|
||||
// let mut csprng = OsRng {};
|
||||
// let keypair: Keypair = Keypair::generate(&mut csprng);
|
||||
// let signature: Signature = keypair.sign(text.as_bytes());
|
||||
// (signature, keypair.public)
|
||||
// }
|
||||
Reference in New Issue
Block a user