Crate shadow_drive_sdk

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§

constants
derived_addresses
error
models

Structs§

Byte
Represent the n-bytes data. Use associated functions: from_unit, from_bytes, from_str, to create the instance.
CommitmentConfig
Keypair
A vanilla Ed25519 key pair
Pubkey
The address of a Solana account.
RpcClient
A client of a remote Solana node.
ShadowDriveClient
Client that allows a user to interact with the Shadow Drive.
StorageAccount
StorageConfig

Enums§

StorageAccountVersion

Traits§

Signer
The Signer trait declares operations that all digital signature providers must support. It is the primary interface by which signers are specified in Transaction signing interfaces

Functions§

read_keypair_file
Reads a Keypair from a file