mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-18 19:31:04 +00:00
tools: fix bug in keyctl introduced by last commit
This commit is contained in:
parent
706ddda1a7
commit
11245a82ea
@ -126,6 +126,7 @@ def sign(index, filename, global_commit, seckey):
|
|||||||
@click.argument('global_commit')
|
@click.argument('global_commit')
|
||||||
@click.argument('signatures', nargs=-1)
|
@click.argument('signatures', nargs=-1)
|
||||||
def global_sign(index, filename, global_commit, signatures):
|
def global_sign(index, filename, global_commit, signatures):
|
||||||
|
index = indexmap[index]
|
||||||
data = open(filename, 'rb').read()
|
data = open(filename, 'rb').read()
|
||||||
data = header_to_sign(index, data)
|
data = header_to_sign(index, data)
|
||||||
digest = pyblake2.blake2s(data).digest()
|
digest = pyblake2.blake2s(data).digest()
|
||||||
|
Loading…
Reference in New Issue
Block a user