From: Brian Warner Date: Mon, 19 May 2008 21:24:41 +0000 (-0700) Subject: debug dump-share: print size of encprivkey and signature too X-Git-Tag: allmydata-tahoe-1.1.0~123 X-Git-Url: https://git.rkrishnan.org/specifications/banana.xhtml?a=commitdiff_plain;h=b2f8c22fb8be292a219f43838f4f133120249af6;p=tahoe-lafs%2Ftahoe-lafs.git debug dump-share: print size of encprivkey and signature too --- diff --git a/src/allmydata/scripts/debug.py b/src/allmydata/scripts/debug.py index 8f64b882..da6a2ced 100644 --- 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