#31823: HSv3 descriptor support in stem [encoding] -------------------------------------------------+------------------------- Reporter: asn | Owner: atagar Type: defect | Status: | needs_review Priority: Medium | Milestone: Tor: | unspecified Component: Core Tor/Stem | Version: Severity: Normal | Resolution: Keywords: tor-hs scaling onionbalance | Actual Points: 2 network-team-roadmap-september tor-spec | Parent ID: #26768 | Points: 5 Reviewer: | Sponsor: -------------------------------------------------+-------------------------
Comment (by atagar): > For me, the most important part is not to change the interface Hi asn. Actually, adjusting the interface is [https://gitweb.torproject.org/user/atagar/stem.git/commit/?h=hsv3&id=a8c2a431c1c2a6f38bbf1678c05aebf0a5e217d6 exactly what I did today] but don't worry - onionbalance can still do the same. For example, here's what a descriptor with custom introduction points and random key material looks like... {{{ from stem.descriptor.hidden_service import ( HiddenServiceDescriptorV3, InnerLayer, IntroductionPointV3, ) print(HiddenServiceDescriptorV3.content( inner_layer = InnerLayer.create( introduction_points = [ IntroductionPointV3.create('1.1.1.1', 9001), IntroductionPointV3.create('2.2.2.2', 9001), IntroductionPointV3.create('3.3.3.3', 9001), ], ), )) }}} {{{ % python demo.py hs-descriptor 3 descriptor-lifetime 180 descriptor-signing-key-cert -----BEGIN ED25519 CERT----- AQgABqvHAX8wXzJY+FqoJQPXNZ8u+SQGPZ1WN/r3hUna0R2AXQnEAQAgBAAuqibl ALcKa/4nHtLZn2zKV8L4XIpkRyRm7btWPLpYN5Gseb03H5exL+I3SqfG3uNDw5QK CmPlCQUy3usouSwhO/qWgdy0//bP5kRDma5GDXXWoi3+xTKM6Jez7TGxPAU= -----END ED25519 CERT----- revision-counter 1573695064 superencrypted -----BEGIN MESSAGE----- aDJodcMjhCvz1K7JCJEAH1H24hvoZ7gZw53AhPdvpHu+5d1Ogwio4qcIXEK1pEgy QFF1fE6tnCzsk++eMa2WaKwIJYGLPoCnta78H5Ve6VoMj+Pyb5rE6wPTMTPSVm6M UjllArr7DS8YcofloDxu3iwC3JZYFt/LB6ahq6lBKeot2BD/11pNggkZrZOCLgNQ pUVyQau7K8ynagVlNNESnI3FccOBaBB4Xa5mObK2ylyiLQ08MqaImW7X2gxeZltT /C/xtiJXGm2CzkjPpBpMWm09p7/a97GEWca5e8+fhpmGrN7zjAwjYInTvQHS5AyU 7eUFg8ItrRxAiRq4fbe/zepiq2vgfj1Pt7uxC0KCTcLWpd9O/FIvcFSk27Yrtniw ... etc... -----END MESSAGE----- signature VDDXXLvgU6qjRI4zfJR3GbQuVjz98qO0LI5gsI60LtGXK2POZ4E+3YVVWuVaEkvMsZaku5qCutIcu74/WQMxCQ }}} > For the test to be proper, each introduction point should have unique keys The keys are arguments. If you want them to have unique keys we can simply drop them to do the same thing as your helper (I only the keys in the test to demonstrate how key arguments are provided). Pretty close to finishing this branch but not there yet. I'll let ya know once I'm ready for a review. -- Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31823#comment:8> Tor Bug Tracker & Wiki <https://trac.torproject.org/> The Tor Project: anonymity online
_______________________________________________ tor-bugs mailing list tor-bugs@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs