diff --git a/common/src/transaction.rs b/common/src/transaction.rs index e5056f5..cb86661 100644 --- a/common/src/transaction.rs +++ b/common/src/transaction.rs @@ -151,6 +151,7 @@ impl ActionData { } impl Transaction { + /// Computes and returns the SHA-256 hash of the JSON-serialized representation of `self`. pub fn hash(&self) -> TreeHashType { let raw_data = serde_json::to_vec(&self).unwrap(); let mut hasher = sha2::Sha256::new();