summaryrefslogtreecommitdiff
path: root/bip-0155.mediawiki
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-27 14:06:19 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-27 14:06:19 +0300
commit562f1d71883d1daa0dd5f438d25986fb18465800 (patch)
treeb4e7f4e57bb258b6051b8c958fcb86cde10dcf2a /bip-0155.mediawiki
parent60bfc4bb53dbff6795f7c02a10c9e9e31907be26 (diff)
downloadbips-562f1d71883d1daa0dd5f438d25986fb18465800.tar.xz
BIP155: Mention SHA3-256 explicitly
Diffstat (limited to 'bip-0155.mediawiki')
-rw-r--r--bip-0155.mediawiki1
1 files changed, 1 insertions, 0 deletions
diff --git a/bip-0155.mediawiki b/bip-0155.mediawiki
index 1364a3f..3868760 100644
--- a/bip-0155.mediawiki
+++ b/bip-0155.mediawiki
@@ -170,6 +170,7 @@ onion_address = base32(PUBKEY | CHECKSUM | VERSION) + ".onion"
- VERSION is an one byte version field (default value '\x03')
- ".onion checksum" is a constant string
- CHECKSUM is truncated to two bytes before inserting it in onion_address
+ - H() is the SHA3-256 cryptographic hash function
</pre>
Tor v3 addresses MUST be sent with the <code>TORV3</code> network ID, with the 32-byte PUBKEY part in the address field. As VERSION will always be '\x03' in the case of v3 addresses, this is enough to reconstruct the onion address.