tx · FDNynR6KkSmg2Ef17TMyRY4whtBmQXDdwd3JiLYnip1z
3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG: -0.01400000 Waves
2018.12.16 15:11 [407362] smart account 3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG > SELF 0.00000000 Waves
{
"type": 13,
"id": "FDNynR6KkSmg2Ef17TMyRY4whtBmQXDdwd3JiLYnip1z",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1544962320911,
"version": 1,
"sender": "3N9mQmB1peikS3wEPFHb5NxbNxRmcqkN8MG",
"senderPublicKey": "HtMUreD2WD1BYXE1idEnZSvBBS4iur2pjr48oRzxoUZW",
"proofs": [
"3wKzheqZkmp8b7zoyA1RaeeNDn2MmfZ9pGiiP7oEuaHg8reKUbeq8gpGUNXPWBbWQCczVcP4wktKohCUdZrXSAZU"
],
"script": "base64:AQQAAAAFYWxpY2UBAAAAIBIgYf2YRQEizbDQmyvXnTeWcaEDCicogXF9q9TV1AJOBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAALcHJvb2ZCaW5hcnkJAAQcAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABAgAAAAtwcm9vZkJpbmFyeQQAAAAJaGFzaGVkVmFsCQAEHAAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQIAAAAJaGFzaGVkVmFsAwMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAtwcm9vZkJpbmFyeQkBAAAACWlzRGVmaW5lZAAAAAEFAAAACWhhc2hlZFZhbAcJAAAAAAAAAgUAAAAJaGFzaGVkVmFsCQAB9gAAAAEJAQAAAAdleHRyYWN0AAAAAQUAAAALcHJvb2ZCaW5hcnkHBkieP30=",
"chainId": 84,
"height": 407362,
"spentComplexity": 0
}
View: original | compacted
Prev: 3mKRiWPA1XQGWrot9L8Nx76erMDVEmzWmJYenhi4c3N5
Next: WvyqKhrNLGe7trekfjDcKz4BovdAJV7xHg4ugRLH85w
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]), "proofBinary") |
---|
6 | 7 | | let hashedVal = getBinary(addressFromPublicKey(tx.proofs[1]), "hashedVal") |
---|
7 | | - | if (isDefined(hashedVal)) |
---|
8 | | - | then (hashedVal == blake2b256(base58'Ldp')) |
---|
| 8 | + | if (if (isDefined(proofBinary)) |
---|
| 9 | + | then isDefined(hashedVal) |
---|
| 10 | + | else false) |
---|
| 11 | + | then (hashedVal == blake2b256(extract(proofBinary))) |
---|
9 | 12 | | else false |
---|
10 | 13 | | case _ => |
---|
11 | 14 | | 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 | + | let proofBinary = getBinary(addressFromPublicKey(tx.proofs[1]), "proofBinary") |
---|
6 | 7 | | let hashedVal = getBinary(addressFromPublicKey(tx.proofs[1]), "hashedVal") |
---|
7 | | - | if (isDefined(hashedVal)) |
---|
8 | | - | then (hashedVal == blake2b256(base58'Ldp')) |
---|
| 8 | + | if (if (isDefined(proofBinary)) |
---|
| 9 | + | then isDefined(hashedVal) |
---|
| 10 | + | else false) |
---|
| 11 | + | then (hashedVal == blake2b256(extract(proofBinary))) |
---|
9 | 12 | | else false |
---|
10 | 13 | | case _ => |
---|
11 | 14 | | true |
---|
12 | 15 | | } |
---|