tx · 4fGMqfpeZ9H8yujFhY7sKWkWnP3vYVvugqC9jdMtXQQQ

3N5NY2v5wdKQJbCvQA5o5hSihn7t7wYZ496:  -0.01000000 Waves

2024.11.26 15:14 [3388365] smart account 3N5NY2v5wdKQJbCvQA5o5hSihn7t7wYZ496 > SELF 0.00000000 Waves

{ "type": 13, "id": "4fGMqfpeZ9H8yujFhY7sKWkWnP3vYVvugqC9jdMtXQQQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1732623319130, "version": 2, "chainId": 84, "sender": "3N5NY2v5wdKQJbCvQA5o5hSihn7t7wYZ496", "senderPublicKey": "8Ti3dhEToApephiZ47QJeuQX3UYifveNLPQjNstsLho9", "proofs": [ "3CiE5jZbFWRCS4evFvdSpswy1NDWmWdCHftxBj4utnShn9SgtYyFd42FBiSqy6K9fZMdM1kRbJ6fz6G1TBjerEE8" ], "script": "base64:AAIFAAAAAAAAAAoIAhIAEgQKAgICAAAAAQEAAAARc2VhcmNoRm9yQ291bnRlcnMAAAAABAAAABFzZWFyY2hGb3JDb3VudGVycwQAAAAHJG1hdGNoMAkABCIAAAABAgAAABFzdG9yZWRfcHVibGljX2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAgAAAAdObyBVc2VyBQAAABFzZWFyY2hGb3JDb3VudGVycwAAAAIAAAABaQEAAAARcmVnaXN0ZXJQdWJsaWNLZXkAAAAABAAAAAZwdWJLZXkIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAABFzdG9yZWRfcHVibGljX2tleQkAAlgAAAABBQAAAAZwdWJLZXkFAAAAA25pbAAAAAFpAQAAAAt2ZXJpZnlQcm9vZgAAAAIAAAAFcHJvb2YAAAAGaW5wdXRzBAAAAA9zdG9yZWRQdWJsaWNLZXkJAQAAABFzZWFyY2hGb3JDb3VudGVycwAAAAAEAAAADHN0b3JlZFZlY290cgkAAZsAAAABBQAAAA9zdG9yZWRQdWJsaWNLZXkDCQADIAAAAAMFAAAABXByb29mBQAAAAxzdG9yZWRWZWNvdHIFAAAABmlucHV0cwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAx2ZXJpZmljYXRpb24CAAAAB3N1Y2Nlc3MFAAAAA25pbAkAAAIAAAABAgAAABxJbnZhbGlkIFplcm8tS25vd2xlZGdlIFByb29mAAAAANgvqH4=", "height": 3388365, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: J5WcWLczipdooSDvjoTtcs8qaFosiuX4XtFsEsvJ428o Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a () = {
5+ let a = {
6+ let b = getString("stored_public_key")
7+ if ($isInstanceOf(b, "String"))
8+ then {
9+ let c = b
10+ c
11+ }
12+ else "No User"
13+ }
14+ a
15+ }
16+
17+
18+@Callable(d)
19+func registerPublicKey () = {
20+ let e = d.callerPublicKey
21+[StringEntry("stored_public_key", toBase58String(e))]
22+ }
23+
24+
25+
26+@Callable(d)
27+func verifyProof (f,g) = {
28+ let h = a()
29+ let i = toBytes(h)
30+ if (groth16Verify(f, i, g))
31+ then [StringEntry("verification", "success")]
32+ else throw("Invalid Zero-Knowledge Proof")
33+ }
34+
35+

github/deemru/w8io/026f985 
12.16 ms