Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(frontend): signer consent message #2955

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

peterpeterparker
Copy link
Member

Motivation

Before submitting any call to the IC, the OISY Wallet Signer library first fetches a consent message from the targeted canister (using the specified methods and arguments as payload) and prompts the user to decline or approve the call.

Notes

I anticipate several iterations in the future regarding this. However, from a specification standpoint, there isn’t much more we can do in terms of formatting. The standards are generic for any canister on the IC, and therefore the response currently contains only unstructured information.

Approving the consent message triggers the library to effectively execute the call canister.

Changes

  • Create a new consent message related component which handles the prompt and offer the user options to decline or approve the message.
  • Integrate the component in the /sign route

Screenshot

Capture d’écran 2024-10-16 à 18 43 13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant