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

Sigverify Ed25519 Payload Decoding Standard #459

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ngundotra
Copy link
Collaborator

TBD - sRFC number (waiting on Drift)

This PR adds support for decoding Ed25519 payloads that reference another program's instructions.

Example transaction on devnet - for local testing

Future to-do:

  • When the Ed25519 precompile data is not externally referenced, meaning it is self-contained in the ed25519 ix data, then attempt to decode using the following outer-instruction's anchor idl.

Copy link

vercel bot commented Feb 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 7:32pm

const data = decodedMessage.data;

if (!name || !data) {
return null;

Choose a reason for hiding this comment

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

Should you instead just fallback to rendering the message as a base64 string like in the clause above?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yea you were right

@ngundotra ngundotra marked this pull request as draft February 27, 2025 00:26
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