tx · Bz9WuE64gkNhjA2M5uuaefhDYKtwq2Nbit2QDoEx3kEv
3Mv2MfC2igdCTgGx1wpEF3GxPqvFD3rwvgL: -0.01000000 Waves
2023.10.31 03:17 [2822075] smart account 3Mv2MfC2igdCTgGx1wpEF3GxPqvFD3rwvgL > SELF 0.00000000 Waves
{
"type": 13,
"id": "Bz9WuE64gkNhjA2M5uuaefhDYKtwq2Nbit2QDoEx3kEv",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1698711428667,
"version": 2,
"chainId": 84,
"sender": "3Mv2MfC2igdCTgGx1wpEF3GxPqvFD3rwvgL",
"senderPublicKey": "rbYfYDr4NWugEviYfXbUNGouFowM3uaXcYowkW8PXAa",
"proofs": [
"4uryeDrqDsJtAPSntUXCwmpbE23hLDNRpm8bKPqjaMcmfi3BQCGdCaNegv9JeUxcMgitt9Q9qDS9PNHQB93FkYu7"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAgAAAAEAAAAADlJTQVBVQkxJQzY0S0VZCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAAtyc2FQdWJsaWM2NAAAAAEAAAABaQEAAAAEY2FsbAAAAAIAAAAGZ2FtZUlkAAAAB3JzYVNpZ24EAAAACVJTQVBVQkxJQwkAAlsAAAABBQAAAA5SU0FQVUJMSUM2NEtFWQQAAAAHb3V0Y29tZQkACigAAAAEBQAAAAZTSEEyNTYJAAGbAAAAAQUAAAAGZ2FtZUlkBQAAAAdyc2FTaWduBQAAAAlSU0FQVUJMSUMJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAICAAAAB091dGNvbWUFAAAAB291dGNvbWUFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5j2a2pw==",
"height": 2822075,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7ucV8HaNcq6Ay7572uqB4ZnQa2nbSkWLochgK9MAwf2z
Next: Fxt74oMFSYgXRGYAGb9winQxQyVE4xTodcx7U3Lxtcie
Diff:
Old | New | | Differences |
---|
4 | 4 | | let RSAPUBLIC64KEY = getStringValue(this, "rsaPublic64") |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func call () = { |
---|
| 7 | + | func call (gameId,rsaSign) = { |
---|
8 | 8 | | let RSAPUBLIC = fromBase64String(RSAPUBLIC64KEY) |
---|
9 | | - | [BinaryEntry("Outcome", RSAPUBLIC)] |
---|
| 9 | + | let outcome = rsaVerify_16Kb(SHA256, toBytes(gameId), rsaSign, RSAPUBLIC) |
---|
| 10 | + | [BooleanEntry("Outcome", outcome)] |
---|
10 | 11 | | } |
---|
11 | 12 | | |
---|
12 | 13 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let RSAPUBLIC64KEY = getStringValue(this, "rsaPublic64") |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func call () = { |
---|
| 7 | + | func call (gameId,rsaSign) = { |
---|
8 | 8 | | let RSAPUBLIC = fromBase64String(RSAPUBLIC64KEY) |
---|
9 | | - | [BinaryEntry("Outcome", RSAPUBLIC)] |
---|
| 9 | + | let outcome = rsaVerify_16Kb(SHA256, toBytes(gameId), rsaSign, RSAPUBLIC) |
---|
| 10 | + | [BooleanEntry("Outcome", outcome)] |
---|
10 | 11 | | } |
---|
11 | 12 | | |
---|
12 | 13 | | |
---|
13 | 14 | | @Verifier(tx) |
---|
14 | 15 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
15 | 16 | | |
---|