Renamed sha operations to sound less crazy

This commit is contained in:
Dave
2025-06-12 16:25:49 -04:00
parent 365cfd7b01
commit b933f8d6fc
3 changed files with 6 additions and 6 deletions

View File

@@ -33,12 +33,12 @@ pub fn fake_generic_transaction_json(from: String) -> Value {
})
}
pub fn shappy(op: SignedOp) -> String {
pub fn sha_op(op: SignedOp) -> String {
let b = serde_json::to_string(&op).unwrap().into_bytes();
sha256::digest(b).to_string()
}
pub fn shassy(text: String) -> String {
pub fn sha_string(text: String) -> String {
let b = text.into_bytes();
sha256::digest(b).to_string()
}