Skip to content

Draft: Publish pow-params line

wesleyac requested to merge wesleyac/arti:hs-host-pow-publish-params into main

Publish the pow-params line and add some infrastructure for keeping track of PoW state.

This is on top of !2642 (merged), which should be merged first.

Not included in this PR:

  • Persisting state to disk
  • Checking the PoW solves
  • Priority queue for inbound requests

Tested by running a hidden service with enable_pow set to true and running the following script:

from stem.control import Controller
from stem.descriptor.hidden_service import HiddenServiceDescriptorV3
import sys

hs_address = sys.argv[1]

with Controller.from_port() as controller:
    controller.authenticate()
    desc = controller.get_hidden_service_descriptor(hs_address)
    desc = HiddenServiceDescriptorV3.from_str(str(desc))
    print(desc.decrypt(hs_address))
Edited by wesleyac

Merge request reports

Loading