block-core / blockcore-wallet

Web5 Wallet for your coins, tokens, identities, NFTs and more.
https://www.blockcore.net/wallet
MIT License
43 stars 33 forks source link

Prepare signing content using the handler #215

Closed sondreb closed 1 year ago

sondreb commented 1 year ago

We have handlers that handles signing and other actions that receives results either from prompt, or from persisted permission that user have given to the (web) app.

This task is to improve the behavior and use the handler to prepare the content to be verified by the user. This is because in some cases, like Blockcore Vault setup, the signing require custom input (domain name), and the result will be an dynamic JSON that includes the domain and other information from the DID, resulting in an DID Document.

Since the prompts can be approved for 5 minutes or forever, the UI cannot be doing any logic to the content, that must be done by the handler.

sondreb commented 1 year ago

This has been completed, there is now a prepare method on the handler.