Crate shadow_drive_sdk
source ·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
- Represent the n-bytes data. Use associated functions:
from_unit,from_bytes,from_str, to create the instance. - A vanilla Ed25519 key pair
- A client of a remote Solana node.
- Client that allows a user to interact with the Shadow Drive.
Enums
Traits
- The
Signertrait declares operations that all digital signature providers must support. It is the primary interface by which signers are specified inTransactionsigning interfaces
Functions
- Reads a
Keypairfrom a file