tx · 44T7ekLSLtT7PJhngKt1dXYgnxd7KjHjYdLw18kX9zEB
3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB: -0.01500000 Waves
2019.06.24 16:43 [556237] smart account 3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB > SELF 0.00000000 Waves
{
"type": 13,
"id": "44T7ekLSLtT7PJhngKt1dXYgnxd7KjHjYdLw18kX9zEB",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1561383847170,
"version": 1,
"sender": "3MukPacWskGGNcT8ubWWzSwVPa9ah9KHvuB",
"senderPublicKey": "H3q3RM4MQSLjCTYpgaitRNz8cKHhMtcwoUfc2c86cfej",
"proofs": [
"2Zsqgvv5n3YwVxzau4AZZaxaLP36pHXiJjJD2W2rK6hwGk7toERLqWXMfbLKX9bxJntfJrMQkjy4j6Hvrzfsg9ms"
],
"script": "base64:AAIDAAAAAAAAAAAAAAACAAAAAAZwdWJLZXkCAAAALDI4NlNCb0Ria2U4WVFSdDdWQmdvTEdKM3Z6NGNpM0paN2NoRFNHQjVZU0syAAAAAAR0eElkAgAAACw5OWdpNXRNNWtVZUtSVTNIemd5a3J2NXU5WVU1d29FRmNhRjV4Uno3Nmo2VgAAAAEAAAABaQEAAAAJY2hlY2tTaWduAAAAAgAAAAZudW1iZXIAAAADcnNhBAAAAAZ2ZXJpZnkJAAH4AAAABAUAAAAGU0hBMjU2CQABmwAAAAEFAAAABHR4SWQJAAGbAAAAAQUAAAADcnNhCQACWQAAAAEFAAAABnB1YktleQQAAAAGVmVyaWZ5AwUAAAAGdmVyaWZ5AAAAAAAAAAABAAAAAAAAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABm51bWJlcgIAAAAHX1ZlcmlmeQUAAAAGVmVyaWZ5BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABo+2DAs=",
"chainId": 84,
"height": 556237,
"spentComplexity": 0
}
View: original | compacted
Prev: 9RfGgUyq7ro32bWi16KqoMwV2vvAYegecUoH8XV89BuK
Next: 5B1PMjgtDERYS4ADTEkXZfBNeHRaKZuFx53A6Dj2oLjR
Diff:
Old | New | | Differences |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func checkSign (number,rsa) = { |
---|
10 | 10 | | let verify = rsaVerify(SHA256, toBytes(txId), toBytes(rsa), fromBase58String(pubKey)) |
---|
11 | | - | WriteSet([DataEntry((number + "_Verify"), verify)]) |
---|
| 11 | + | let Verify = if (verify) |
---|
| 12 | + | then 1 |
---|
| 13 | + | else 2 |
---|
| 14 | + | WriteSet([DataEntry((number + "_Verify"), Verify)]) |
---|
12 | 15 | | } |
---|
13 | 16 | | |
---|
14 | 17 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let pubKey = "286SBoDbke8YQRt7VBgoLGJ3vz4ci3JZ7chDSGB5YSK2" |
---|
5 | 5 | | |
---|
6 | 6 | | let txId = "99gi5tM5kUeKRU3Hzgykrv5u9YU5woEFcaF5xRz76j6V" |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func checkSign (number,rsa) = { |
---|
10 | 10 | | let verify = rsaVerify(SHA256, toBytes(txId), toBytes(rsa), fromBase58String(pubKey)) |
---|
11 | | - | WriteSet([DataEntry((number + "_Verify"), verify)]) |
---|
| 11 | + | let Verify = if (verify) |
---|
| 12 | + | then 1 |
---|
| 13 | + | else 2 |
---|
| 14 | + | WriteSet([DataEntry((number + "_Verify"), Verify)]) |
---|
12 | 15 | | } |
---|
13 | 16 | | |
---|
14 | 17 | | |
---|
15 | 18 | | @Verifier(tx) |
---|
16 | 19 | | func verify () = true |
---|
17 | 20 | | |
---|