Skip to content

Commit

Permalink
BIP155: Small text improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Sep 27, 2020
1 parent 562f1d7 commit 6ef71b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bip-0155.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>TORV2</code>.
The new message introduces a separate network ID for <code>TORV2</code>.

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 <code>addr</code> message, minus the 6 byte prefix of the OnionCat wrapping.

Expand All @@ -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
Expand Down

0 comments on commit 6ef71b3

Please sign in to comment.