tx · GAdbm5Ffpk3qVG8wskPvFyQYL3LxpshzXdpF2DiCFapw

3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL:  -0.01400000 Waves

2019.08.28 12:59 [650904] smart account 3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL > SELF 0.00000000 Waves

{ "type": 13, "id": "GAdbm5Ffpk3qVG8wskPvFyQYL3LxpshzXdpF2DiCFapw", "fee": 1400000, "feeAssetId": null, "timestamp": 1566986362563, "version": 1, "sender": "3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL", "senderPublicKey": "BRFZFVsnc2b87hEHPEVNzWUtayFELMnWmDiPuVUFkfZ3", "proofs": [ "3iLu5DNM899qHrE2Wz3rkRnJgUxRQa9NDmg2dbA6tLobGaCFMWcGvVDSBv8BnfBmHaLVRekpA6sNtV1SnWPHBhps" ], "script": "base64:AwQAAAAHUHViS2V5MQEAAAAgaQxxSAhSITOlMYdvwKcfK7u/x0yzOg/68EH0ax0QlWUEAAAAB1B1YktleTIBAAAAILb58FcZXTIbjEshMW6ayDB2XcNop87YatlbtNE8j6N0BAAAAARzaWcxAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAB1B1YktleTEAAAAAAAAAAAEAAAAAAAAAAAAEAAAABHNpZzIDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAHUHViS2V5MgAAAAAAAAAAAQAAAAAAAAAAAAkAAGYAAAACCQAAZAAAAAIFAAAABHNpZzEFAAAABHNpZzIAAAAAAAAAAADO+UOI", "chainId": 84, "height": 650904, "spentComplexity": 0 } View: original | compacted Prev: CMmZnfSN7WZR9jTMvPqxca6fFegkm6KoREW4GM6KnEAM Next: FoJaQvst6g7EsVL4DAW8ToUEYpNEkmT4BpL3MmF3Sc1u Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
2-{-# SCRIPT_TYPE ACCOUNT #-}
3-{-# CONTENT_TYPE DAPP #-}
4-
5-
6-@Callable(i)
7-func test () = {
8- let result = if (if (sigVerify(base58'message1', base58'sig', base58'pub'))
9- then true
10- else sigVerify(base58'message11', base58'sig', base58'pub'))
11- then true
12- else sigVerify(base58'message111', base58'sig', base58'pub')
13- throw(toString(result))
14- }
15-
16-
17-
18-@Callable(i)
19-func toBase58 (msg) = {
20- let result = toBase58String(toBytes(msg))
21- throw(result)
22- }
23-
24-
25-
26-@Callable(i)
27-func fromBase58 (msg) = {
28- let result = toUtf8String(fromBase58String(msg))
29- throw(result)
30- }
31-
32-
33-
34-@Callable(i)
35-func sha256Hash (msg) = {
36- let result = toBase16String(sha256(toBytes(msg)))
37- throw(result)
38- }
39-
40-
41-
42-@Callable(i)
43-func lastBlockInfo () = {
44- let result = ((((((((toString(lastBlock.height) + ", ") + toString(lastBlock.generator)) + ", ") + toString(lastBlock.baseTarget)) + ", ") + toBase58String(lastBlock.generationSignature)) + ", ") + toString(lastBlock.timestamp))
45- throw(result)
46- }
47-
48-
49-@Verifier(tx)
50-func verify () = true
51-
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let PubKey1 = base58'854p8BYzrj6yBPRPmfQur3oF1Rjc1AJ548qRp5FT5kDa'
4+let PubKey2 = base58'DKGFPozLrsiR8NM4NJzqQaBYC8NyGYjuw2hDYicQVjco'
5+let sig1 = if (sigVerify(tx.bodyBytes, tx.proofs[0], PubKey1))
6+ then 1
7+ else 0
8+let sig2 = if (sigVerify(tx.bodyBytes, tx.proofs[1], PubKey2))
9+ then 1
10+ else 0
11+((sig1 + sig2) > 0)

github/deemru/w8io/169f3d6 
38.12 ms