This is a demo application to showcase using Elusiv's SDK with React and Webpack.
Have a look at the webpack.config.js to understand the polyfills required to make the SDK work in the browser. (Based on the overrides mentioned in CRA Starter provided by Solana)
Note: If you are using Solana Wallet Adapter, you can swap the sign
function for signing SEED_MESSAGE
with signMessage
function provided by the wallet adapter.
# 1. Clone the repo
git clone https://github.com/elusiv-privacy/elusiv-webpack-demo.git
# 2. Install dependencies
npm install
# 3. Add your private key and recipient key for send in src/helpers.ts and App.tsx respectively
# 4. Start the app
npm start