forked from TrueCloudLab/frostfs-contract
[#59] netmap: Update multi address generation routine
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
97a5e27403
commit
9d36a33b9d
1 changed files with 1 additions and 3 deletions
|
@ -445,9 +445,7 @@ func multiaddress(n []common.IRNode, committee bool) []byte {
|
||||||
ln := 0x10 + uint8(len(sortedNodes))
|
ln := 0x10 + uint8(len(sortedNodes))
|
||||||
result = append(result, ln) // n value = 7
|
result = append(result, ln) // n value = 7
|
||||||
|
|
||||||
result = append(result, 0x0B) // PUSHNULL
|
result = append(result, []byte{0x41, 0x7B, 0xCE, 0x6C, 0xA5}...) // Neo.Crypto.CheckMultisig
|
||||||
|
|
||||||
result = append(result, []byte{0x41, 0x13, 0x8D, 0xEF, 0xAF}...) // NeoCryptoCheckMultisigWithECDsaSecp256r1
|
|
||||||
|
|
||||||
shaHash := crypto.Sha256(result)
|
shaHash := crypto.Sha256(result)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue