mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-01 00:45:52 +00:00
trivial: minor changes to in-line comments -- mark plaintext-hash-tree as obsolete
This commit is contained in:
parent
38bb3e464b
commit
b496eba072
@ -683,7 +683,7 @@ class CHKUploader:
|
|||||||
return d
|
return d
|
||||||
|
|
||||||
def abort(self):
|
def abort(self):
|
||||||
"""Call this is the upload must be abandoned before it completes.
|
"""Call this if the upload must be abandoned before it completes.
|
||||||
This will tell the shareholders to delete their partial shares. I
|
This will tell the shareholders to delete their partial shares. I
|
||||||
return a Deferred that fires when these messages have been acked."""
|
return a Deferred that fires when these messages have been acked."""
|
||||||
if not self._encoder:
|
if not self._encoder:
|
||||||
|
@ -1330,7 +1330,7 @@ class IEncryptedUploadable(Interface):
|
|||||||
plaintext hashes, but don't need the redundant encrypted data)."""
|
plaintext hashes, but don't need the redundant encrypted data)."""
|
||||||
|
|
||||||
def get_plaintext_hashtree_leaves(first, last, num_segments):
|
def get_plaintext_hashtree_leaves(first, last, num_segments):
|
||||||
"""Get the leaf nodes of a merkle hash tree over the plaintext
|
"""OBSOLETE; Get the leaf nodes of a merkle hash tree over the plaintext
|
||||||
segments, i.e. get the tagged hashes of the given segments. The
|
segments, i.e. get the tagged hashes of the given segments. The
|
||||||
segment size is expected to be generated by the IEncryptedUploadable
|
segment size is expected to be generated by the IEncryptedUploadable
|
||||||
before any plaintext is read or ciphertext produced, so that the
|
before any plaintext is read or ciphertext produced, so that the
|
||||||
@ -1350,7 +1350,7 @@ class IEncryptedUploadable(Interface):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def get_plaintext_hash():
|
def get_plaintext_hash():
|
||||||
"""Get the hash of the whole plaintext.
|
"""OBSOLETE; Get the hash of the whole plaintext.
|
||||||
|
|
||||||
This returns a Deferred which fires with a tagged SHA-256 hash of the
|
This returns a Deferred which fires with a tagged SHA-256 hash of the
|
||||||
whole plaintext, obtained from hashutil.plaintext_hash(data).
|
whole plaintext, obtained from hashutil.plaintext_hash(data).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user