Commit 1c2eee0
committed
Implement String() function for Hash
We need a `String()` function to serialize Hash automatically in the log
messages to a string. By default it will convert the Hash to a hex in
the InternalByteOrder.
This change required the previous `String` function to be renamed to
`Hex`.1 parent fa62f49 commit 1c2eee0
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 | | |
65 | | - | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
| |||
0 commit comments