tx · BR5DRjsDSKYaw6jbkpLsUZn9AYnsTGML4uWcRivdmJAm
3N9nhPb2uyfCtJFVPmMK9w4uEGLVTnnbXhQ: -0.00500000 Waves
2022.09.20 16:09 [2237497] smart account 3N9nhPb2uyfCtJFVPmMK9w4uEGLVTnnbXhQ > SELF 0.00000000 Waves
{
"type": 13,
"id": "BR5DRjsDSKYaw6jbkpLsUZn9AYnsTGML4uWcRivdmJAm",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1663679399405,
"version": 2,
"chainId": 84,
"sender": "3N9nhPb2uyfCtJFVPmMK9w4uEGLVTnnbXhQ",
"senderPublicKey": "8WztCHMwLBGx8KstgdjYYxTtGg85W9wEBrCSAQTokAh8",
"proofs": [
"3Fm1Laoq9WWx5cFHuBYxnZZarbmrqtA7M3vSEy2MiRooDZVuxMgicTpF6PHCbVraExJrbrxjCR1dcfuNVcdJDKfp"
],
"script": "base64:AAIFAAAAAAAAAAIIAgAAAAAAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAJZmlyc3RVc2VyAQAAACBvsRmfJSHkbn/RdDo/cY6UpfzJKdR5MV54iPTvADd4cwQAAAAKc2Vjb25kVXNlcgEAAAAgw7A/hzVJNOr72le1jAICboaEiS9Ooxu+E5C4G4avL0YEAAAAD2ZpcnN0VXNlclNpZ25lZAMDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAJZmlyc3RVc2VyBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACWZpcnN0VXNlcgAAAAAAAAAAAQAAAAAAAAAAAAQAAAAQc2Vjb25kVXNlclNpZ25lZAMDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAKc2Vjb25kVXNlcgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAApzZWNvbmRVc2VyAAAAAAAAAAABAAAAAAAAAAAABAAAAA9zaWduYXR1cmVzQ291bnQJAABkAAAAAgUAAAAPZmlyc3RVc2VyU2lnbmVkBQAAABBzZWNvbmRVc2VyU2lnbmVkBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAAZwAAAAIFAAAAD3NpZ25hdHVyZXNDb3VudAAAAAAAAAAAAQkAAGcAAAACBQAAAA9zaWduYXR1cmVzQ291bnQAAAAAAAAAAAL36aaB",
"height": 2237497,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5xMEvppRtomu8EXJtVVx98BByCpkRovN9pQeeDFZ91o5
Next: none
Diff:
Old | New | | Differences |
---|
7 | 7 | | @Verifier(tx) |
---|
8 | 8 | | func verify () = { |
---|
9 | 9 | | let firstUser = base58'8WztCHMwLBGx8KstgdjYYxTtGg85W9wEBrCSAQTokAh8' |
---|
10 | | - | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) |
---|
| 10 | + | let secondUser = base58'EAtNoHKx4BMb4FwLTXBjAYAzDTjj3sdRAwpTEv3sayKB' |
---|
| 11 | + | let firstUserSigned = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) |
---|
| 12 | + | then true |
---|
| 13 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) |
---|
11 | 14 | | then 1 |
---|
12 | 15 | | else 0 |
---|
13 | | - | let signaturesCount = firstUserSigned |
---|
| 16 | + | let secondUserSigned = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) |
---|
| 17 | + | then true |
---|
| 18 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) |
---|
| 19 | + | then 1 |
---|
| 20 | + | else 0 |
---|
| 21 | + | let signaturesCount = (firstUserSigned + secondUserSigned) |
---|
14 | 22 | | match tx { |
---|
15 | 23 | | case t: DataTransaction => |
---|
16 | 24 | | (signaturesCount >= 1) |
---|
17 | 25 | | case _ => |
---|
18 | | - | (signaturesCount >= 0) |
---|
| 26 | + | (signaturesCount >= 2) |
---|
19 | 27 | | } |
---|
20 | 28 | | } |
---|
21 | 29 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Verifier(tx) |
---|
8 | 8 | | func verify () = { |
---|
9 | 9 | | let firstUser = base58'8WztCHMwLBGx8KstgdjYYxTtGg85W9wEBrCSAQTokAh8' |
---|
10 | | - | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) |
---|
| 10 | + | let secondUser = base58'EAtNoHKx4BMb4FwLTXBjAYAzDTjj3sdRAwpTEv3sayKB' |
---|
| 11 | + | let firstUserSigned = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) |
---|
| 12 | + | then true |
---|
| 13 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) |
---|
11 | 14 | | then 1 |
---|
12 | 15 | | else 0 |
---|
13 | | - | let signaturesCount = firstUserSigned |
---|
| 16 | + | let secondUserSigned = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) |
---|
| 17 | + | then true |
---|
| 18 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) |
---|
| 19 | + | then 1 |
---|
| 20 | + | else 0 |
---|
| 21 | + | let signaturesCount = (firstUserSigned + secondUserSigned) |
---|
14 | 22 | | match tx { |
---|
15 | 23 | | case t: DataTransaction => |
---|
16 | 24 | | (signaturesCount >= 1) |
---|
17 | 25 | | case _ => |
---|
18 | | - | (signaturesCount >= 0) |
---|
| 26 | + | (signaturesCount >= 2) |
---|
19 | 27 | | } |
---|
20 | 28 | | } |
---|
21 | 29 | | |
---|