Skip to content

Instantly share code, notes, and snippets.

@peekpi
Last active April 26, 2022 05:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save peekpi/edeca003da4e2e94e35ae992908f2f9a to your computer and use it in GitHub Desktop.
Save peekpi/edeca003da4e2e94e35ae992908f2f9a to your computer and use it in GitHub Desktop.
CAPE On Harmony Testnet

Configurable Asset Privacy for Ethereum (CAPE)

Deployment info

CAPE_ADDRESS_BOOK_PORT=50000
CAPE_ADDRESS_BOOK_STORE_PATH=/run/user/0/cape-address-book-store-N3SIZwb
CAPE_ADDRESS_BOOK_URL=http://165.232.136.147:50000
CAPE_CONTRACT_ADDRESS=0xC607091ec20B866786391cFBb89a48011C06ab2a
CAPE_EQS_POLL_INTERVAL_MS=60000
CAPE_EQS_PORT=50010
CAPE_EQS_STORE_PATH=/run/user/0/cape-eqs-store-path-FEMh4lx
CAPE_EQS_URL=http://165.232.136.147:50010
CAPE_FAUCET_MANAGER_ADDRESS_X=0x26799b1c3aef8ad0aa85033184f65afdd2491cdd709be03b9af8d888de82e8e7
CAPE_FAUCET_MANAGER_ADDRESS_Y=0x24e1043af6870baa46e4994666fc45ee139e1d05ffb402ed932c0abd79e43642
CAPE_FAUCET_MANAGER_ENC_KEY=0xefbf0365f6f9c8b5546c054b90b08e82bb1f70cf39a6526386357a0132afb23b
CAPE_FAUCET_MANAGER_MNEMONIC=''
CAPE_FAUCET_PORT=50030
CAPE_FAUCET_URL=http://165.232.136.147:50030
CAPE_FAUCET_WALLET_MNEMONIC=''
CAPE_FAUCET_WALLET_PATH=/run/user/0/cape-faucet-wallet-xJq6tYB
CAPE_RELAYER_PORT=50020
CAPE_RELAYER_URL=http://165.232.136.147:50020
CAPE_RELAYER_WALLET_MNEMONIC=''
CAPE_TOKEN_ADDRESS=0xe6B00d9eA33b71A4BfCc1C5d440dB38a38228C81
CAPE_WALLET_MIN_POLLING_DELAY=60000
CAPE_WALLET_PORT=50040
CAPE_WEB3_PROVIDER_URL=https://api.s0.b.hmny.io

CAPE System Components

EQS

Service that monitors the state of the CAPE smart contract and provides an API to query that state.

EQS for harmony testnet: http://165.232.136.147:50010

Address Book

The CAPE Address Book maps user addresses to encryption public keys. Users publish their encryption public keys here. This is done by submitting their UserPubKey bundle (that includes both address and encryption public key) and signing the request using the user private key associated with the address. This way, it is infeasible to publish an invalid encryption key for a user.

This public mapping allows a sender to retrieve the encryption key associated with the recipient address. This is particularly important for the freezing feature: when the freezer releases records back to the original owners, it needs to know their encryption keys in order to produce owner memos for them.

The Address Book is a standalone web service.

Address-Book for harmony testnet: http://165.232.136.147:50000

Relayer

The Relayer is the component of the system that collects transactions from end users and submit them to the CAPE contract.

Relayer for harmony testnet: http://165.232.136.147:50020

FAUCET

A faucet service to issue CAPE native assets.

Faucet for harmony testnet: http://165.232.136.147:50030

WALLET-API

User entry point to the CAPE system. There are two ways to utilize a CAPE wallet: the CLI and the web API.

Wallet-API for harmony testnet: http://165.232.136.147:50040 Wallet-Usage: https://github.com/EspressoSystems/cape/tree/main/wallet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment