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

Sign and remark attestation before updating NAV #2481

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

Conversation

sophialittlejohn
Copy link
Collaborator

@sophialittlejohn sophialittlejohn commented Oct 9, 2024

Description

This pull request implements signing a messages (attestations) before updating the nav. Substrate and EVM handle it slightly differently. For Substrate we're using signRaw and for EVM we're using EIP191 standard message signing.

#2431

Approvals

  • Dev

Screenshots

Impact

Copy link

github-actions bot commented Oct 9, 2024

PR deployed in Google Cloud
URL: https://pr2481-app-ff-production.k-f.dev
Commit #: 99ea16f
To access the functions directly check the corresponding deploy Action

Copy link

github-actions bot commented Oct 9, 2024

PR deployed in Google Cloud
URL: https://app-pr2481.k-f.dev
Commit #: 99ea16f
To access the functions directly check the corresponding deploy Action

)
: substrate.selectedWallet
? from(
cent.auth.generateJw3t(substrate.selectedAccount!.address, substrate.selectedWallet.signer as Signer)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The signed polkadot message should also have the portfolio content, otherwise it doesn't prove that the issuer attests to it. As the jw3t can't have any arbitrary content, we should probably use this: https://polkadot.js.org/docs/keyring/start/sign-verify/

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.

2 participants