tx · 3tVdCfgNmJAPapKndyFMtxE3pGSA9NMBgKXZe8RxWwmZ

3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB:  -0.01500000 Waves

2019.06.27 11:55 [560320] smart account 3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB > SELF 0.00000000 Waves

{ "type": 13, "id": "3tVdCfgNmJAPapKndyFMtxE3pGSA9NMBgKXZe8RxWwmZ", "fee": 1500000, "feeAssetId": null, "timestamp": 1561625715301, "version": 1, "sender": "3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB", "senderPublicKey": "H3q3RM4MQSLjCTYpgaitRNz8cKHhMtcwoUfc2c86cfej", "proofs": [ "4Z8Y8E855r9ceqJcnVPEF1CJg5ZdCnkd8zBTB82dsU1mCQcQJ7oyq6Ji1yhzdYdeYjBWMSsd354Y9m39Sr6qwsCt" ], "script": "base64:AAIDAAAAAAAAAAAAAAAJAAAAAAZwdWJLZXkJAAJbAAAAAQIAAADfYmFzZTY0Ok1JR2ZNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0R05BRENCaVFLQmdRRGR0UkNGcjVtZ0lSbHlVaUxBa2JhdC9COGI1SU5DKzFqR2VtTzhNQk05bUFDU3NGRVdUWTJCYXc4L3BYcWlzVUw2TVM0ZWcycDhTenRjbHhWRzVOQjl3R2FFN3A0ZGc0cWlSWFZPYUFxdkx6RGJKdG5XdmhyQlFya1pLYUExRnNXZmZnSjZzeXN3cDk0ZWtDYzA2TkxSd3k0WWhHMXZwTTJxSFptZXJDRkM5UUlEQVFBQgAAAAAEcHJpdgIAAAAsSGtLbTVqS3FENEZ5Q3ZQRlBwc0VGZWhHb2JDRjhIQW5zQTdwQWZEOHBkcjEAAAAABXR4SWQxCQABmwAAAAECAAAALDk5Z2k1dE01a1VlS1JVM0h6Z3lrcnY1dTlZVTV3b0VGY2FGNXhSejc2ajZWAAAAAARzaWduCQACWwAAAAECAAAAs2Jhc2U2NDptMHp3UDloSnZ0Nm9NWFk4UEdPMU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XRXZGtTL0F3SGZib0pMd3gxODJJOGF5bU44S0Y1cGZFSG1vMDBnVUp1bTZJZEpXQUVGMG5LNUhTOXdJREFRQUIAAAAABHR4SWQJAAJbAAAAAQIAAAA8T1RsbmFUVjBUVFZyVldWTFVsVXpTSHBuZVd0eWRqVjFPVmxWTlhkdlJVWmpZVVkxZUZKNk56WnFObFk9AAAAAAlzaWduYXR1cmUJAAJbAAAAAQIAAACseFRaTVRycU91bUsybFA0VU5pL1U3Wi9UNDFOcTFoNEF0ZmJ1b0k3NFR1b21NL0xhZklSdyt3bWxlZFczcDViVHVOWWZCQmY1K0pwQ3o1NDVTVFdDQysvWnExWGQ2ZmxCQkN6WEkxZXErNllGUDRRaXJpL1JLcXVEOXcyTzV4MERGWDJOd2ZyeHpLTGd0TWFpUXRMNm5kdDZmYXJ2b3RiSWgwWjNZdHdIK05jPQAAAAEAAAABaQEAAAAJY2hlY2tTaWduAAAAAQAAAAZudW1iZXIEAAAAAWEJAAH4AAAABAUAAAAGU0hBMjU2BQAAAAR0eElkBQAAAAlzaWduYXR1cmUFAAAACXB1YmxpY0tleQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAZudW1iZXICAAAABF9QdWIFAAAACXB1YmxpY0tleQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAZudW1iZXICAAAACF9Qcml2YXRlBQAAAApwcml2YXRlS2V5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABm51bWJlcgIAAAAFX1RYSUQFAAAABHR4SWQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAGbnVtYmVyAgAAAAdfVmVyaWZ5BQAAAAFhBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABhBrYqU=", "chainId": 84, "height": 560320, "spentComplexity": 0 } View: original | compacted Prev: G5196o2JdZ1R7ThRg6vWjMR11A6GmhrxuediFzENE41R Next: AEkz7kuBWd9bWYeRZdNvPJo7wkxSvHRGEkjQVBe5rC1p Diff:
OldNewDifferences
2121
2222 @Callable(i)
2323 func checkSign (number) = {
24- let a = if (rsaVerify(SHA256, txId, signature, publicKey))
25- then 1
26- else 2
24+ let a = rsaVerify(SHA256, txId, signature, publicKey)
2725 WriteSet([DataEntry((number + "_Pub"), publicKey), DataEntry((number + "_Private"), privateKey), DataEntry((number + "_TXID"), txId), DataEntry((number + "_Verify"), a)])
2826 }
2927
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let pubKey = fromBase64String("base64:MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDdtRCFr5mgIRlyUiLAkbat/B8b5INC+1jGemO8MBM9mACSsFEWTY2Baw8/pXqisUL6MS4eg2p8SztclxVG5NB9wGaE7p4dg4qiRXVOaAqvLzDbJtnWvhrBQrkZKaA1FsWffgJ6syswp94ekCc06NLRwy4YhG1vpM2qHZmerCFC9QIDAQAB")
55
66 let priv = "HkKm5jKqD4FyCvPFPpsEFehGobCF8HAnsA7pAfD8pdr1"
77
88 let txId1 = toBytes("99gi5tM5kUeKRU3Hzgykrv5u9YU5woEFcaF5xRz76j6V")
99
1010 let sign = fromBase64String("base64:m0zwP9hJvt6oMXY8PGO1NFzLoDOPQ6MbMmxnfqpwFzxgOYMSOk+aV7PgjzuhCramncA2SM5L1/4Ga8LlanPIKimuAYndFMLKLJ7tp3S/oW/TiqU//yWBohRsuEIFjgS3Kq/kZ3HvnmBWfFFlgVRjo3OeDs1b7XLHUHsXLKOLgyU=")
1111
1212 let RSAPUBLIC = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqlAiANSmBpDHYKP9sKgeN/l1bAb28g/tGlgDkwT5FiMN4X3pwdvdxE7mvSR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bxehVlY9TVtzQTA0NXYflmVKfotVPgZQ=="
1515
1616 let publicKey = fromBase64String("MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGV1yyjdQDx8hfbZI/8QIRnvFgDE1HyNUg2HHllrbSXxRzK62uGagkRviGZoSgB20U/kk/N0s0B5wr5sK6uhgXOssAE9bwaqvESl1JKpb+G6oz2NtqtWdkS/AwHfboJLwx182I8aymN8KF5pfEHmo00gUJum6IdJWAEF0nK5HS9wIDAQAB")
1717
1818 let txId = fromBase64String("OTlnaTV0TTVrVWVLUlUzSHpneWtydjV1OVlVNXdvRUZjYUY1eFJ6NzZqNlY=")
1919
2020 let signature = fromBase64String("xTZMTrqOumK2lP4UNi/U7Z/T41Nq1h4AtfbuoI74TuomM/LafIRw+wmledW3p5bTuNYfBBf5+JpCz545STWCC+/Zq1Xd6flBBCzXI1eq+6YFP4Qiri/RKquD9w2O5x0DFX2NwfrxzKLgtMaiQtL6ndt6farvotbIh0Z3YtwH+Nc=")
2121
2222 @Callable(i)
2323 func checkSign (number) = {
24- let a = if (rsaVerify(SHA256, txId, signature, publicKey))
25- then 1
26- else 2
24+ let a = rsaVerify(SHA256, txId, signature, publicKey)
2725 WriteSet([DataEntry((number + "_Pub"), publicKey), DataEntry((number + "_Private"), privateKey), DataEntry((number + "_TXID"), txId), DataEntry((number + "_Verify"), a)])
2826 }
2927
3028
3129 @Verifier(tx)
3230 func verify () = true
3331

github/deemru/w8io/026f985 
43.66 ms