tx · 8UqwKvTeTFL8xUxPhM6rzAMtZn5euLzERbBRo1AasfJG
3MtKAg1WTDaD4u1Yg2hPSvjHKxZj4rZe5g6: -0.05000000 Waves
2019.10.12 11:58 [716462] smart account 3MtKAg1WTDaD4u1Yg2hPSvjHKxZj4rZe5g6 > SELF 0.00000000 Waves
{
"type": 13,
"id": "8UqwKvTeTFL8xUxPhM6rzAMtZn5euLzERbBRo1AasfJG",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1570870731926,
"version": 1,
"sender": "3MtKAg1WTDaD4u1Yg2hPSvjHKxZj4rZe5g6",
"senderPublicKey": "bMgKmZyoSBqNJfTSZ4tnwKSG2g7ZcTWnRrd7qJWMi9K",
"proofs": [
"4EekicgRRQJk6ZHNGz2ySqLtVWMrvLJAH3vU6SHd2T5Ue8WWjYETfiKzpJmMBw4MkLfV58mPjkxYQ9bF2vvwCTXP"
],
"script": "base64:AAIDAAAAAAAAAAIIAQAAAAEAAAAADGhlcm1hblB1YktleQEAAAAgds7Rh+hp7E9JICpouNtAK8GYTeaVhYcsJuzrVnZp/SoAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxoZXJtYW5QdWJLZXkGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMaGVybWFuUHViS2V5BqEHIho=",
"chainId": 84,
"height": 716462,
"spentComplexity": 0
}
View: original | compacted
Prev: 9VjszHC76SJWrvCDTsajLNyxnaTT97HuogugB3XapX3X
Next: 7rERHm8z4Yd4S6vioXtkNjRSB4LCpH59NPQZgPUs3iCg
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let hermanAddress = "3MthZp7Un21vXyEEUMSYKdf8sDA8ZkitqRj" |
---|
| 4 | + | let hermanPubKey = base58'8zn296Zh3FWGjLGbPTJafpKXcRfz6kQKMJaU1zJqLUj3' |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Verifier(tx) |
---|
8 | 8 | | func verify () = match tx { |
---|
| 9 | + | case d: DataTransaction => |
---|
| 10 | + | if (sigVerify(tx.bodyBytes, tx.proofs[0], hermanPubKey)) |
---|
| 11 | + | then true |
---|
| 12 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], hermanPubKey) |
---|
9 | 13 | | case _ => |
---|
10 | 14 | | true |
---|
11 | 15 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let hermanAddress = "3MthZp7Un21vXyEEUMSYKdf8sDA8ZkitqRj" |
---|
| 4 | + | let hermanPubKey = base58'8zn296Zh3FWGjLGbPTJafpKXcRfz6kQKMJaU1zJqLUj3' |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Verifier(tx) |
---|
8 | 8 | | func verify () = match tx { |
---|
| 9 | + | case d: DataTransaction => |
---|
| 10 | + | if (sigVerify(tx.bodyBytes, tx.proofs[0], hermanPubKey)) |
---|
| 11 | + | then true |
---|
| 12 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], hermanPubKey) |
---|
9 | 13 | | case _ => |
---|
10 | 14 | | true |
---|
11 | 15 | | } |
---|
12 | 16 | | |
---|