[#59] netmap: Update multi address generation routine

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-03-16 12:40:45 +03:00 committed by Alex Vanin
parent 97a5e27403
commit 9d36a33b9d

View file

@ -445,9 +445,7 @@ func multiaddress(n []common.IRNode, committee bool) []byte {
ln := 0x10 + uint8(len(sortedNodes))
result = append(result, ln) // n value = 7
result = append(result, 0x0B) // PUSHNULL
result = append(result, []byte{0x41, 0x13, 0x8D, 0xEF, 0xAF}...) // NeoCryptoCheckMultisigWithECDsaSecp256r1
result = append(result, []byte{0x41, 0x7B, 0xCE, 0x6C, 0xA5}...) // Neo.Crypto.CheckMultisig
shaHash := crypto.Sha256(result)