tx · 2uSYrYmSUwrJZeEYDNNLtQJrpxLEBUhe71njjmS5fdaS
3MxNToddeioZQ74c7CD1hDy4R5hgPEewmWs: -1.00400000 Waves
2019.01.04 20:27 [435345] smart asset 3MxNToddeioZQ74c7CD1hDy4R5hgPEewmWs > SELF 0.00000000 mstest2
{
"type": 15,
"id": "2uSYrYmSUwrJZeEYDNNLtQJrpxLEBUhe71njjmS5fdaS",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1546622886510,
"version": 1,
"sender": "3MxNToddeioZQ74c7CD1hDy4R5hgPEewmWs",
"senderPublicKey": "3SmEfcH8L6HTopqkkKr8iN1G5Z44sEJdDQqtY6YtXnfZ",
"proofs": [
"5Ld91K8SFHTEsx2CELJD8jPZWD47kobn4KnBuXcSXVcJhw4DPHbETuvhL6FQJWCoXE5CsmZTo5Kcs2V95BZH5aN3"
],
"assetId": "u5a58uGYPa55EMYFv3PXoZYFpgzCWAbuRX6Zu2WM6HG",
"script": "base64:AQQAAAARdGJ0Y0dhdGV3YXlQdWJLZXkBAAAAICRQ6VSz6Cd/3C0bRrZ6WkDLxieLuOZWK4NkjWU+qLUQBAAAABl0YnRjR2F0ZXdheVZlcmlmaWVyUHViS2V5AQAAACDTUnQiU/brWu2xcIMfTPZPY/C5HG0fO+okgP9DuX2YTwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAADXNpZ25lZEdhdGV3YXkDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAARdGJ0Y0dhdGV3YXlQdWJLZXkAAAAAAAAAAAEAAAAAAAAAAAAEAAAAFXNpZ25lZEdhdGV3YXlWZXJpZmllcgMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAABl0YnRjR2F0ZXdheVZlcmlmaWVyUHViS2V5AAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgUAAAANc2lnbmVkR2F0ZXdheQUAAAAVc2lnbmVkR2F0ZXdheVZlcmlmaWVyAAAAAAAAAAAABupojZM=",
"chainId": 84,
"height": 435345,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 1 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let tbtcGatewayPubKey = base58'3SmEfcH8L6HTopqkkKr8iN1G5Z44sEJdDQqtY6YtXnfZ' |
---|
| 4 | + | let tbtcGatewayVerifierPubKey = base58'FDuwuYHXBnTFUPJheVwdF3rmMqusKPb5C297jYv2Qbux' |
---|
| 5 | + | match tx { |
---|
| 6 | + | case t: SetAssetScriptTransaction => |
---|
| 7 | + | let signedGateway = if (sigVerify(tx.bodyBytes, tx.proofs[0], tbtcGatewayPubKey)) |
---|
| 8 | + | then 1 |
---|
| 9 | + | else 0 |
---|
| 10 | + | let signedGatewayVerifier = if (sigVerify(tx.bodyBytes, tx.proofs[1], tbtcGatewayVerifierPubKey)) |
---|
| 11 | + | then 1 |
---|
| 12 | + | else 0 |
---|
| 13 | + | ((signedGateway + signedGatewayVerifier) >= 0) |
---|
| 14 | + | case _ => |
---|
| 15 | + | true |
---|
| 16 | + | } |
---|