From 9ddb1b92806c9483acfd3c4f651d5377b17c8686 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 10 Oct 2018 14:45:59 +0200 Subject: [PATCH] src/apps/common: update coininfo.py.mako --- src/apps/common/coininfo.py.mako | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apps/common/coininfo.py.mako b/src/apps/common/coininfo.py.mako index 75f4e3276..6f6d496d0 100644 --- a/src/apps/common/coininfo.py.mako +++ b/src/apps/common/coininfo.py.mako @@ -1,6 +1,7 @@ # generated from coininfo.py.mako # do not edit manually! from trezor.crypto.base58 import blake256_32, groestl512d_32, sha256d_32 +from trezor.crypto.scripts import blake256_ripemd160_digest, sha256_ripemd160_digest class CoinInfo: @@ -48,12 +49,15 @@ class CoinInfo: if curve_name == "secp256k1-groestl": self.b58_hash = groestl512d_32 self.sign_hash_double = False + self.script_hash = sha256_ripemd160_digest elif curve_name == "secp256k1-decred": self.b58_hash = blake256_32 self.sign_hash_double = False + self.script_hash = blake256_ripemd160_digest else: self.b58_hash = sha256d_32 self.sign_hash_double = True + self.script_hash = sha256_ripemd160_digest # fmt: off