MCPcopy Index your code
hub / github.com/cloudflare/opaque-ts

github.com/cloudflare/opaque-ts @0.7.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.7.5 ↗ · + Follow
259 symbols 575 edges 22 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

opaque-ts

This is a Typescript library for the Asymmetric Password-Authenticated Key Exchange (OPAQUE) protocol.

NPM

Use

Available at: @cloudflare/opaque-ts

 $ npm install @cloudflare/opaque-ts

Specification

IETF Draft: OPAQUE v07

Test and Coverage

 $ npm ci
 $ npm test

Dependencies

Uses @cloudflare/voprf-ts for the group and OPRF operations, WebCrypto API for hashing and key derivation functions, and @noble/hashes for scrypt memory-hard function.

License

BSD-3-Clause

Extension points exported contracts — how you extend this code

RegistrationServer (Interface)
(no doc) [3 implementers]
src/opaque_server.ts
AuthClient (Interface)
(no doc) [3 implementers]
src/opaque_client.ts
PrngFn (Interface)
(no doc) [2 implementers]
src/thecrypto.ts
Config (Interface)
(no doc) [1 implementers]
src/config.ts
inputsRaw (Interface)
(no doc)
test/vectors.test.ts
inputTest (Interface)
(no doc)
test/opaque_full.test.ts
inputTest (Interface)
(no doc)
test/credentials.test.ts
inputTest (Interface)
(no doc)
test/opaque_core.test.ts

Core symbols most depended-on inside this repo

joinAll
called by 28
src/util.ts
serialize
called by 26
src/messages.ts
deserialize
called by 25
src/messages.ts
checked_vector
called by 24
src/util.ts
sizeSerialized
called by 19
src/messages.ts
encStr
called by 14
src/common.ts
toString
called by 12
src/suites.ts
toHex
called by 11
test/common.ts

Shape

Method 130
Class 60
Function 44
Interface 24
Enum 1

Languages

TypeScript100%

Modules by API surface

src/messages.ts94 symbols
src/thecrypto.ts44 symbols
src/common.ts19 symbols
src/opaque_client.ts14 symbols
src/core_client.ts14 symbols
src/util.ts12 symbols
src/opaque_server.ts11 symbols
test/common.ts10 symbols
test/vectors.test.ts7 symbols
src/suites.ts6 symbols
src/core_server.ts6 symbols
src/3dh_server.ts5 symbols

For agents

$ claude mcp add opaque-ts \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact