
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@orangecheck/lock-core
Advanced tools
OC Lock envelope format, canonicalization, seal, and unseal. See https://github.com/orangecheck/oc-lock-protocol.
Envelope format, canonicalization, seal, and unseal for OC Lock.
npm i @orangecheck/lock-core
import { seal, unseal } from '@orangecheck/lock-core';
const env = await seal({
payload: new TextEncoder().encode('hello'),
sender: { address: 'bc1qalice…', signMessage: async (m) => walletSignBIP322(m) },
recipients: [
{ address: 'bc1qbob…', device_id: '…', device_pk: '…' /* from device registry */ },
],
});
// Share env as JSON. Recipient later:
const result = await unseal({
envelope: env,
device: { device_id: '…', secretKey: localDeviceSecret },
verifyBip322: async (msg, sig, addr) => { /* your verifier */ },
});
const plaintext = new TextDecoder().decode(result.payload);
seal(input) → LockEnvelopeunseal(input) → { payload, envelopeId, sender, matchedDeviceId }canonicalize(value) / canonicalBytes(value) — RFC 8785 JSON canonicalization with OC Lock's recipients[] sort ruleLockError — typed error class with protocol-defined codeLockEnvelope, EnvelopeRecipient, DeviceRecord, etc.See SPEC.md for the normative spec.
FAQs
OC Lock envelope format, canonicalization, seal, and unseal. See https://github.com/orangecheck/oc-lock-protocol.
The npm package @orangecheck/lock-core receives a total of 108 weekly downloads. As such, @orangecheck/lock-core popularity was classified as not popular.
We found that @orangecheck/lock-core 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.
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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.