
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
@peac/protocol
Advanced tools
PEAC protocol implementation: receipt issuance, offline verification, and JWKS resolution.
pnpm add @peac/protocol
@peac/protocol is Layer 3 of the PEAC stack. It provides issue() for signing receipts and verifyLocal() for offline verification with Ed25519 public keys. No network calls needed for verification.
import { generateKeypair } from '@peac/crypto';
import { issue } from '@peac/protocol';
const { publicKey, privateKey } = await generateKeypair();
const { jws } = await issue({
iss: 'https://api.example.com',
kind: 'evidence',
type: 'org.peacprotocol/payment',
pillars: ['commerce'],
extensions: {
'org.peacprotocol/commerce': {
payment_rail: 'stripe',
amount_minor: '10000',
currency: 'USD',
},
},
privateKey,
kid: 'key-2026-02',
});
import { verifyLocal } from '@peac/protocol';
const result = await verifyLocal(jws, publicKey);
if (result.valid && result.wireVersion === '0.2') {
console.log(result.claims.iss); // issuer
console.log(result.claims.kind); // evidence
console.log(result.claims.type); // org.peacprotocol/payment
} else if (!result.valid) {
console.log(result.code, result.message);
}
Note:
verifyReceipt()is deprecated (Wire 0.1 only). For Wire 0.2 receipts, resolve the issuer's JWKS manually and pass the public key toverifyLocal(). Automated JWKS discovery for Wire 0.2 is planned for a future release.
import { verifyLocal } from '@peac/protocol';
// 1. Resolve issuer's /.well-known/peac-issuer.json -> jwks_uri -> public key
// 2. Pass the resolved key to verifyLocal()
const result = await verifyLocal(jws, resolvedPublicKey, {
issuer: 'https://api.example.com',
});
if (result.valid) {
console.log('Issuer:', result.claims.iss);
} else {
console.log(result.code, result.message);
}
@peac/crypto (Layer 2): Ed25519 key generation and JWS encoding@peac/kernel (Layer 0): Error codes and wire format constants@peac/schema (Layer 1): Receipt claim validation@peac/mcp-server (Layer 5): MCP tool server using protocol functions@peac/middleware-express (Layer 3.5): Express middleware for automatic receipt issuanceverifyLocal()Apache-2.0
PEAC Protocol is an open source project stewarded by Originary and community contributors.
FAQs
PEAC protocol implementation - receipt issuance and verification
The npm package @peac/protocol receives a total of 227 weekly downloads. As such, @peac/protocol popularity was classified as not popular.
We found that @peac/protocol demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.