Skip to content

zkshinedev/sdk-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

zkShine JavaScript SDK

Solana Zero Knowledge License Status

Official JavaScript SDK for zkShine, enabling private transactions, confidential compute, and zk-based identity operations on Solana.


📦 Installation

npm install @zkshine/sdk
# or
yarn add @zkshine/sdk


Basic Usage
import { zkShine } from "@zkshine/sdk";

// Initialize SDK
const zk = await zkShine.init({
  network: "mainnet-beta", // or "devnet"
  rpc: "https://api.mainnet-beta.solana.com",
});

// Generate private keypair
const wallet = await zk.createWallet();

// Deposit assets into zk pool
await zk.deposit({
  from: wallet.publicKey,
  amount: 1.5,
  token: "SOL",
});

// Withdraw with privacy key
await zk.withdraw({
  to: "DestinationPublicKey",
  key: "user-private-zk-key",
});

About

Official JavaScript SDK for zkShine — enabling privacy, proofs, and secure relaying on Solana.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published