tx · 2S2cdgK2kkCJyYHbMnX8KPdWWUhfWetsSvwifVYBK8MM

3N4pvyW25MGvt2xF4ur55NuGbpKvmp3YXfW:  -0.01500000 Waves

2019.07.15 23:28 [587381] smart account 3N4pvyW25MGvt2xF4ur55NuGbpKvmp3YXfW > SELF 0.00000000 Waves

{ "type": 13, "id": "2S2cdgK2kkCJyYHbMnX8KPdWWUhfWetsSvwifVYBK8MM", "fee": 1500000, "feeAssetId": null, "timestamp": 1563222522613, "version": 1, "sender": "3N4pvyW25MGvt2xF4ur55NuGbpKvmp3YXfW", "senderPublicKey": "6Vs6C6CLyS6vKCB2u3VMq5chJQa4k6XHUizPRetDYMGd", "proofs": [ "47qewr5cDvrsWV3vJehRjC8nbgk2NPoK2UmhwTUjDdYd15M8BPizow5KFMvUhon9CwpJVyAXGnHe5u1Vgxc9PftE" ], "script": "base64:AAIDAAAAAAAAAAAAAAACAAAAAAlSU0FLZXk1MTIJAAJbAAAAAQIAAACHYmFzZTY0Ok1Gd3dEUVlKS29aSWh2Y05BUUVCQlFBRFN3QXdTQUpCQU1adUxvTEhWNWZjdXFQL0tqSG9RNlZzWlNrU1dGMkF3UkFMckxnVFVmWFlzZEp3MXp2MHQ5djdJSFI2M2c3WXJvQ3ZVRlNYbTFSbU9oUzFYanI1eUlFQ0F3RUFBUT09AAAAAApSU0FLZXkyMDQ4CQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQWxlbXI5NUoxalpVczdjSm1ybW1sTjR6bzdZVnNCSnpJZUpkazhMREZHaFVLU0k2eWZzMjBaeUplMjErNkdKd05uS1VVMVV5b2MxN3dTV01La3JaME1NdllFK1o1QWlpanZCSzRzU0ozSWdHamRVOC9OaEk4Q0JEdTBGK3hSTTlxM1RCM0xMYkR5NXNCZHVkWWZIZnNVT2MrTVR2QUQ2OW4yN2RiMlJoOCt5WlFNdHVia3VUUU5wODlzcGhIUWFMR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AAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABm51bWJlcgIAAAAPX2Fzc2V0SWREZWZpbmVkBQAAAAxhc3NldElkY2hlY2sJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAGbnVtYmVyAgAAAA9fYXNzZXRJZERlZmluZWQFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAGbkO/3Q==", "chainId": 84, "height": 587381, "spentComplexity": 0 } View: original | compacted Prev: 5fiVBXG1Pp77bRaZp3DZdefr7XrLMdQ7z1F7dBwi9wQD Next: GVuk9BMCWiGRsm8CiG3DGHRreCrF3erA3zMTZuWZ6ZCe Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let RSAKey512 = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMZuLoLHV5fcuqP/KjHoQ6VsZSkSWF2AwRALrLgTUfXYsdJw1zv0t9v7IHR63g7YroCvUFSXm1RmOhS1Xjr5yIECAwEAAQ==")
55
66 let RSAKey2048 = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlemr95J1jZUs7cJmrmmlN4zo7YVsBJzIeJdk8LDFGhUKSI6yfs20ZyJe21+6GJwNnKUU1Uyoc17wSWMKkrZ0MMvYE+Z5AiijvBK4sSJ3IgGjdU8/NhI8CBDu0F+xRM9q3TB3LLbDy5sBdudYfHfsUOc+MTvAD69n27db2Rh8+yZQMtubkuTQNp89sphHQaLGyQFaNlK/Na3lFx6omqzaa1gjoplUr6rvYKgfAICUB3zVmJShiEi7w7R0hWlNRD3qcZjCUONSpFo4WbzknGOazw84B+IMIFnIpXWzQL8RX0vNcfsBvLDfM6k2ZacqwyMKaLLqigdBiGdJ7W+0lOStOQIDAQAB")
77
88 @Callable(i)
99 func checkSign (number,TxId,Signature,PublicKey) = {
1010 let pmnt = extract(i.payment)
1111 let assetIdcheck = isDefined(pmnt.assetId)
1212 let assetId = match pmnt.assetId {
1313 case a: ByteVector =>
1414 a
1515 case _ =>
1616 "null"
1717 }
1818 let a = rsaVerify(SHA256, toBytes(TxId), Signature, RSAKey512)
1919 WriteSet([DataEntry((number + "_Pub"), PublicKey), DataEntry((number + "_TXID"), TxId), DataEntry((number + "_Signature"), Signature), DataEntry((number + "_Verify"), a), DataEntry((number + "_assetIdDefined"), assetIdcheck), DataEntry((number + "_assetIdDefined"), assetId)])
2020 }
2121
2222
2323 @Verifier(tx)
2424 func verify () = true
2525

github/deemru/w8io/169f3d6 
33.10 ms