-OPTPARSE.add_subcommand(
- 'issue', cmd_issue,
- '[-H HASHFN] THRESH/COUNT [SECRET-FILE]',
- """\
-Issue shares of a secret. The secret (as a binary lump) is read from
-SECRET-FILE, or standard input if SECRET-FILE is omitted. COUNT + 1 lines
-are written to standard output: the first line contains the sharing
-parameters, and does not need to be kept especially secret (though it
-contains a hash of the secret, so it compromises the unconditional security
-of the secret sharing scheme); the remaining lines are the shares, one per
-line. All of the lines are plain text.""",
- [OPT.make_option('-H', '--hash-function', type = 'string',
- action = 'store', dest = 'hashfn', default = 'sha256',
- help = 'Hash function for verifying the share.')])
-