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

Add Ix Cards for Ed25519 Precompile #437

Merged
merged 4 commits into from
Jan 17, 2025
Merged

Add Ix Cards for Ed25519 Precompile #437

merged 4 commits into from
Jan 17, 2025

Conversation

ngundotra
Copy link
Collaborator

@ngundotra ngundotra commented Jan 16, 2025

Copy link

vercel bot commented Jan 16, 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 Jan 17, 2025 4:34am

cursor += 14; // Size of one Ed25519SignatureOffsets struct
}

return { count, offsets };
Copy link
Contributor

Choose a reason for hiding this comment

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

returned count is not needed/used. You can remove it unless there's another usage you're expecting

}

// See https://docs.anza.xyz/runtime/programs/#ed25519-program
function decodeEd25519Instruction(data: Buffer): { count: number; offsets: Ed25519SignatureOffsets[] } {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a couple unit tests for this?

@@ -166,6 +168,7 @@ function InstructionCard({
const key = `${index}-${childIndex}`;
const { program: anchorProgram } = useAnchorProgram(ix.programId.toString(), url);

console.log('ix', ix);
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove the console.log

@ngundotra ngundotra merged commit eaa9355 into master Jan 17, 2025
3 checks passed
@ngundotra ngundotra deleted the ed25519 branch January 17, 2025 04:39
ngundotra added a commit that referenced this pull request Jan 17, 2025
@ngundotra ngundotra restored the ed25519 branch January 17, 2025 04:54
ngundotra added a commit that referenced this pull request Jan 17, 2025
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