pub use self::{sign::*, signed::*, utils::*};
pub(crate) mod sign;
pub(crate) mod signed;
pub(crate) mod utils {
use crate::transactions::Transaction;
use scsys::prelude::ring::signature::{Ed25519KeyPair, Signature};
pub fn sign(t: &Transaction, key: &Ed25519KeyPair) -> Signature {
let serialized: Vec<u8> = serde_json::to_vec(t).unwrap();
key.sign(&serialized)
}
}