
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Coze - A cryptographic JSON messaging specification designed for human readability.

For Coze, please see the README in the Main Coze Project.
For your project use coze.min.js.
If using Go, esbuild can be installed with the following.
go install github.com/evanw/esbuild/cmd/esbuild@v0.15.8
Alternatively, see esbuild's installation instructions
(See join.js for more instructions)
esbuild join.js --bundle --format=esm --minify --outfile=coze.min.js
cp coze.min.js verifier/coze.min.js
The simple verifier is self-contained in /verifier.
To run the simple verifier locally, especially useful for local development, use the Go server.
cd verifier
go run server.go
And then go to https://localhost:8082/coze.html in your browser.
Coze uses BrowserTestJS for running unit tests in the browser. The test can run as a Github page.
For local development, use the Go server.
cd verifier/browsertest
go run server.go
Then go to https://localhost:8082.
⚠️ Javascript is not constant time. Until there's something available with constant time guarantees, like constant time WASM, this library will be vulnerable to timing attacks as this problem is inherent to Javascript.
Duplicate detection is outside the scope of Coze JS because Coze JS uses Javascript objects which always have unique fields. Also, no JSON parsing is done inside of Coze JS, which uses last-value-wins. - Objects in ES6 defined with duplicate fields uses last-value-wins.
test_Duplicate.ES224 is not supported. Even though FIPS 186 defines curves P-224, the W3C recommendation omits it and thus is not implemented in Javascript. The Javascript version of Coze will probably only support ES256, ES384, and ES512.
The W3C Web Cryptography API recommendation also omits Ed25519, so an external package that implements the Ed25519 primitive is used. The upcoming update FIPS 186-5 section 7.8 specifies Ed25519 support. Hopefully this will motivate Javascript to include Ed25519. Also, Paul has implemented Ed25519ph.
TODO use Paul's curves library. Currently ESM builds are "broken", and we'll
wait for it to be polished. (The imports are using Typescript @ imports and
not resolving to ESM files.)
Also, we'll preserve the current style somewhere so that we have a SubtleCrypto backend that can be used.
Javascript's SubtleCrypto.sign(algorithm, key, data) always hashes a message
before signing while Go's ECDSA expects a digest to sign. This means that in
Javascript messages must be passed for signing, while in Go only a digest is
needed.
Coze and CozeJS are released under The 3-Clause BSD License.
"Cyphr.me" is a trademark of Cypherpunk, LLC. The Cyphr.me logo is all rights reserved Cypherpunk, LLC and may not be used without permission.
FAQs
Coze - A cryptographic JSON messaging specification designed for human readability.
We found that coze demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.