1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

transaction: Fix Decred multisig

This commit is contained in:
Saleem Rashid 2017-12-20 20:38:36 +00:00 committed by Pavol Rusnak
parent e7703a16fe
commit f0875285b2

View File

@ -360,7 +360,10 @@ uint32_t serialize_script_sig(const uint8_t *signature, uint32_t signature_len,
uint32_t serialize_script_multisig(const CoinInfo *coin, const MultisigRedeemScriptType *multisig, uint8_t sighash, uint8_t *out)
{
uint32_t r = 0;
out[r] = 0x00; r++;
if (!coin->decred) {
// Decred fixed the off-by-one bug
out[r] = 0x00; r++;
}
for (uint32_t i = 0; i < multisig->signatures_count; i++) {
if (multisig->signatures[i].size == 0) {
continue;