-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
PR deployed in Google Cloud |
PR deployed in Google Cloud |
) | ||
: substrate.selectedWallet | ||
? from( | ||
cent.auth.generateJw3t(substrate.selectedAccount!.address, substrate.selectedWallet.signer as Signer) |
There was a problem hiding this comment.
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/
…on-before-nav-update
… price doesn't update properly due to domain restrictions
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
Screenshots
Impact