Skip to content
ContractSpec
Start here

Package manual · foundation

·Identity, access and subject context

lib.crypto-utils

Zero-dependency browser and React Native compatible crypto helpers

foundationlibraryv2.0.4experimentalservernode
@lssm-tech/lib.crypto-utils
bun add @lssm-tech/lib.crypto-utils
Package source ↗Manifest ↗

Manifest declarations describe the current workspace; they do not verify registry publication or runtime execution.

Package guide

Builds use the canonical crypto root and retain all eight existing manifest subpaths. Module-closure emission shares hashing/encoding helpers across Node, Bun, and browser entries without adding Node core imports or runtime dependencies. Private source discovery cannot add public exports.

Zero-dependency browser, React Native, Expo, and Bun compatible helpers for SHA hashing, HMAC signatures, random bytes, and UUIDs.

This package intentionally avoids Node core modules and Node polyfill packages.

Workspace consumers resolve the TypeScript sources directly so clean monorepo and Vercel builds do not depend on a pre-existing dist directory. Published archives continue to use the compiled conditional export map from publishConfig.

Canonical JSON digests

@lssm-tech/lib.crypto-utils/canonical exports the existing synchronous canonicalize, digestCanonical and compareCanonicalStrings helpers. Object keys use ordinal ordering, undefined object members are omitted, array order is preserved, and non-finite numbers and unsupported values are rejected. Digests retain the sha256: prefix and lowercase hexadecimal encoding. The LSSM OS runtime canonical subpath forwards to this implementation.

Relationships

THIS PACKAGElib.crypto-utils9 import paths

Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.

0 declarations

No Runtime dependencies are declared here.

Declared capabilities

Lib Crypto Utils

Zero-dependency browser and React Native compatible crypto helpers

Scripts

  • cleanrm -rf dist
  • lintbun run lint:fix
  • lint:fixnode ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .
  • lint:checknode ../../../scripts/biome.cjs check .
  • publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
  • publish:pkg:canarybun publish:pkg --tag canary
  • buildcontractspec-bun-build build
  • postbuildnode ./scripts/cleanup-build.mjs
  • prepacknode ./scripts/prepare-package-manifest.mjs
  • build:bundlecontractspec-bun-build transpile
  • build:typescontractspec-bun-build types
  • devcontractspec-bun-build dev
  • prebuildcontractspec-bun-build prebuild
  • typechecktsgo --noEmit
  • testbun test
  • test:packnode ./scripts/verify-package.mjs