NonceCommitment returns the byte commitment for the given nonce id and expiration.
(id Hash, expms uint64)
| 136 | // NonceCommitment returns the byte commitment |
| 137 | // for the given nonce id and expiration. |
| 138 | func NonceCommitment(id Hash, expms uint64) []byte { |
| 139 | b := make([]byte, 40) |
| 140 | copy(b[:32], id.Bytes()) |
| 141 | binary.LittleEndian.PutUint64(b[32:], expms) |
| 142 | return b |
| 143 | } |