tx · 41XmTgUnPGEFvCE88GsxdZpKTmvXVnSmx79UiFcAsVm2
3NCpyPuNzUaB7LFS4KBzwzWVnXmjur582oy: -0.01400000 Waves
2019.07.01 10:59 [566038] smart account 3NCpyPuNzUaB7LFS4KBzwzWVnXmjur582oy > SELF 0.00000000 Waves
{
"type": 13,
"id": "41XmTgUnPGEFvCE88GsxdZpKTmvXVnSmx79UiFcAsVm2",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1561968055613,
"version": 1,
"sender": "3NCpyPuNzUaB7LFS4KBzwzWVnXmjur582oy",
"senderPublicKey": "57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4",
"proofs": [
"4D2UQfu7mgmDC29NY5YQ8wKG13t6Swv7wHk3RRCPR81guni7LgSSnH1gGJgtUiiShcJ8tqmvY1T5dGqLsAhsFuAd"
],
"script": "base64:AwQAAAAPdHJhZGVyUHVibGljS2V5AQAAACCBpbTZgYbXOF2R/9sYPGnT0mB66bUYoSp22rdMFj3IEQQAAAAOb3duZXJQdWJsaWNLZXkBAAAAID0HOFHYXYpCB2C8RjDY8m3ndBlb8WihoYLw1tvHVwgrBAAAAAthbW91bnRBc3NldAEAAAAg8cb6xRuScHLmBWbFioetE9WGLNVVfcb5i0bY3S5dOIQEAAAAEG1hdGNoZXJQdWJsaWNLZXkBAAAAIGRDQuXcp/doeH4AWAJKWAvM8pffT3ZEKdvTPqW98d8CBAAAAAckbWF0Y2gwBQAAAAJ0eAQAAAALYWxpY2VTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdHJhZGVyUHVibGljS2V5AAAAAAAAAAABAAAAAAAAAAAABAAAAAlib2JTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAOb3duZXJQdWJsaWNLZXkAAAAAAAAAAAEAAAAAAAAAAAAJAABnAAAAAgkAAGQAAAACBQAAAAthbGljZVNpZ25lZAUAAAAJYm9iU2lnbmVkAAAAAAAAAAACbDTDVw==",
"chainId": 84,
"height": 566038,
"spentComplexity": 0
}
View: original | compacted
Prev: 6dnNBBbMm2y69KBMoNrQAtiLjtNa9HWc6Eo1hM8DdeZx
Next: DXRxnqEFVFZt6DyHhfT3zRo1kFR1MRTacjSMnWXeRDkG
Diff:
Old | New | | Differences |
---|
6 | 6 | | let matcherPublicKey = base58'7kPFrHDiGw1rCm7LPszuECwWYL3dMf6iMifLRDJQZMzy' |
---|
7 | 7 | | match tx { |
---|
8 | 8 | | case _ => |
---|
9 | | - | true |
---|
| 9 | + | let aliceSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], traderPublicKey)) |
---|
| 10 | + | then 1 |
---|
| 11 | + | else 0 |
---|
| 12 | + | let bobSigned = if (sigVerify(tx.bodyBytes, tx.proofs[1], ownerPublicKey)) |
---|
| 13 | + | then 1 |
---|
| 14 | + | else 0 |
---|
| 15 | + | ((aliceSigned + bobSigned) >= 2) |
---|
10 | 16 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let traderPublicKey = base58'9j69PY62YXTQrc4X5RKJ2KWc7DsYFC4mGcKUvChtq8Pi' |
---|
4 | 4 | | let ownerPublicKey = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4' |
---|
5 | 5 | | let amountAsset = base58'HGoEZAsEQpbA3DJyV9J3X1JCTTBuwUB6PE19g1kUYXsH' |
---|
6 | 6 | | let matcherPublicKey = base58'7kPFrHDiGw1rCm7LPszuECwWYL3dMf6iMifLRDJQZMzy' |
---|
7 | 7 | | match tx { |
---|
8 | 8 | | case _ => |
---|
9 | | - | true |
---|
| 9 | + | let aliceSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], traderPublicKey)) |
---|
| 10 | + | then 1 |
---|
| 11 | + | else 0 |
---|
| 12 | + | let bobSigned = if (sigVerify(tx.bodyBytes, tx.proofs[1], ownerPublicKey)) |
---|
| 13 | + | then 1 |
---|
| 14 | + | else 0 |
---|
| 15 | + | ((aliceSigned + bobSigned) >= 2) |
---|
10 | 16 | | } |
---|