projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
154dca1
)
debug dump-share: print size of encprivkey and signature too
author
Brian Warner
<warner@allmydata.com>
Mon, 19 May 2008 21:24:41 +0000
(14:24 -0700)
committer
Brian Warner
<warner@allmydata.com>
Mon, 19 May 2008 21:24:41 +0000
(14:24 -0700)
src/allmydata/scripts/debug.py
patch
|
blob
|
history
diff --git
a/src/allmydata/scripts/debug.py
b/src/allmydata/scripts/debug.py
index 8f64b8826aa88e64b05c88d7de46744366911416..da6a2cedac24f49798a7b748d0aeaad391b28e69 100644
(file)
--- a/
src/allmydata/scripts/debug.py
+++ b/
src/allmydata/scripts/debug.py
@@
-175,6
+175,9
@@
def dump_SDMF_share(offset, length, config, out, err):
print >>out, " total_shares: %d" % N
print >>out, " segsize: %d" % segsize
print >>out, " datalen: %d" % datalen
+ print >>out, " enc_privkey: %d bytes" % len(enc_privkey)
+ print >>out, " pubkey: %d bytes" % len(pubkey)
+ print >>out, " signature: %d bytes" % len(signature)
share_hash_ids = ",".join(sorted([str(hid)
for hid in share_hash_chain.keys()]))
print >>out, " share_hash_chain: %s" % share_hash_ids