Replies: 2 comments
-
Currently, I am considering the following JSON payload: {
"aud": "nine-chronicles-chain",
"sub": "planetarium's arena service",
"my": "{My Address}",
"opp": "{Opponent Address}",
"iid": "{Interval Id}",
"nnc": "{Nonce}",
"iat": "10 (block index)",
"exp": "20 (block index)"
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ArenaService is designed to be operated by anyone, and it requires tokens to verify requests (e.g., checking if the target is valid or if the battle timing is allowed). The process is outlined in this chart: link.
While the exact token content is still under consideration, if we can successfully sign and verify a JWT using a 9c private key as discussed here: link, we could include battle validation data in the JWT and send it to the chain.
Beta Was this translation helpful? Give feedback.
All reactions