add descriptor-id calc functionality
Would be nice if you could add a functionality that takes the following inputs:
- an onion address
- unix time in UTC
- number of replica ids
and calculates the descriptor-id as defined in rend-spec: https://gitweb.torproject.org/torspec.git/tree/rend-spec.txt#n227
I have not found such a functionality in https://stem.torproject.org/api.html#utilities
background: https://lists.torproject.org/pipermail/tor-relays/2017-February/012026.html https://lists.torproject.org/pipermail/tor-relays/2017-February/012027.html
go implementation:
https://github.com/nogoegst/onionutil/commit/538356c9398dbb1ac3560832abfa16a8ab442b42 https://gist.github.com/nogoegst/895dde228496e04f409fc6d160a5de5a