tx · FiiN71miVLNV6hmHrN6NkKSbRLBxpE8dLvbhaMPDL39a
3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG: -0.01400000 Waves
2018.12.16 04:17 [406685] smart account 3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG > SELF 0.00000000 Waves
{
"type": 13,
"id": "FiiN71miVLNV6hmHrN6NkKSbRLBxpE8dLvbhaMPDL39a",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1544923053980,
"version": 1,
"sender": "3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG",
"senderPublicKey": "HtMUreD2WD1BYXE1idEnZSvBBS4iur2pjr48oRzxoUZW",
"proofs": [
"4gZ1zurKDCNxBFpbu4fUuz1EUko53GRKnBb5frbFyqkAMXtBPy5QZ2fDktQ2qweUawCHCcDcdKhuh9TdAQbgighj"
],
"script": "base64:AQQAAAAFYWxpY2UBAAAAIBIgYf2YRQEizbDQmyvXnTeWcaEDCicogXF9q9TV1AJOBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAMZW5jcnlwdGVkQWdlCQEAAAAHZXh0cmFjdAAAAAEJAAQcAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAFYWxpY2UCAAAADGVuY3J5cHRlZEFnZQQAAAAHcHJvb2YxOAkBAAAAB2V4dHJhY3QAAAABCQAEHAAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAABWFsaWNlAgAAAAdwcm9vZjE4AwkBAAAACWlzRGVmaW5lZAAAAAEFAAAADGVuY3J5cHRlZEFnZQMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAdwcm9vZjE4BAAAAAt2ZXJpZmllZEFnZQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQUAAAAHcHJvb2YxOAQAAAALb2xkZXJUaGFuMjEJAAAAAAAAAgUAAAAMZW5jcnlwdGVkQWdlBQAAAAt2ZXJpZmllZEFnZQUAAAALb2xkZXJUaGFuMjEHBwYyjsxe",
"chainId": 84,
"height": 406685,
"spentComplexity": 0
}
View: original | compacted
Prev: 3P98UXd6vvB3GKQ1RHrMZENXtcJkLyZjVvR2uzPGc75m
Next: ExTLajzPpxipJoh6MpZRiDWYwDisRcMZsAVrizYEqzqh
Diff:
Old | New | | Differences |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case tx: DataTransaction => |
---|
6 | 6 | | let encryptedAge = extract(getBinary(addressFromPublicKey(alice), "encryptedAge")) |
---|
| 7 | + | let proof18 = extract(getBinary(addressFromPublicKey(alice), "proof18")) |
---|
7 | 8 | | if (isDefined(encryptedAge)) |
---|
8 | | - | then { |
---|
9 | | - | let proof18 = extract(getBinary(addressFromPublicKey(alice), "proof18")) |
---|
10 | | - | if (isDefined(proof18)) |
---|
11 | | - | then { |
---|
12 | | - | let verifiedAge = blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(proof18)))))))))))))))))) |
---|
13 | | - | let olderThan21 = (encryptedAge == verifiedAge) |
---|
14 | | - | olderThan21 |
---|
15 | | - | } |
---|
16 | | - | else false |
---|
17 | | - | } |
---|
| 9 | + | then if (isDefined(proof18)) |
---|
| 10 | + | then { |
---|
| 11 | + | let verifiedAge = blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(proof18)))))))))))))))))) |
---|
| 12 | + | let olderThan21 = (encryptedAge == verifiedAge) |
---|
| 13 | + | olderThan21 |
---|
| 14 | + | } |
---|
| 15 | + | else false |
---|
18 | 16 | | else false |
---|
19 | 17 | | case _ => |
---|
20 | 18 | | true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let alice = base58'2DkyjASk42t2jZ7Vki6ZH9VeqGgSYRDAPEFpknPjJAFP' |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case tx: DataTransaction => |
---|
6 | 6 | | let encryptedAge = extract(getBinary(addressFromPublicKey(alice), "encryptedAge")) |
---|
| 7 | + | let proof18 = extract(getBinary(addressFromPublicKey(alice), "proof18")) |
---|
7 | 8 | | if (isDefined(encryptedAge)) |
---|
8 | | - | then { |
---|
9 | | - | let proof18 = extract(getBinary(addressFromPublicKey(alice), "proof18")) |
---|
10 | | - | if (isDefined(proof18)) |
---|
11 | | - | then { |
---|
12 | | - | let verifiedAge = blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(proof18)))))))))))))))))) |
---|
13 | | - | let olderThan21 = (encryptedAge == verifiedAge) |
---|
14 | | - | olderThan21 |
---|
15 | | - | } |
---|
16 | | - | else false |
---|
17 | | - | } |
---|
| 9 | + | then if (isDefined(proof18)) |
---|
| 10 | + | then { |
---|
| 11 | + | let verifiedAge = blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(blake2b256(proof18)))))))))))))))))) |
---|
| 12 | + | let olderThan21 = (encryptedAge == verifiedAge) |
---|
| 13 | + | olderThan21 |
---|
| 14 | + | } |
---|
| 15 | + | else false |
---|
18 | 16 | | else false |
---|
19 | 17 | | case _ => |
---|
20 | 18 | | true |
---|
21 | 19 | | } |
---|