Quickstart
1. Create a React + Typescript Project
npm create vite@latest sdk-test -- --template react-ts2. Install Dependencies
npm install @cardinal-cryptography/[email protected]
npm install @cardinal-cryptography/[email protected]
npm install @cardinal-cryptography/[email protected]
npm install viem @types/node @vitejs/plugin-react3. Configure Vite
import * as path from "path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
optimizeDeps: {
exclude: ["@cardinal-cryptography/shielder-sdk-crypto-wasm-light"],
},
});
4. Set Up WASM Cryptography Client
5. Initialize the Shielder SDK Client
6. Verify the Setup
Last updated

