[tor-bugs] #15004 [Stem]: Hidden service descriptor parsing
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Feb 23 20:28:08 UTC 2015
#15004: Hidden service descriptor parsing
-----------------------------+--------------------
Reporter: atagar | Owner: atagar
Type: enhancement | Status: new
Priority: major | Milestone:
Component: Stem | Version:
Resolution: | Keywords:
Actual Points: | Parent ID:
Points: |
-----------------------------+--------------------
Comment (by dgoulet):
Replying to [ticket:15004 atagar]:
> Months ago asn asked us for this but I said 'not until tor provides a
way of actually... well, getting it'. With #14847 this is now becoming a
thing so it's time stem provided a parser.
>
> David, would you mind adding an example to this ticket for what a hs
descriptor in the wild looks like? I'll use it for stem's unit test.
Here it is, a duckduckgo hs descriptor (3g2upl4pq6kufc4m.onion)
The "introduction-points" part is base64 encoded.
{{{
rendezvous-service-descriptor y3olqqblqw2gbh6phimfuiroechjjafa
version 2
permanent-key
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBAJ/SzzgrXPxTlFrKVhXh3buCWv2QfcNgncUpDpKouLn3AtPH5Ocys0jE
aZSKdvaiQ62md2gOwj4x61cFNdi05tdQjS+2thHKEm/KsB9BGLSLBNJYY356bupg
I5gQozM65ENelfxYlysBjJ52xSDBd8C4f/p9umdzaaaCmzXG/nhzAgMBAAE=
-----END RSA PUBLIC KEY-----
secret-id-part e24kgecavwsznj7gpbktqsiwgvngsf4e
publication-time 2015-02-23 20:00:00
protocol-versions 2,3
introduction-points
-----BEGIN MESSAGE-----
aW50cm9kdWN0aW9uLXBvaW50IGl3a2k3N3h0YnZwNnF2ZWRmcndkem5jeHMzY2th
eWV1CmlwLWFkZHJlc3MgMTc4LjYyLjIyMi4xMjkKb25pb24tcG9ydCA0NDMKb25p
b24ta2V5Ci0tLS0tQkVHSU4gUlNBIFBVQkxJQyBLRVktLS0tLQpNSUdKQW9HQkFL
OTRCRVlJSFo0S2RFa2V5UGhiTENwUlc1RVNnKzJXUFFock00eXVLWUd1cTh3Rldn
dW1aWVI5CmsvV0EvL0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HZyUU1jR1ZhaU9XSAo4dzBITVpDeGd3QWNDQzUxdzVW
d2l1bXhFSk5CVmNac094MG16TjFDbG95KzkwcTBsRlhMQWdNQkFBRT0KLS0tLS1F
TkQgUlNBIFBVQkxJQyBLRVktLS0tLQoK
-----END MESSAGE-----
signature
-----BEGIN SIGNATURE-----
VKMmsDIUUFOrpqvcQroIZjDZTKxqNs88a4M9Te8cR/ZvS7H2nffv6iQs0tom5X4D
4Dy4iZiy+pwYxdHfaOxmdpgMCRvgPb34MExWr5YemH0QuGtnlp5Wxr8GYaAQVuZX
cZjQLW0juUYCbgIGdxVEBnlEt2rgBSM9+1oR7EAfV1U=
-----END SIGNATURE-----
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15004#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list