tx · A2d1aHXGreBwCELEHDiizfWFHJNHuF5iuLL8acXX2otH
3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG: -0.01400000 Waves
2018.12.16 16:56 [407469] smart account 3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG > SELF 0.00000000 Waves
{
"type": 13,
"id": "A2d1aHXGreBwCELEHDiizfWFHJNHuF5iuLL8acXX2otH",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1544968613852,
"version": 1,
"sender": "3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG",
"senderPublicKey": "HtMUreD2WD1BYXE1idEnZSvBBS4iur2pjr48oRzxoUZW",
"proofs": [
"2p1JimpimW9Nzy7eHM1yaUgnwSebHYc8L9ykjgupePzsb2Xn3c1Mk5Yog2uxMW5E1Y49susggMrH6ygos3XhV43E"
],
"script": "base64:AQQAAAAFYWxpY2UBAAAAIBIgYf2YRQEizbDQmyvXnTeWcaEDCicogXF9q9TV1AJOBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAALcHJvb2ZCaW5hcnkJAAQcAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAFYWxpY2UCAAAABXByb29mBAAAAAloYXNoZWRWYWwJAAQcAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAFYWxpY2UCAAAABmVuY0FnZQMDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAALcHJvb2ZCaW5hcnkJAQAAAAlpc0RlZmluZWQAAAABBQAAAAloYXNoZWRWYWwHBAAAAAZlbmNBZ2UJAQAAAAdleHRyYWN0AAAAAQUAAAAJaGFzaGVkVmFsBAAAAAVwcm9vZgkAAfcAAAABCQAB9wAAAAEJAAH3AAAAAQkAAfcAAAABCQAB9wAAAAEJAAH3AAAAAQkAAfcAAAABCQAB9wAAAAEJAAH3AAAAAQkAAfcAAAABCQAB9wAAAAEJAAH3AAAAAQkAAfcAAAABCQAB9wAAAAEJAAH3AAAAAQkAAfcAAAABCQAB9wAAAAEJAAH3AAAAAQkBAAAAB2V4dHJhY3QAAAABBQAAAAtwcm9vZkJpbmFyeQkAAAAAAAACBQAAAAZlbmNBZ2UFAAAABXByb29mBwZiXL9S",
"chainId": 84,
"height": 407469,
"spentComplexity": 0
}
View: original | compacted
Prev: 4w48SrUjzrVJSd5DZXEYTh7md5CTgYQ6BKToPRWmBXrr
Next: 3fRmNwYH1vWzf6kiuuFQLQnZxLxw71ZH2Pof4rYLrpUi
Diff:
Old | New | | Differences |
---|
3 | 3 | | let alice = base58'2DkyjASk42t2jZ7Vki6ZH9VeqGgSYRDAPEFpknPjJAFP' |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case tx: DataTransaction => |
---|
6 | | - | let proofBinary = getBinary(addressFromPublicKey(tx.proofs[1]), "proof") |
---|
7 | | - | let hashedVal = getBinary(addressFromPublicKey(tx.proofs[1]), "encAge") |
---|
| 6 | + | let proofBinary = getBinary(addressFromPublicKey(alice), "proof") |
---|
| 7 | + | let hashedVal = getBinary(addressFromPublicKey(alice), "encAge") |
---|
8 | 8 | | if (if (isDefined(proofBinary)) |
---|
9 | 9 | | then isDefined(hashedVal) |
---|
10 | 10 | | else false) |
---|
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 | | - | let proofBinary = getBinary(addressFromPublicKey(tx.proofs[1]), "proof") |
---|
7 | | - | let hashedVal = getBinary(addressFromPublicKey(tx.proofs[1]), "encAge") |
---|
| 6 | + | let proofBinary = getBinary(addressFromPublicKey(alice), "proof") |
---|
| 7 | + | let hashedVal = getBinary(addressFromPublicKey(alice), "encAge") |
---|
8 | 8 | | if (if (isDefined(proofBinary)) |
---|
9 | 9 | | then isDefined(hashedVal) |
---|
10 | 10 | | else false) |
---|
11 | 11 | | then { |
---|
12 | 12 | | let encAge = extract(hashedVal) |
---|
13 | 13 | | let proof = sha256(sha256(sha256(sha256(sha256(sha256(sha256(sha256(sha256(sha256(sha256(sha256(sha256(sha256(sha256(sha256(sha256(sha256(extract(proofBinary))))))))))))))))))) |
---|
14 | 14 | | (encAge == proof) |
---|
15 | 15 | | } |
---|
16 | 16 | | else false |
---|
17 | 17 | | case _ => |
---|
18 | 18 | | true |
---|
19 | 19 | | } |
---|