
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@orangecheck/stamp-core
Advanced tools
OC Stamp canonical message, envelope format, stamp and verify. See https://github.com/orangecheck/oc-stamp-protocol.
Canonical message, envelope format, stamp(), and verify() for OC Stamp.
npm i @orangecheck/stamp-core
import { stamp, verify } from '@orangecheck/stamp-core';
// Produce a signed stamp envelope.
const env = await stamp({
content: new TextEncoder().encode('hello world'),
mime: 'text/plain',
signer: {
address: 'bc1qalice…',
signMessage: async (msg) => walletSignBIP322(msg),
},
});
// Share env as JSON, or via a URL fragment:
// https://stamp.ochk.io/v#<base64url(JSON)>
// OTS anchoring is a separate step — see @orangecheck/stamp-ots.
// A verifier, later:
const result = await verify({
envelope: env,
content: new TextEncoder().encode('hello world'),
verifyBip322: async (msg, sig, addr) => { /* your verifier */ },
});
if (!result.ok) throw new Error(`${result.code}: ${result.message}`);
stamp(input) → StampEnvelope — build a signed envelope. Leaves ots: null; anchoring is a later step.verify(input) → VerifyResult — full verification algorithm per SPEC §8. Returns a discriminated {ok: true, ...} | {ok: false, code, message}.canonicalMessage(input) → string — the exact bytes the signer signs via BIP-322.computeEnvelopeId(input) → string — lowercase hex of sha256(canonical_message).canonicalize(value) / canonicalizeEnvelope(env) — RFC 8785 JSON canonicalization.StampError — typed error with protocol-defined code.StampEnvelope, StampInput, VerifyInput, StampStake, etc.@orangecheck/stamp-ots to submit an envelope's id to OpenTimestamps calendars, parse returned proofs, and upgrade pending → confirmed.input.stake with an OrangeCheck attestation reference. Verifiers who care should re-resolve via @orangecheck/sdk.@orangecheck/wallet-adapter for the cross-wallet reference adapter.verify({ verifyBip322 }). Node environments can use bip322-js; browser environments can use the same via a Buffer polyfill.See SPEC.md for the normative spec.
FAQs
OC Stamp canonical message, envelope format, stamp and verify. See https://github.com/orangecheck/oc-stamp-protocol.
The npm package @orangecheck/stamp-core receives a total of 101 weekly downloads. As such, @orangecheck/stamp-core popularity was classified as not popular.
We found that @orangecheck/stamp-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.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.