seal

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SealJSONLD

func SealJSONLD(raw []byte) (string, []byte, error)

SealJSONLD takes raw JSON-LD bytes, canonicalizes using URDNA2015 (via piprate/json-gold), computes a CIDv1 (json-ld codec) using SHA2-256, and returns (cidString, canonicalBytes, error).

canonicalBytes are the N-Quads string returned by Normalize() encoded as UTF-8 bytes. The canonicalization step uses the URDNA2015 algorithm and produces deterministic output. The CID is encoded using base58btc (z prefix).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL