modified: mmgen/addr.py
modified: mmgen/bitcoin.py modified: mmgen/config.py modified: mmgen/utils.py
This commit is contained in:
parent
1da4504373
commit
7d4c8bd040
4 changed files with 3 additions and 8 deletions
|
|
@ -180,7 +180,6 @@ def write_addr_data_to_file(seed, data, start, end, opts):
|
|||
if 'outdir' in opts:
|
||||
outfile = "%s/%s" % (opts['outdir'], outfile)
|
||||
|
||||
# print outfile; sys.exit(3)
|
||||
write_to_file(outfile,data)
|
||||
|
||||
dtype = "Address" if 'print_addresses_only' in opts else "Key"
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ def numtowif(numpriv):
|
|||
|
||||
|
||||
# The following are mmgen internal (non-bitcoin) b58 functions
|
||||
#
|
||||
|
||||
# Drop-in replacements for b64encode() and b64decode():
|
||||
# (well, not exactly: they yield numeric but not bytewise equivalence)
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ salt_len = 16
|
|||
hash_preset = '3'
|
||||
hash_presets = {
|
||||
# Scrypt params:
|
||||
# ID N p r
|
||||
# ID N p r
|
||||
# N is a power of two
|
||||
'1': [12, 8, 1],
|
||||
'2': [13, 8, 4],
|
||||
|
|
|
|||
|
|
@ -194,7 +194,6 @@ def confirm_or_exit(message, question):
|
|||
|
||||
def set_if_unset_and_typeconvert(opts,item):
|
||||
|
||||
# ('usr_randlen',usr_randlen,'int'),
|
||||
for opt,var,dtype in item:
|
||||
if dtype == 'int': f,s = int,"an integer"
|
||||
elif dtype == 'str': f,s = str,"a string"
|
||||
|
|
@ -311,7 +310,7 @@ def _get_seed_from_brain_passphrase(words,opts):
|
|||
seed_len,hash_preset = _get_from_brain_opt_params(opts)
|
||||
if debug: print "Brainwallet l = %s, p = %s" % (seed_len,hash_preset)
|
||||
msg_r("Hashing brainwallet data. Please wait...")
|
||||
# Use buflen arg to scrypt.hash() to get seed of desired length
|
||||
# Use buflen arg of scrypt.hash() to get seed of desired length
|
||||
seed = _scrypt_hash_passphrase(bp, "", hash_preset, buflen=seed_len/8)
|
||||
msg("Done")
|
||||
return seed
|
||||
|
|
@ -557,9 +556,6 @@ def _check_chksum_6(chk,val,desc,infile):
|
|||
msg("%s checksum passed: %s" % (desc.capitalize(),chk))
|
||||
|
||||
|
||||
#def bin_pad(bindata,length):
|
||||
# return unhexlify(hexlify(bindata).zfill(length*2))
|
||||
|
||||
def get_data_from_wallet(infile,opts):
|
||||
|
||||
msg("Getting {} wallet data from file: {}".format(proj_name,infile))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue