()
| 139 | |
| 140 | #[test] |
| 141 | fn test_comm_commit() { |
| 142 | let comm = Comm::new(Address::hash(b"secret"), Address::hash(b"payload")); |
| 143 | let addr = comm.commit(); |
| 144 | // Commit should be deterministic |
| 145 | let addr2 = comm.commit(); |
| 146 | assert_eq!(addr, addr2); |
| 147 | } |
| 148 | } |