Skip to content

Karak Offchain SDK

The Karak Offchain SDK is a Rust-based toolkit designed to simplify the development of Distributed Secure Services (DSSs). It provides wrappers and bindings to interact with Karak core contracts and onchain SDK libraries, and it includes additional tools and utilities that make it easier for developers to build essential offchain components for their DSS.

Parts of the SDK

  1. Key Management Service
  2. Karak Contract Interactions
  3. Peer to Peer

Install SDK

Karak SDK comprises of multiple crates, which have been broken down according to the above mentioned parts in the SDK. You can add these crates to your rust project in the following way:

  1. Key Management Service
cargo add karak-kms
  1. Core Contract Interactions
cargo add karak-contracts
  1. Peer to Peer
cargo add karak-p2p

A crate that imports all the above mentioned crates is karak-rs

cargo add karak-rs