tx · EiAe3AbGBS1p7VaNXnBjaG3oy92MvxnNBcM7jL91Ev5K

3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv:  -0.01400000 Waves

2019.11.08 12:12 [755783] smart account 3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv > SELF 0.00000000 Waves

{ "type": 13, "id": "EiAe3AbGBS1p7VaNXnBjaG3oy92MvxnNBcM7jL91Ev5K", "fee": 1400000, "feeAssetId": null, "timestamp": 1573204306598, "version": 1, "sender": "3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv", "senderPublicKey": "8M3Q3Umd3j8Awzm99M79fM53H8ciKVWraTxGrf9qktxT", "proofs": [ "3w46qypT2tXmvA4aEzQFsf4TnM1YNtSYj2BCWMabteEpCpMBCNxYEpdjpjFtPxbzw8sS5pyrZMNRqsAXiSHCwmVR" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgICCAAAAAEBAAAADHRvQnl0ZVZlY3RvcgAAAAEAAAACYnYEAAAAByRtYXRjaDAFAAAAAmJ2AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAANidjAFAAAAByRtYXRjaDAFAAAAA2J2MAkAAAIAAAABAgAAABNCeXRlVmVjdG9yIGV4cGVjdGVkAAAAAQAAAAFpAQAAAAdyZWdVc2VyAAAAAgAAAAp1c2VyUHViS2V5AAAAB21lc3NhZ2UJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAALdXNlclB1YktleV8JAAJYAAAAAQUAAAAKdXNlclB1YktleQUAAAAKdXNlclB1YktleQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAHbWVzc2FnZQUAAAAHbWVzc2FnZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAIdmVyaWZpZXIAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAA2ludgUAAAAHJG1hdGNoMAMJAAAAAAAAAggFAAAAA2ludgAAAAhmdW5jdGlvbgIAAAAHcmVnVXNlcgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAQAAAAx0b0J5dGVWZWN0b3IAAAABCQABkQAAAAIIBQAAAANpbnYAAAAEYXJncwAAAAAAAAAAAQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5DBIz2A==", "chainId": 84, "height": 755783, "spentComplexity": 0 } View: original | compacted Prev: 9UBdtZoNL8ZjpoSNt18rJXbV3tSporVAnBDseAthKG3E Next: BHjNFo7kcdE4qHjMro3YiHcaYWkcLyCYa8zbHJnaML5t Diff:
OldNewDifferences
1717 func verifier () = match tx {
1818 case inv: InvokeScriptTransaction =>
1919 if ((inv.function == "regUser"))
20- then sigVerify(tx.bodyBytes, tx.proofs[0], toByteVector(inv.args[0]))
20+ then sigVerify(tx.bodyBytes, tx.proofs[0], toByteVector(inv.args[1]))
2121 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2222 case _ =>
2323 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func toByteVector (bv) = match bv {
55 case bv0: ByteVector =>
66 bv0
77 case _ =>
88 throw("ByteVector expected")
99 }
1010
1111
1212 @Callable(i)
1313 func regUser (userPubKey,message) = WriteSet([DataEntry(("userPubKey_" + toBase58String(userPubKey)), userPubKey), DataEntry("message", message)])
1414
1515
1616 @Verifier(tx)
1717 func verifier () = match tx {
1818 case inv: InvokeScriptTransaction =>
1919 if ((inv.function == "regUser"))
20- then sigVerify(tx.bodyBytes, tx.proofs[0], toByteVector(inv.args[0]))
20+ then sigVerify(tx.bodyBytes, tx.proofs[0], toByteVector(inv.args[1]))
2121 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2222 case _ =>
2323 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2424 }
2525

github/deemru/w8io/169f3d6 
28.92 ms