tx · 3P98UXd6vvB3GKQ1RHrMZENXtcJkLyZjVvR2uzPGc75m
3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG: -0.01400000 Waves
2018.12.16 04:12 [406682] smart account 3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG > SELF 0.00000000 Waves
{
"type": 13,
"id": "3P98UXd6vvB3GKQ1RHrMZENXtcJkLyZjVvR2uzPGc75m",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1544922793393,
"version": 1,
"sender": "3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG",
"senderPublicKey": "HtMUreD2WD1BYXE1idEnZSvBBS4iur2pjr48oRzxoUZW",
"proofs": [
"3HovDkvBGumJGRfwCAxjXSciMQN4YXesP4h6ty1pJL54tVEYa7iigr7cxQCEXGWU73m4ZVT5zApHqM4HovUC872N"
],
"script": "base64:AQQAAAAFYWxpY2UBAAAAIBIgYf2YRQEizbDQmyvXnTeWcaEDCicogXF9q9TV1AJOBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAMZW5jcnlwdGVkQWdlCQEAAAAHZXh0cmFjdAAAAAEJAAQcAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAFYWxpY2UCAAAADGVuY3J5cHRlZEFnZQMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAxlbmNyeXB0ZWRBZ2UEAAAAB3Byb29mMTgJAQAAAAdleHRyYWN0AAAAAQkABBwAAAACCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAAAVhbGljZQIAAAAHcHJvb2YxOAMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAdwcm9vZjE4BAAAAAt2ZXJpZmllZEFnZQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQUAAAAHcHJvb2YxOAQAAAALb2xkZXJUaGFuMjEJAAAAAAAAAgUAAAAMZW5jcnlwdGVkQWdlBQAAAAt2ZXJpZmllZEFnZQUAAAALb2xkZXJUaGFuMjEHBwYXL0ew",
"chainId": 84,
"height": 406682,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: FiiN71miVLNV6hmHrN6NkKSbRLBxpE8dLvbhaMPDL39a
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 1 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let alice = base58'2DkyjASk42t2jZ7Vki6ZH9VeqGgSYRDAPEFpknPjJAFP' |
---|
| 4 | + | match tx { |
---|
| 5 | + | case tx: DataTransaction => |
---|
| 6 | + | let encryptedAge = extract(getBinary(addressFromPublicKey(alice), "encryptedAge")) |
---|
| 7 | + | 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 | + | } |
---|
| 18 | + | else false |
---|
| 19 | + | case _ => |
---|
| 20 | + | true |
---|
| 21 | + | } |
---|