JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q63470F
  • License Unlicense

Umarise Core SDK. Hash-in, proof-out. Zero dependencies.

Package Exports

  • @umarise/anchor

Readme

@umarise/anchor

Umarise Core SDK. Hash-in, proof-out. Zero dependencies.

Install

npm install @umarise/anchor

Quick Start

import { UmariseCore, hashBytes } from '@umarise/anchor';
import { readFile } from 'fs/promises';

const core = new UmariseCore({ apiKey: 'um_...' });

const bytes = await readFile('./document.pdf');
const hash = await hashBytes(bytes);
const origin = await core.attest(hash);
console.log('Origin:', origin.origin_id);

API

Method Auth Description
health() Public API health check
resolve({ originId }) Public Lookup by origin ID
resolve({ hash }) Public Lookup by hash
verify(hash) Public Check if hash has attestation
proof(originId) Public Download .ots proof
attest(hash) API Key Create attestation
hashBytes(data) SHA-256 hash utility

License

Unlicense (Public Domain)