mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 19:08:12 +00:00
tools.codegen: print nice stats at the end
This commit is contained in:
parent
dcb32d91f7
commit
10344dd864
@ -35,12 +35,14 @@ def main():
|
||||
|
||||
certs = process_certdata(r.text)
|
||||
|
||||
size = 0
|
||||
print('cert_bundle = [')
|
||||
for k, v in certs.items():
|
||||
print(' # %s' % k)
|
||||
print(' %s,' % blake2s(v).digest())
|
||||
|
||||
size += len(v)
|
||||
print(']')
|
||||
print('# certs: %d | digests size: %d | total size: %d' % (len(certs), len(certs) * 32, size))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user