- Persona tags are human readable — A persona tag is similar to a gamer tag or a username, you can use alphanumeric (a to z, 0 to 9, and underscores) to represent yourself. Unlike Ethereum accounts, they are not a 40 character hex string, making it easier to remember and share.
- Multiple personas per Ethereum account — This allows you to easily switch between multiple Persona using a single EVM account.
- Authorize other Ethereum accounts to act on behalf of your persona — In Ethereum, the only way to share access to your EOA account is to share your private key; this is impractical due to security reasons. In Cardinal, you can authorize other Ethereum accounts to use your persona, allowing them to act on your behalf without sharing your private key. This is useful for smart contracts that need to act on behalf of a user, or for a user to delegate access to another user.
Persona In Systems
Within a system, you can loop over transactions of a particular type. These transactions called TxData contain the following methods:-
Msg
returns the custom message data that you set up when you initially called NewMessageType. -
Tx
returns the Transaction, a struct containing signature information, including the Persona that was used to sign the transaction. -
Hash
returns the hash of the transaction.
Nakama
The easiest way to set up a Persona Tag with your cardinal game it to use the Cardinal plugin for Nakama. The/nakama/claim-persona
RPC endpoint takes a request with a body of: