Skip to content
QORECHAIN
Register

Encrypted Apps

LOANSHARK

Private one-to-one loans on QoreChain: sealed offers, signed terms, test-token settlement

Share on X

About

LOANSHARK is a private lending desk on QoreChain for one borrower and one lender. The borrower's loan request is encrypted in the browser with QoreSeal (ML-KEM-1024) so only the chosen lender can open it. The lender answers with an offer sealed for the borrower and signed with a hybrid secp256k1 and ML-DSA-87 signature that the app verifies against the keys registered on-chain. The borrower sees a plain checklist of whether the offer meets their limits, both sides sign the exact terms, and a settlement contract on Diana moves test tokens: fund, claim, repay, withdraw. Request and offer contents are private. Wallet addresses, amounts and timing on-chain are public, and the app says so before every action.

How it's made

TypeScript monorepo. QoreSeal and QoreSign for envelopes and hybrid signatures. A verifier that requires the post-quantum part of every signature and takes keys from the chain, never from the signed message. A salted agreement commitment bound to the chain and contract, checked identically in Solidity and TypeScript. A Hardhat-tested settlement contract with adversarial-token and invariant tests. A relay server that stores only ciphertext. A pre-flight check before every transaction that lists what becomes public. Hard part: QoreX will not register an ML-KEM key from a web page, so each person has a wallet account and a separate app-held seal account, bound together by a statement both sign. Every claim in the README links to a test and a recorded result; limits are listed openly, and what is not yet proven live is marked as such.

Timeline

LOANSHARKEncrypted Apps

Pushed 1 commit to main

  • a836ec8 fix(web): set the Vercel output directory for an apps/web root · DiverseXL(not counted: no real change)
LOANSHARKEncrypted Apps

Pushed 1 commit to main

  • 1756a16 fix(web): build every workspace dependency before the app · DiverseXL(not counted: no real change)
LOANSHARKEncrypted Apps

Pushed 1 commit to main

  • 3099ef5 docs(deployment): note the preview origin in the relay allowlist · DiverseXL
LOANSHARKEncrypted Apps

Pushed 3 commits to main

  • 64daaf4 fix(relay): bind fetch receiver and allow the preview origin · DiverseXL
  • 0d7fe38 docs(evidence): record hosting readiness and the relay fetch repair · DiverseXL
  • abde4c1 fix(web): build privacy-footprint before preflight · DiverseXL
LOANSHARKEncrypted Apps

Pushed 1 commit to main

  • 34b0238 feat(web): add hosted relay notice, vercel config, and deployment docs · DiverseXL
LOANSHARKEncrypted Apps

Pushed 1 commit to main

  • d43ff33 docs: record the green CI run and clear the stale CI limitations · DiverseXL
LOANSHARKEncrypted Apps

Pushed 1 commit to main

  • 801e4e1 fix(ci): build the whole workspace before typecheck · DiverseXL
LOANSHARKEncrypted Apps

Pushed 3 commits to main

  • 15e2a8a fix(ci): build workspace packages before typecheck · DiverseXL
  • 760824d fix(ci): allowlist the public values the secret scan flagged, not whole files · DiverseXL
  • 5caab22 docs: record the first CI run, its two causes and the local reproduction · DiverseXL
LOANSHARKEncrypted Apps

Pushed 7 commits to main

  • 2ff59db docs(adr): record the four-face font guard in ADR-0022 · DiverseXL
  • f9baa8f feat(web): simplify the shell navigation, connect state and read errors · DiverseXL
  • 41767fc docs(evidence): record the Step 14c simplification and its measurements · DiverseXL
  • 00d5f60 test(web): cover the plain-language rule on Home · DiverseXL
  • baa78cf fix(web): load the runtime deployment config on Diana · DiverseXL

and 2 more commits

LOANSHARKEncrypted Apps

Pushed 7 commits to main

  • 0ed0649 feat(web): adopt the Step 14b colour, type and spacing tokens · DiverseXL
  • 961c34b feat(web): rebuild the shell around one sidebar, header and banner slot · DiverseXL
  • dd5ce91 feat(web): rebuild Overview around four KPI cards and the action queue · DiverseXL
  • 64ba2b2 feat(web): add the Loans and Requests pages and split the loan detail · DiverseXL
  • 74b4ac6 feat(web): restyle the loan detail into the shell header and two columns · DiverseXL

and 2 more commits

LOANSHARKEncrypted Apps

Pushed 28 commits to main

  • 50b991d fix(lint): remove the five blocking diagnostics without suppressions · DiverseXL
  • 52e1d5c docs(adr): define the loan controller, lifecycle and money-flow guards · DiverseXL
  • 225046a feat(agreement): prove the qor1 parties decode to the contract terms · DiverseXL
  • a19c5e0 feat(loans): add the loan controller, money flows and the dashboard shell · DiverseXL
  • 6fc10a4 docs: record the Diana deployment and the read-only verification · DiverseXL

and 23 more commits

LOANSHARKEncrypted Apps

Earned a Ship Weeks badge.

LOANSHARKEncrypted Apps

Pushed 10 commits to main

  • 7d3edcc docs: close Step 11a with the coin-60 evidence and the new guard rows · DiverseXL
  • 659fb39 test(chain-client): verify the coin-60 signArbitrary response and its controls · DiverseXL
  • 3825a35 fix(wallet): identify the EVM account from the bech32 payload, not a derivation · DiverseXL
  • dc3605c docs(evidence): record the coin-60 account decode and on-chain record · DiverseXL
  • b8b6ace style: format the new browser tests · DiverseXL

and 5 more commits

LOANSHARKEncrypted Apps

Pushed 82 commits to main

  • f0e093a feat(relay): add public signed agreement confirmations · DiverseXL
  • ac1839c feat(negotiation): add the pure payload, encoding and reducer package · DiverseXL
  • d8c03a6 docs(adr): define the negotiation flow and payload schemas · DiverseXL
  • c69c4db test: allow the PBKDF2 vault cases to finish under parallel load · DiverseXL
  • 1222d29 chore: normalise line endings to LF on every platform · DiverseXL

and 77 more commits

LOANSHARKEncrypted Apps

New project.

Comments and questions

  • No comments yet.