Skip to content

Jonna1976/umarise-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

umarise

Minimal SDK for the Umarise Core v1 Anchoring API. Zero external dependencies. Python 3.8+.

Install

pip install umarise

Usage

from umarise import UmariseCore, hash_buffer
import os

core = UmariseCore(api_key=os.environ["UMARISE_API_KEY"])

with open("document.pdf", "rb") as f:
    file_hash = hash_buffer(f.read())

origin = core.attest(file_hash)
print(f"Origin: {origin.origin_id}")

Verify (no API key needed)

from umarise import UmariseCore, hash_buffer

core = UmariseCore()

with open("document.pdf", "rb") as f:
    file_hash = hash_buffer(f.read())

result = core.verify(file_hash)
if result:
    print(f"Existed since {result.captured_at}")

API

Method Auth Description
health() Public API health check
resolve(origin_id=...) Public Lookup by origin ID
resolve(hash=...) Public Lookup by hash
verify(hash) Public Check if hash has attestation
proof(origin_id) Public Download .ots proof file
attest(hash) API Key Create new attestation
hash_buffer(bytes) SHA-256 hash, no network

Full reference: https://umarise.com/api-reference

License

Unlicense — Public Domain

About

Minimal Python SDK for the Umarise Core v1 origin attestation API. Zero dependencies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages