forked from chaintool/funga-eth
remove unused import and renaming pbkdf2 default params
This commit is contained in:
parent
23a94c3ba1
commit
4a4f76b19c
@ -36,7 +36,7 @@ default_scrypt_kdfparams = {
|
|||||||
'salt': os.urandom(32).hex(),
|
'salt': os.urandom(32).hex(),
|
||||||
}
|
}
|
||||||
|
|
||||||
pbkdf2_kdfparams = {
|
default_pbkdf2_kdfparams = {
|
||||||
'c': 100000,
|
'c': 100000,
|
||||||
'dklen': 32,
|
'dklen': 32,
|
||||||
'prf': 'sha256',
|
'prf': 'sha256',
|
||||||
@ -64,7 +64,7 @@ class Hashes:
|
|||||||
dklen=dklen)
|
dklen=dklen)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_pbkdf2(kdfparams=pbkdf2_kdfparams, passphrase=''):
|
def from_pbkdf2(kdfparams=default_pbkdf2_kdfparams, passphrase=''):
|
||||||
if kdfparams['prf'] == 'hmac-sha256':
|
if kdfparams['prf'] == 'hmac-sha256':
|
||||||
kdfparams['prf'].replace('hmac-sha256','sha256')
|
kdfparams['prf'].replace('hmac-sha256','sha256')
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
# external imports
|
# external imports
|
||||||
from hexathon import strip_0x, add_0x
|
from hexathon import strip_0x
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
@ -16,7 +16,7 @@ print(sys.path)
|
|||||||
from funga.eth.signer import EIP155Signer
|
from funga.eth.signer import EIP155Signer
|
||||||
from funga.eth.keystore.dict import DictKeystore
|
from funga.eth.keystore.dict import DictKeystore
|
||||||
|
|
||||||
# import dicttest as d
|
|
||||||
from funga.eth.cli.handle import SignRequestHandler
|
from funga.eth.cli.handle import SignRequestHandler
|
||||||
from funga.eth.transaction import EIP155Transaction
|
from funga.eth.transaction import EIP155Transaction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user