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:AAIDAAAAAAAAAAAAAAACAAAAAAlSU0FLZXk1MTIJAAJbAAAAAQIAAACHYmFzZTY0Ok1Gd3dEUVlKS29aSWh2Y05BUUVCQlFBRFN3QXdTQUpCQU1adUxvTEhWNWZjdXFQL0tqSG9RNlZzWlNrU1dGMkF3UkFMckxnVFVmWFlzZEp3MXp2MHQ5djdJSFI2M2c3WXJvQ3ZVRlNYbTFSbU9oUzFYanI1eUlFQ0F3RUFBUT09AAAAAApSU0FLZXkyMDQ4CQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQWxlbXI5NUoxalpVczdjSm1ybW1sTjR6bzdZVnNCSnpJZUpkazhMREZHaFVLU0k2eWZzMjBaeUplMjErNkdKd05uS1VVMVV5b2MxN3dTV01La3JaME1NdllFK1o1QWlpanZCSzRzU0ozSWdHamRVOC9OaEk4Q0JEdTBGK3hSTTlxM1RCM0xMYkR5NXNCZHVkWWZIZnNVT2MrTVR2QUQ2OW4yN2RiMlJoOCt5WlFNdHVia3VUUU5wODlzcGhIUWFMR3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AAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABm51bWJlcgIAAAAPX2Fzc2V0SWREZWZpbmVkBQAAAAxhc3NldElkY2hlY2sJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAGbnVtYmVyAgAAAA9fYXNzZXRJZERlZmluZWQFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAGbkO/3Q==", "chainId": 84, "height": 587381, "spentComplexity": 0 } View: original | compacted Prev: 5fiVBXG1Pp77bRaZp3DZdefr7XrLMdQ7z1F7dBwi9wQD Next: GVuk9BMCWiGRsm8CiG3DGHRreCrF3erA3zMTZuWZ6ZCe Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let RSAKey512 = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMZuLoLHV5fcuqP/KjHoQ6VsZSkSWF2AwRALrLgTUfXYsdJw1zv0t9v7IHR63g7YroCvUFSXm1RmOhS1Xjr5yIECAwEAAQ==") | |
5 | 5 | ||
6 | 6 | let RSAKey2048 = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlemr95J1jZUs7cJmrmmlN4zo7YVsBJzIeJdk8LDFGhUKSI6yfs20ZyJe21+6GJwNnKUU1Uyoc17wSWMKkrZ0MMvYE+Z5AiijvBK4sSJ3IgGjdU8/NhI8CBDu0F+xRM9q3TB3LLbDy5sBdudYfHfsUOc+MTvAD69n27db2Rh8+yZQMtubkuTQNp89sphHQaLGyQFaNlK/Na3lFx6omqzaa1gjoplUr6rvYKgfAICUB3zVmJShiEi7w7R0hWlNRD3qcZjCUONSpFo4WbzknGOazw84B+IMIFnIpXWzQL8RX0vNcfsBvLDfM6k2ZacqwyMKaLLqigdBiGdJ7W+0lOStOQIDAQAB") | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func checkSign (number,TxId,Signature,PublicKey) = { | |
10 | 10 | let pmnt = extract(i.payment) | |
11 | 11 | let assetIdcheck = isDefined(pmnt.assetId) | |
12 | 12 | let assetId = match pmnt.assetId { | |
13 | 13 | case a: ByteVector => | |
14 | 14 | a | |
15 | 15 | case _ => | |
16 | 16 | "null" | |
17 | 17 | } | |
18 | 18 | let a = rsaVerify(SHA256, toBytes(TxId), Signature, RSAKey512) | |
19 | 19 | 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)]) | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | @Verifier(tx) | |
24 | 24 | func verify () = true | |
25 | 25 |
github/deemru/w8io/169f3d6 33.10 ms ◑