-
Notifications
You must be signed in to change notification settings - Fork 31
feat: compressed attestations #97
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
base: master
Are you sure you want to change the base?
feat: compressed attestations #97
Conversation
feat: add lint and format scripts, chore: remove version bump warnings feat: create compressed account test: create compressed attestation feat: add close compressed attestation test: close compressed attestation feat: compress attestations test: compress attestations fix: add minimum account size validation to prevent panics - Add MIN_ATTESTATION_SIZE (173 bytes) check in attestation.rs - Add MIN_CREDENTIAL_SIZE (41 bytes) check in credential.rs - Add MIN_SCHEMA_SIZE (51 bytes) check in schema.rs - Add MIN_INSTRUCTION_SIZE (174 bytes) check in create_compressed_attestation.rs - Return InvalidAccountData/InvalidInstructionData on undersized buffers fix: add account size validation for compressed attestations - Add minimum size constants to prevent panics in try_from_bytes - Add MAX_COMPRESSED_ATTESTATION_SIZE (350 bytes) to fit in 1232 byte mainnet MTU - Apply validation in create_compressed_attestation and compress_attestations - Add test verifying transaction sizes with 350 byte data refactor: compress attestations, add constant accounts to codama clients feat: add rust demo feat: add gill example feat: add kit example fix: token22 tests chore: add ci
dev-jodee
left a comment
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.
Just a couple of small optimizations / nits :)
examples/rust/attestation-flow-guide/compression-demo/Cargo.toml
Outdated
Show resolved
Hide resolved
examples/typescript/attestation-flow-guides/src/kit/sas-compressed-kit-demo.ts
Outdated
Show resolved
Hide resolved
- Add clients/rust/src/pdas.rs with centralized PDA derivation functions - Fix derive_schema_pda to use u8 version (1 byte) instead of u32 (4 bytes) - Use const-evaluated PDAs for EVENT_AUTHORITY and SAS_AUTHORITY - Update all compressed test files to use SDK PDA functions - Update compression-demo example to use SDK PDA functions - Move TestData and TestFixtures to helpers module
- Add thiserror derive to program errors for IDL export - Generate error enum in Rust client - Replace hardcoded error numbers with SolanaAttestationServiceError constants in tests
|
Generated with ❤️ by ellipsis.dev |
6c885f6 to
c1fc8e8
Compare
|
Thanks for the comments addressed all of them. remaining TODOs:
|
c1fc8e8 to
7da5fd3
Compare
3901b7d to
0514263
Compare
0514263 to
e4fa189
Compare
…ATTESTATION_SIZE 350 -> 550
6cc51cb to
f72fd84
Compare
Changes:
pinocchio0.9, forkedpinocchio-tokento bump the pinocchio version,solana2.3.0)generate-clients.jswith static compression accountsderiveCompressedAttestationPdafetchCompressedAttestationpinocchio-tokeninitialize metadata instruction builder (tests didn't pass at least post version bump)New Instructions:
Tests
TODO: