Expand description
§Shadow Drive Rust
Rust SDK for GenesysGo’s Shadow Drive, a decentralized storage network.
§Basic Usage
ⓘ
//load keypair from file
let keypair = read_keypair_file(KEYPAIR_PATH).expect("failed to load keypair at path");
//create shdw drive client
let shdw_drive_client = ShadowDriveClient::new(keypair, "https://ssc-dao.genesysgo.net");Modules§
Structs§
- Byte
- Represent the n-bytes data. Use associated functions:
from_unit,from_bytes,from_str, to create the instance. - Commitment
Config - Keypair
- A vanilla Ed25519 key pair
- Pubkey
- The address of a Solana account.
- RpcClient
- A client of a remote Solana node.
- Shadow
Drive Client - Client that allows a user to interact with the Shadow Drive.
- Storage
Account - Storage
Config
Enums§
Traits§
- Signer
- The
Signertrait declares operations that all digital signature providers must support. It is the primary interface by which signers are specified inTransactionsigning interfaces
Functions§
- read_
keypair_ file - Reads a
Keypairfrom a file