Skip to content

Conversation

@ngundotra
Copy link
Contributor

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.

@vercel
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
Contributor 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.

3 participants