AbsoluteJS

@absolutejs/secure-messaging-federation-webcrypto

@absolutejs/secure-messaging-federation-webcryptov0.0.1betaMessaging

Web Crypto domain signatures and confidential abuse evidence for AbsoluteJS federation.

#Installation

BASH
bun add @absolutejs/secure-messaging-federation-webcrypto

#Capabilities

Overview

Standard Web Crypto providers for AbsoluteJS federation:

ECDSA P-256/SHA-256 domain signatures; and

RSA-OAEP/SHA-256 key wrapping plus AES-256-GCM confidential abuse evidence.

Show 2 more

The application owns key generation, private-key custody, domain discovery, rotation, revocation, and the public-key directory. Prefer non-exportable private keys or an HSM/KMS-backed adapter in production.

Evidence is encrypted at the endpoint directly to the chosen moderation public key. The report ID, alleged sender, selected message IDs, authorization, recipient key ID, and format version are authenticated as AES-GCM AAD. This provider emits receiver-asserted; it does not implement or claim cryptographic message franking.

Outcomes

What you can build

Build on the supported package contract

Use @absolutejs/secure-messaging-federation-webcrypto through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/secure-messaging-federation-webcrypto version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical @absolutejs/secure-messaging-federation-webcrypto example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#Public entry points

Supported entry points declared by this package manifest.

Package entry point declared in package.json.

@absolutejs/secure-messaging-federation-webcrypto@absolutejs/secure-messaging-federation-webcrypto/manifest@absolutejs/secure-messaging-federation-webcrypto/manifest.json

#Package commands

Scripts declared by this package manifest.

bun run buildrm -rf dist && bun build src/index.ts src/manifest.ts --outdir dist --root src --sourcemap --target=browser --external @absolutejs/secure-messaging-federation --external @absolutejs/manifest --external @sinclair/typebox && tsc --project tsconfig.build.json && absolute-manifest emit
bun run check:packagebun run format:check && bun run typecheck && bun run test && bun run build && bun run verify-package
bun run format:checkprettier --check "./**/*.{ts,json,md}"
bun run testbun test tests/
bun run typechecktsc --noEmit

#API reference

Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.

8 symbols
WebCryptoFederationSignatureOptionstypePermalinkSource
TS
type WebCryptoFederationSignatureOptions = {
    readonly keyId: string;
    readonly localDomain: string;
    readonly privateKey: CryptoKey;
    readonly resolvePublicKey: (input: {
        readonly algorithm: typeof SIGNATURE_ALGORITHM;
        readonly domain: string;
        readonly keyId: string;
    }) => Promise<CryptoKey | undefined>;
};
Exported from @absolutejs/secure-messaging-federation-webcrypto