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 searchForCounters () = {
5+ let searchForCounters = match getString("stored_public_key") {
6+ case s: String =>
7+ s
8+ case _ =>
9+ "No User"
10+ }
11+ searchForCounters
12+ }
13+
14+
15+@Callable(i)
16+func registerPublicKey () = {
17+ let pubKey = i.callerPublicKey
18+[StringEntry("stored_public_key", toBase58String(pubKey))]
19+ }
20+
21+
22+
23+@Callable(i)
24+func verifyProof (proof,inputs) = {
25+ let storedPublicKey = searchForCounters()
26+ let storedVecotr = toBytes(storedPublicKey)
27+ if (groth16Verify(proof, storedVecotr, inputs))
28+ then [StringEntry("verification", "success")]
29+ else throw("Invalid Zero-Knowledge Proof")
30+ }
31+
32+

github/deemru/w8io/026f985 
8.98 ms