#25277: Publish regex for v3 hidden services
 Reporter:  ageisp0lis                           |          Owner:  (none)
     Type:  enhancement                          |         Status:  new
 Priority:  Medium                               |      Milestone:
Component:  Webpages                             |        Version:  Tor:
                                                 |  unspecified
 Severity:  Normal                               |     Resolution:
 Keywords:  hidden services, v3, next-           |  Actual Points:
  generation, regex                              |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:

Comment (by pastly):

 Just dropping by to mention that not all combinations of 56-characters
 long strings of base 32 text are valid v3 onions.

 So you can know that it definitely is NOT an onion service name if it
 doesn't match a simple regex. But you can't know if it definitely IS an
 onion service name with just regex.

 Put simply, a v3 onion address is (1) a 32-byte (not bit) public key, (2)
 a checksum, and (3) a version all encoded together (in that order) in
 base32. The version is always 3 (or 'd' in base32), thus they always end
 in 'd'. In addition, the checksum must work out.


Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25277#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
tor-bugs mailing list

Reply via email to