tx · CniRTs3SvuqDFC2RQqJebmA8h8DfvfHyzSSw8qcC8pdZ

3NCAHkQMZsVNJh9u15MjBDHjY8efFKNArX8:  -0.00500000 Waves

2022.10.04 06:26 [2257052] smart account 3NCAHkQMZsVNJh9u15MjBDHjY8efFKNArX8 > SELF 0.00000000 Waves

{ "type": 13, "id": "CniRTs3SvuqDFC2RQqJebmA8h8DfvfHyzSSw8qcC8pdZ", "fee": 500000, "feeAssetId": null, "timestamp": 1664854011354, "version": 2, "chainId": 84, "sender": "3NCAHkQMZsVNJh9u15MjBDHjY8efFKNArX8", "senderPublicKey": "83Eyw5Bn6vkLTM9RkbXMAx8DtYNoLRqmeba4WAMvYhzK", "proofs": [ "4Vt8XyFzRx8x9b67iSruB1VZ87vmfmydQqD6DsXh34jRsyjwLQL9qiEUHJCwh31tLaaVKxxVLejDzuh33KDBEDS9" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAMAAAAACVJTQVBVQkxJQwIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbGVtcjk1SjFqWlVzN2NKbXJtbWxONHpvN1lWc0JKekllSmRrOExERkdoVUtTSTZ5ZnMyMFp5SmUyMSs2R0p3Tm5LVVUxVXlvYzE3d1NXTUtrclowTU12WUUrWjVBaWlqdkJLNHNTSjNJZ0dqZFU4L05oSThDQkR1MEYreFJNOXEzVEIzTExiRHk1c0JkdWRZZkhmc1VPYytNVHZBRDY5bjI3ZGIyUmg4K3laUU10dWJrdVRRTnA4OXNwaEhRYUxHeVFGYU5sSy9OYTNsRng2b21xemFhMWdqb3BsVXI2cnZZS2dmQUlDVUIzelZtSlNoaUVpN3c3UjBoV2xOUkQzcWNaakNVT05TcEZvNFdiemtuR09henc4NEIrSU1JRm5JcFhXelFMOFJYMHZOY2ZzQnZMRGZNNmsyWmFjcXd5TUthTExxaWdkQmlHZEo3VyswbE9TdE9RSURBUUFCAAAAAAJycAkAAlsAAAABBQAAAAlSU0FQVUJMSUMBAAAAAXIAAAACAAAAAnJzAAAABmdhbWVJZAQAAAADcnN2CQAKKQAAAAQFAAAABlNIQTI1NgkAAZsAAAABBQAAAAZnYW1lSWQFAAAAAnJzBQAAAAJycAMJAQAAAAEhAAAAAQUAAAADcnN2CQAAAgAAAAECAAAAFUludmFsaWQgUlNBIHNpZ25hdHVyZQQAAAAEcmFuZAkAAGoAAAACCQAEsQAAAAEJAAH3AAAAAQUAAAACcnMAAAAAAAAAAAYJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADcnN2CQABpQAAAAEFAAAAA3JzdgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAEcmFuZAUAAAAEcmFuZAUAAAADbmlsAAAAAQAAAAFpAQAAAARjYWxsAAAAAgAAAAJycwAAAAZnYW1lSWQEAAAAA3JzYgkAAlsAAAABBQAAAAJycwkBAAAAAXIAAAACBQAAAANyc2IFAAAABmdhbWVJZAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5F4o+Sw==", "height": 2257052, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 71cmmXN1pefbkDisjhADGg3w3LGFBRv3PkyFPaGBZL5q Next: BvxL3ijsESDHw3VZoGYPGazhmBVajJnC41oSdZFgkrR8 Diff:
OldNewDifferences
1717
1818
1919 @Callable(i)
20-func call (rs,gameId) = r(rs, gameId)
20+func call (rs,gameId) = {
21+ let rsb = fromBase64String(rs)
22+ r(rsb, gameId)
23+ }
2124
2225
2326 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let RSAPUBLIC = "base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlemr95J1jZUs7cJmrmmlN4zo7YVsBJzIeJdk8LDFGhUKSI6yfs20ZyJe21+6GJwNnKUU1Uyoc17wSWMKkrZ0MMvYE+Z5AiijvBK4sSJ3IgGjdU8/NhI8CBDu0F+xRM9q3TB3LLbDy5sBdudYfHfsUOc+MTvAD69n27db2Rh8+yZQMtubkuTQNp89sphHQaLGyQFaNlK/Na3lFx6omqzaa1gjoplUr6rvYKgfAICUB3zVmJShiEi7w7R0hWlNRD3qcZjCUONSpFo4WbzknGOazw84B+IMIFnIpXWzQL8RX0vNcfsBvLDfM6k2ZacqwyMKaLLqigdBiGdJ7W+0lOStOQIDAQAB"
55
66 let rp = fromBase64String(RSAPUBLIC)
77
88 func r (rs,gameId) = {
99 let rsv = rsaVerify_32Kb(SHA256, toBytes(gameId), rs, rp)
1010 if (!(rsv))
1111 then throw("Invalid RSA signature")
1212 else {
1313 let rand = (toInt(sha256(rs)) % 6)
1414 [StringEntry("rsv", toString(rsv)), IntegerEntry("rand", rand)]
1515 }
1616 }
1717
1818
1919 @Callable(i)
20-func call (rs,gameId) = r(rs, gameId)
20+func call (rs,gameId) = {
21+ let rsb = fromBase64String(rs)
22+ r(rsb, gameId)
23+ }
2124
2225
2326 @Verifier(tx)
2427 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2528

github/deemru/w8io/026f985 
34.06 ms