Commit f697cc7
committed
5524934 Add a unit test for `sha3` (rustaceanrob)
5fa8a5d Add the SHA3-256 hash function (rustaceanrob)
Pull request description:
My first commit message motivates this change. The brief explanation is Tor nodes are advertised by ED25519 public key, but are often discoverable as `.onion` addresses. To go from public key to onion address, one must take `SHA3(".onion checksum" | PUBKEY | VERSION)` for a checksum. I will leave the rest for the commit message, as well as all reference material.
ACKs for top commit:
tcharding:
ACK 5524934
apoelstra:
ACK 5524934; successfully ran local tests
Tree-SHA512: 36f4fdc58bf4a87370a4f3623c3c0d83f414e7e3acccb063e59abe5556b43d5f0dfbe977db3bc88948ee4f65f8b28eef13ebd35ba6a9114fa1ed15ef2fd7eb28
4 files changed
+852
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| 157 | + | |
| 158 | + | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| |||
0 commit comments