From 562f1d71883d1daa0dd5f438d25986fb18465800 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 27 Sep 2020 14:06:19 +0300 Subject: BIP155: Mention SHA3-256 explicitly --- bip-0155.mediawiki | 1 + 1 file changed, 1 insertion(+) (limited to 'bip-0155.mediawiki') 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 Tor v3 addresses MUST be sent with the TORV3 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. -- cgit v1.2.3 From 6ef71b344c51aebe1dab5ac47f87d8f926462a65 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 27 Sep 2020 14:07:57 +0300 Subject: BIP155: Small text improvements --- bip-0155.mediawiki | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bip-0155.mediawiki') diff --git a/bip-0155.mediawiki b/bip-0155.mediawiki index 3868760..92ff191 100644 --- a/bip-0155.mediawiki +++ b/bip-0155.mediawiki @@ -152,7 +152,7 @@ The reference implementation is available at (to be done) ==Appendix A: Tor v2 address encoding== -The new message introduces a separate network ID for TORV2. +The new message introduces a separate network ID for TORV2. Clients MUST send Tor hidden service addresses with this network ID, with the 80-bit hidden service ID in the address field. This is the same as the representation in the legacy addr message, minus the 6 byte prefix of the OnionCat wrapping. @@ -166,8 +166,8 @@ onion_address = base32(PUBKEY | CHECKSUM | VERSION) + ".onion" CHECKSUM = H(".onion checksum" | PUBKEY | VERSION)[:2] where: - - PUBKEY is the 32 bytes ed25519 master pubkey of the hidden service. - - VERSION is an one byte version field (default value '\x03') + - PUBKEY is the 32 bytes ed25519 master pubkey of the hidden service + - VERSION is a 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 -- cgit v1.2.3