tx · GJGbtjH6hRHAfvQdxb2Ug1wHxhQeYwHGSaQVB4ZXDRKK

3MvasVWNoyFQTenxtVJkcLRfcPshL6RiHB6:  -0.01000000 Waves

2022.01.10 16:50 [1872903] smart account 3MvasVWNoyFQTenxtVJkcLRfcPshL6RiHB6 > SELF 0.00000000 Waves

{ "type": 13, "id": "GJGbtjH6hRHAfvQdxb2Ug1wHxhQeYwHGSaQVB4ZXDRKK", "fee": 1000000, "feeAssetId": null, "timestamp": 1641822652462, "version": 2, "chainId": 84, "sender": "3MvasVWNoyFQTenxtVJkcLRfcPshL6RiHB6", "senderPublicKey": "HxtsXAKo7k2EM5vvWiqRJHGy6cSc8pxWDEpQJhVYJXsa", "proofs": [ "4ZBEgw1aSPNMvi959j8w8p3RgxdEtiPHpX4AKAVAgFSNY5LCYwWKabGFnL7xEbGorwA4kLFddSgihiCWXZd8wck4" ], "script": "base64:AAIEAAAAAAAAANwIAhoQCgFhEgthbGljZVB1YktleRoOCgFiEglib2JQdWJLZXkaDwoBYxIKZXJpY1B1YktleRoSCgFkEg1tdWx0aVNpZ0NvdW50Gg4KAWUSCWNoZWNrU2lnbhoHCgFmEgJ0eBoLCgFnEgZwdWJLZXkaFQoBaBIQZ2V0TXVsdGlTaWdWYWx1ZRoNCgFpEghhbGljZVNpZxoLCgFqEgZib2JTaWcaDAoBaxIHZXJpY1NpZxoLCgFsEgZ2ZXJpZnkaDAoBbRIHJG1hdGNoMBoGCgFuEgF0GgcKAW8SAnRkAAAABgAAAAABYQEAAAAg/AyWCccGbFQEbAH/hOzU/yaLPVbFrpTRou7V+5mu0kUAAAAAAWIBAAAAIPSxityAqF1o8NbAdYX5XBEpUlDy+lbYSuxhjio4jvETAAAAAAFjAQAAACByZp1UTTKFFX9H3nd0f2yNR2rdOVfV/zkMtuOrYVWONQAAAAABZAAAAAAAAAAAAQEAAAABZQAAAAIAAAABZgAAAAFnAwMDCQAB9AAAAAMIBQAAAAFmAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABZgAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAWcGCQAB9AAAAAMIBQAAAAFmAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABZgAAAAZwcm9vZnMAAAAAAAAAAAEFAAAAAWcGCQAB9AAAAAMIBQAAAAFmAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABZgAAAAZwcm9vZnMAAAAAAAAAAAIFAAAAAWcAAAAAAAAAAAEAAAAAAAAAAAABAAAAAWgAAAABAAAAAWYEAAAAAWkJAQAAAAFlAAAAAgUAAAABZgUAAAABYQQAAAABagkBAAAAAWUAAAACBQAAAAFmBQAAAAFiBAAAAAFrCQEAAAABZQAAAAIFAAAAAWYFAAAAAWMJAABkAAAAAgkAAGQAAAACBQAAAAFpBQAAAAFqBQAAAAFrAAAAAAAAAAEAAAABZgEAAAABbAAAAAAEAAAAAW0FAAAAAWYDCQAAAQAAAAIFAAAAAW0CAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFuBQAAAAFtCQAB9AAAAAMIBQAAAAFuAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABbgAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAWEDCQAAAQAAAAIFAAAAAW0CAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAW8FAAAAAW0JAABnAAAAAgkBAAAAAWgAAAABBQAAAAFvBQAAAAFkB5cbBcY=", "height": 1872903, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: DSojgty6i8h5DFaA3pDRqWbUC5qA4iH5ddWJeBeLmEkA Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let alicePubKey = base58'HxtsXAKo7k2EM5vvWiqRJHGy6cSc8pxWDEpQJhVYJXsa'
5+
6+let bobPubKey = base58'HUBVsBcuExqVSbV3mSVhpdKfgihF2nwdtpGmpVLRwxEN'
7+
8+let ericPubKey = base58'8haEN2a7ZmkzawLmnr5rFX14X1oHi5kjt8NQUDNjSDLG'
9+
10+let multiSigCount = 1
11+
12+func checkSign (tx,pubKey) = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], pubKey))
13+ then true
14+ else sigVerify(tx.bodyBytes, tx.proofs[1], pubKey))
15+ then true
16+ else sigVerify(tx.bodyBytes, tx.proofs[2], pubKey))
17+ then 1
18+ else 0
19+
20+
21+func getMultiSigValue (tx) = {
22+ let aliceSig = checkSign(tx, alicePubKey)
23+ let bobSig = checkSign(tx, bobPubKey)
24+ let ericSig = checkSign(tx, ericPubKey)
25+ ((aliceSig + bobSig) + ericSig)
26+ }
27+
28+
29+
30+@Verifier(tx)
31+func verify () = match tx {
32+ case t: SetScriptTransaction =>
33+ sigVerify(t.bodyBytes, t.proofs[0], alicePubKey)
34+ case td: TransferTransaction =>
35+ (getMultiSigValue(td) >= multiSigCount)
36+ case _ =>
37+ false
38+}
39+

github/deemru/w8io/169f3d6 
17.73 ms