solana-with-rpc-optimizations/sdk
samkim-crypto b222fdf3d7
[zk-token-proof] Add functionality to read proof from accounts instead of instruction data (#34750)
* add functionality to read proof from accounts instead of instruction data

* update add tests

* clippy

* clarify instruction data discriminator

* avoid cloning entire proof data

* Update programs/zk-token-proof/src/lib.rs

Co-authored-by: Jon C <me@jonc.dev>

* update `PROOF_OFFSET_LENGTH` to `INSTRUCTION_DATA_LENGTH_WITH_PROOF_ACCOUNT`

* update instruction docs

* add feature gate

* Update sdk/src/feature_set.rs

Co-authored-by: Jon C <me@jonc.dev>

* update feature name `enable_zk_from_account` to `enable_zk_proof_from_account`

* Apply suggestions from code review

Co-authored-by: Jon C <me@jonc.dev>

* clarify the instruction data length more precisely

---------

Co-authored-by: Jon C <me@jonc.dev>
2024-01-13 08:15:44 +09:00
..
benches Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
bpf Bump platform-tools to v1.39 (#33804) 2023-10-21 16:22:16 -04:00
cargo-build-bpf clippy: Replaces .get(0) with .first() (#34048) 2023-11-13 17:22:17 -05:00
cargo-build-sbf Use BankForks on tests - Part 3 (#34248) 2023-12-01 13:47:22 -03:00
cargo-test-bpf clippy: Replaces .get(0) with .first() (#34048) 2023-11-13 17:22:17 -05:00
cargo-test-sbf Fix - Upcoming `arithmetic_side_effects` lints (#33000) 2023-08-29 20:58:53 +02:00
docker-solana repurposes tvu_forwards socket for TVU over QUIC (#32737) 2023-08-07 22:02:41 +00:00
gen-headers Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
macro Do not derive Copy for EpochSchedule and Rent (#32767) 2023-12-01 07:57:25 -08:00
program Populate partitioned-rewards PDA during calculation (#34624) 2024-01-11 23:15:55 -07:00
sbf Bump platform-tools to v1.39 (#33804) 2023-10-21 16:22:16 -04:00
src [zk-token-proof] Add functionality to read proof from accounts instead of instruction data (#34750) 2024-01-13 08:15:44 +09:00
tests
.gitignore
Cargo.toml sdk: put AccountSharedData::set_data() behind feature="dev-context-only-utils" (#33086) 2023-09-01 21:02:14 +07:00
README.md [docs] updated readme and fix links (#34565) 2024-01-03 09:06:06 -05:00
build.rs
package.json

README.md

Solana

Solana SDK

Use the Solana SDK Crate to write client side applications in Rust. If writing on-chain programs, use the Solana Program Crate instead.

More information about Solana is available in the Solana documentation.

The Solana Program Library provides examples of how to use this crate.

Still have questions? Ask us on Stack Exchange