mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-07 10:56:49 +00:00
a note about what's happening with proxyForInterface
This commit is contained in:
parent
a208502e18
commit
3a8432713f
@ -260,6 +260,10 @@ class HashedLeaseInfo(proxyForInterface(ILeaseInfo, "_lease_info")): # type: ign
|
||||
_lease_info = attr.ib()
|
||||
_hash = attr.ib()
|
||||
|
||||
# proxyForInterface will take care of forwarding all methods on ILeaseInfo
|
||||
# to `_lease_info`. Here we override a few of those methods to adjust
|
||||
# their behavior to make them suitable for use with hashed secrets.
|
||||
|
||||
def is_renew_secret(self, candidate_secret):
|
||||
"""
|
||||
Hash the candidate secret and compare the result to the stored hashed
|
||||
|
Loading…
x
Reference in New Issue
Block a user