solana/sdk
behzad nouri 5dbf7d8f91
removes raw indexing into packet data (#25554)
Packets are at the boundary of the system where, vast majority of the
time, they are received from an untrusted source. Raw indexing into the
data buffer can open attack vectors if the offsets are invalid.
Validating offsets beforehand is verbose and error prone.

The commit updates Packet::data() api to take a SliceIndex and always to
return an Option. The call-sites are so forced to explicitly handle the
case where the offsets are invalid.
2022-06-03 01:05:06 +00:00
..
benches Refactor: move instructions sysvar serialization out of Message (#22544) 2022-01-20 17:33:49 +08:00
bpf Disallow deployment of deprecated _sol_alloc_free syscall (#25179) 2022-05-20 13:19:41 -07:00
cargo-build-bpf chore: bump regex from 1.5.5 to 1.5.6 (#25488) 2022-05-23 13:45:43 -06:00
cargo-test-bpf sdk: Add --jobs parameter in build/test bpf (#24359) 2022-04-15 13:49:43 +02:00
docker-solana Fix solana docker image 2021-10-09 20:35:39 +01:00
gen-headers chore: bump regex from 1.5.5 to 1.5.6 (#25488) 2022-05-23 13:45:43 -06:00
macro Add Ident case (#24390) 2022-04-15 16:27:25 -06:00
program Add new error if stake delegation is below the minimum (#25709) 2022-06-01 20:29:57 -05:00
src removes raw indexing into packet data (#25554) 2022-06-03 01:05:06 +00:00
tests fix: renamed the internal wasm_bindgen init function to avoid collision 2022-03-10 11:33:24 -08:00
.gitignore Add wasm bindings for `Pubkey` and `Keypair` 2021-12-09 15:53:58 -08:00
Cargo.toml chore: bump log from 0.4.16 to 0.4.17 (#24987) 2022-05-05 01:49:18 +00:00
README.md
build.rs
package.json Add wasm bindings for `Pubkey` and `Keypair` 2021-12-09 15:53:58 -08:00

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 Discord