tx · DfHTmhAzYTuKCR4NA8zpLCh5hYzLijouKMGZzKdx61W6
3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG: -0.01400000 Waves
2018.12.16 10:47 [407091] smart account 3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG > SELF 0.00000000 Waves
{
"type": 13,
"id": "DfHTmhAzYTuKCR4NA8zpLCh5hYzLijouKMGZzKdx61W6",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1544946455801,
"version": 1,
"sender": "3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG",
"senderPublicKey": "HtMUreD2WD1BYXE1idEnZSvBBS4iur2pjr48oRzxoUZW",
"proofs": [
"45r67Hg5sH6tD8kZYEAD4T8HzTicxz991j5DvCEZjBsAzwhkgN6nJbeKssWW8R51pwB9WzWKxtEx4ENYNrxAMY4r"
],
"script": "base64:AQQAAAAFYWxpY2UBAAAAIBIgYf2YRQEizbDQmyvXnTeWcaEDCicogXF9q9TV1AJOBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAMZW5jcnlwdGVkQWdlCQEAAAAHZXh0cmFjdAAAAAEJAAQcAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAFYWxpY2UCAAAADGVuY3J5cHRlZEFnZQQAAAAHcHJvb2YxOAkBAAAAB2V4dHJhY3QAAAABCQAEHAAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAABWFsaWNlAgAAAAdwcm9vZjE4AwkBAAAACWlzRGVmaW5lZAAAAAEFAAAADGVuY3J5cHRlZEFnZQMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAdwcm9vZjE4BAAAAAt2ZXJpZmllZEFnZQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQkAAfYAAAABCQAB9gAAAAEJAAH2AAAAAQUAAAAHcHJvb2YxOAQAAAALb2xkZXJUaGFuMjEJAAAAAAAAAgUAAAAMZW5jcnlwdGVkQWdlBQAAAAt2ZXJpZmllZEFnZQUAAAALb2xkZXJUaGFuMjEHBwYyjsxe",
"chainId": 84,
"height": 407091,
"spentComplexity": 0
}
View: original | compacted
Prev: 5Vzph4Y55uQcHxywg9pAFYir6R2ZUe42GC7h2Rp3CqnF
Next: 42i7jvcKHTRLfh9NekHqczBq3oJ7cW9QSSLBBuDqGuoH
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let alice = base58'2DkyjASk42t2jZ7Vki6ZH9VeqGgSYRDAPEFpknPjJAFP' |
---|
4 | 4 | | match tx { |
---|
| 5 | + | case tx: DataTransaction => |
---|
| 6 | + | let encryptedAge = extract(getBinary(addressFromPublicKey(alice), "encryptedAge")) |
---|
| 7 | + | let proof18 = extract(getBinary(addressFromPublicKey(alice), "proof18")) |
---|
| 8 | + | if (isDefined(encryptedAge)) |
---|
| 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 |
---|
| 16 | + | else false |
---|
5 | 17 | | case _ => |
---|
6 | 18 | | true |
---|
7 | 19 | | } |
---|
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 | + | case tx: DataTransaction => |
---|
| 6 | + | let encryptedAge = extract(getBinary(addressFromPublicKey(alice), "encryptedAge")) |
---|
| 7 | + | let proof18 = extract(getBinary(addressFromPublicKey(alice), "proof18")) |
---|
| 8 | + | if (isDefined(encryptedAge)) |
---|
| 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 |
---|
| 16 | + | else false |
---|
5 | 17 | | case _ => |
---|
6 | 18 | | true |
---|
7 | 19 | | } |
---|