mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-22 20:42:03 +00:00
src/apps/common: update coininfo.py.mako
This commit is contained in:
parent
4a26870fcc
commit
9ddb1b9280
@ -1,6 +1,7 @@
|
|||||||
# generated from coininfo.py.mako
|
# generated from coininfo.py.mako
|
||||||
# do not edit manually!
|
# do not edit manually!
|
||||||
from trezor.crypto.base58 import blake256_32, groestl512d_32, sha256d_32
|
from trezor.crypto.base58 import blake256_32, groestl512d_32, sha256d_32
|
||||||
|
from trezor.crypto.scripts import blake256_ripemd160_digest, sha256_ripemd160_digest
|
||||||
|
|
||||||
|
|
||||||
class CoinInfo:
|
class CoinInfo:
|
||||||
@ -48,12 +49,15 @@ class CoinInfo:
|
|||||||
if curve_name == "secp256k1-groestl":
|
if curve_name == "secp256k1-groestl":
|
||||||
self.b58_hash = groestl512d_32
|
self.b58_hash = groestl512d_32
|
||||||
self.sign_hash_double = False
|
self.sign_hash_double = False
|
||||||
|
self.script_hash = sha256_ripemd160_digest
|
||||||
elif curve_name == "secp256k1-decred":
|
elif curve_name == "secp256k1-decred":
|
||||||
self.b58_hash = blake256_32
|
self.b58_hash = blake256_32
|
||||||
self.sign_hash_double = False
|
self.sign_hash_double = False
|
||||||
|
self.script_hash = blake256_ripemd160_digest
|
||||||
else:
|
else:
|
||||||
self.b58_hash = sha256d_32
|
self.b58_hash = sha256d_32
|
||||||
self.sign_hash_double = True
|
self.sign_hash_double = True
|
||||||
|
self.script_hash = sha256_ripemd160_digest
|
||||||
|
|
||||||
|
|
||||||
# fmt: off
|
# fmt: off
|
||||||
|
Loading…
Reference in New Issue
Block a user