0.0.51 • Published 4 months ago

mind-sap-sdk v0.0.51

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

About

A zero-trust stealth address protocol based on CCIP.

Installation:

git clone https://github.com/mind-network/mind-sap-sdk
cd mind-sap-sdk
yarn install # install depedency package

Demo:

npm.io

Step 00: Configure test environment

  1. Create three wallets: Alice, Bob and Charlie. Top up relevant tokens for Alice and Bob on relevant chain for gas fees and transactions.
  2. Copy tests/config_test_template.ts into tests/config_test.ts
  3. Update tests/config_test.ts with credentials from Alice, Bob and Charlie

Step 01: Register Bob in MindSAP

so others (like Alice) can transfer into his stealth address.

yarn test-register-bob
yarn test-check-bob-isRegistered # optional

Step 1: EOA to SA bridge transfer

Alice transfers ERC20 (CCIP-BnM) on Ethereum Sepolia from her EOA wallet to Bob stealth address wallet on Polygon Mumbai.

yarn test-send-EOA_TO_SA_CCIPBridge
# get txHash and check status on CCIP Explorer

Step 2: Scan to locate and control SA

Bob can scan and fully access into his stealth address wallet on Polygon Mumbai.

yarn test-scan-bob-sa
# note down SA and ciphertext in order to spend in next step.
# check token and amount in SA

Step 3: SA to EOA transfer

Bob can transfer ERC20 (CCIP-BnM) from his stealth address wallet to Charlie's EOA wallet on Polygon Mumbai. Charlie is free to use ERC20 once received

# update sa_address and sa_ciphertext value from in tests/send.test.ts/SA_TO_EOA_MUMBAI
yarn test-send-SA_TO_EOA_MUMBAI
# note down txHash in result and validate on PolygonScan
# check Charlie's MetaMask wallet to see if token is received
0.0.51

4 months ago

0.0.50

4 months ago

0.0.48

4 months ago

0.0.49

4 months ago

0.0.42

4 months ago

0.0.43

4 months ago

0.0.44

4 months ago

0.0.40

4 months ago

0.0.41

4 months ago

0.0.39

4 months ago

0.0.37

4 months ago

0.0.38

4 months ago

0.0.30

4 months ago

0.0.31

4 months ago

0.0.32

4 months ago

0.0.33

4 months ago

0.0.34

4 months ago

0.0.35

4 months ago

0.0.36

4 months ago

0.0.29

4 months ago

0.0.20

4 months ago

0.0.21

4 months ago

0.0.22

4 months ago

0.0.23

4 months ago

0.0.24

4 months ago

0.0.25

4 months ago

0.0.26

4 months ago

0.0.27

4 months ago

0.0.28

4 months ago

0.0.12

5 months ago

0.0.13

5 months ago

0.0.11

5 months ago

0.0.10

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago