Usage and signing data
After you have a logged in user
object from the callback or home page, you can do the following:
User information
Get the anonymous account ID
Get the username
Get the DID
Logout
The logout()
function logs out the current user from the application. It performs necessary actions such as clearing session data and revoking authentication tokens to ensure the user is securely logged out.
Signatures
Sign a W3C verifiable credential
Authenticate to your server
client-authentication.ts
server-verification.ts
You can also use the same flow above to send all requests, which adds integrity protection and non-repudiation to all requests to your server.
Sign a document
TODO
Sign a blockchain transaction
Step 1. Modify your Antelope smart contract to accept signatures from users signed into your registered app (see Register your app). If you have deployed the smart contract to the same account as your App, then you can get the permission name with get_self()
. If not, then you can use one of the Pangea helper functions to lookup the permission name with the origin or username.
eosio.token.cpp
Step 2. Use the API to sign the transaction
Sovereign storage vault
Store data
TODO
Request data
TODO
Send a peer-to-peer message
Last updated