Renamed sha operations to sound less crazy
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user