Skip to content
项目

关于

KORE: a private dollar on Elysium. kUSD is backed 1:1 by USDC in an ownerless vault, moves through a ring-signature shielded pool and trades in a sealed-batch dark pool.

安全与隐私

这些数字如何统计

实测星标增长

24小时
0
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

KORE

A private dollar on Elysium (Hyperliquid's layer 2, chain id 99901).

  • kUSD is minted 1:1 against USDC held in KoreVault, a contract with no owner, no pause and no upgrade path. One kUSD redeems for one USDC less a 0.30% toll, in a single transaction.
  • The shielded pool (KorePool) takes fixed amounts of kUSD under one-time keys and pays them out against linkable ring signatures (LSAG on alt_bn128), verified on-chain with the curve precompiles. A withdrawal proves it owns one deposit in a ring of up to 16 without showing which.
  • The dark pool (KoreDark) trades kUSD against HYPE in sealed batches. An order is funded by a shielded note and carries only a hash of its limit price until the batch closes. The contract then computes one clearing price from the revealed orders and pays everyone at it. No operator, no price feed.
  • Payroll (KoreRouter) seals up to 32 notes in one transaction, straight from USDC. One run pays a list of people; each gets a link and claims on their own.
  • Invoices are links that carry one-time public keys. The payer funds them through the router in one transaction and never sees the recipient's address.
  • Agents: mcp/server.mjs is an MCP server that gives an AI agent twelve tools (status, mint, redeem, send, create / check / pay an invoice, list notes, claim). It runs on your machine; keys and notes never leave it. claude mcp add kore -- node /full/path/to/kore/mcp/server.mjs
  • Staking (KoreStaking) is the toll address of every contract. Stake $KORE and the 0.30% tolls are split among stakers in the tokens they were paid in. No lock, no owner.
  • Addresses (KoreInbox for dollars, KoreInboxHype for native HYPE) are reusable private addresses: one public key you can post anywhere, with every payment sealed under a fresh one-time key that only the owner can find or spend. See client/stealth.js.
  • Locks (KoreLock) pay a fixed rate in USDC on kUSD locked for 30 to 360 days. A lock is accepted only if its whole reward is already in the contract. No owner; the pool cannot be withdrawn.
  • Notes are the secret key of one deposit as text. Hand someone a note and they can claim it to any address; a relayer can send the claim so the receiver needs no gas.

The server in this repository serves the site, reads the contracts for /api/stats, and optionally relays withdrawals. It holds no user funds and keeps no ledger.

Layout

contracts/src/   KUSD.sol, KoreVault.sol, KorePool.sol (deployed for kUSD and for wrapped HYPE), KoreDark.sol,
                 KoreRouter.sol (many notes in one transaction: KORE Payroll)
                 (MockUSDC.sol and MockWHYPE.sol are for local chains only)
client/          landing page, app, docs, lsag.js (the ring-signature code), abi.js
server/index.js  static site + /api/config, /api/stats, /api/relay, /api/dark/*, and a keeper that settles batches
scripts/         deploy.mjs and shared helpers
test/            lsag.test.mjs (20 checks), e2e.mjs (54), dark.mjs (46), router.mjs (27), mcp.mjs (31), staking.mjs (31), lock.mjs (30), inbox.mjs (28), all on a local anvil chain

Run

Requires Node 22+ and Foundry.

npm install
npm run build
npm test
npm run dev      # local chain + contracts + relayer + site on http://localhost:8350

Deploy

SINK is the toll address. It is written into every contract and can never be changed. PERIOD (default 300) is the dark pool batch length in seconds, also fixed at deployment.

SINK=0x... DEPLOYER_KEY=0x... node scripts/deploy.mjs          # dry run
SINK=0x... DEPLOYER_KEY=0x... node scripts/deploy.mjs --yes    # deploys vault, both pools and the dark pool

The script writes deployments/99901.json, which the server reads on start.

Server environment

Variable Default Purpose
PORT 8350 HTTP port
RPC_URL https://rpc.elysium.kinetiq.xyz Elysium RPC
CHAIN_ID 99901
VAULT_ADDR, POOL_ADDR, HYPE_POOL_ADDR, DARK_ADDR from deployments/<chain>.json contract addresses
RELAYER_KEY unset key of a wallet holding a little HYPE; enables /api/relay. It pays gas only
RELAY_FEE 500000 relay fee in kUSD base units (0.50 kUSD)
RELAY_FEE_HYPE 20000000000000000 relay fee for HYPE notes, in wei (0.02 HYPE)
KORE_MINT unset $KORE token address shown on the site
X_URL, GH_URL unset header and footer links

Risks

The contracts are tested but not audited. Privacy depends on the other deposits in a ring. A lost note cannot be recovered. kUSD inherits USDC's risks.

MIT licence.

探索相关项目

加载中…