Skip to content

AnchoringTrust/umarise-anchor-sdk-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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)

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors