-
- Downloads
Separate hidden service decryption from constructor
Moving hidden service description from the constructor into a method for a couple reasons... 1. Wherever possible we lazy rather than eagerly evaluate descriptor content. We do not know upfront what fields our user will want, so best to avoid doing unnecessarily decryption (which is particularly cpu intensive) unless our user indicates that they want this content. 2. We cannot modify constructor signatures without plumbing arguments through several other methods. Not necessarily a no-go, but decryption requires an onion_address whereas construction does not so separating this into its own method sidesteps that headache.
Please register or sign in to comment