Hashgraph Cryptosuites SDK

Complete implementation of the W3C Data Integrity specification for creating and verifying data integrity proofs across decentralized systems.

Quick Start

npm install @the-hashgraph-group-ag/cryptosuites-core
npm install @the-hashgraph-group-ag/cryptosuites-eddsa-v1
npm install @the-hashgraph-group-ag/signer-internal-ed25519
import {
  ProofCreator,
  ProofVerifier,
  Signer,
  canonicalizer,
  hashing
} from '@the-hashgraph-group-ag/cryptosuites-core';

Core Features

  • W3C Data Integrity Compliance - Full implementation of the W3C Data Integrity specification

  • Multiple Cryptosuites - Support for EdDSA, Ed25519, and extensible architecture

  • JSON Canonicalization - RFC 8785 compliant JSON canonicalization

  • Flexible Signing - Abstract interfaces for custom signing implementations

  • TypeScript Support - Full TypeScript support with comprehensive type definitions

Architecture Overview

The SDK is built with a modular architecture consisting of:

  • Core Package - Fundamental interfaces and utilities (this package)

  • Cryptosuites - Implementation of specific cryptographic suites

  • Signers & Verifiers - Concrete signing and verification implementations

Package Information

Quick Navigation

Core Classes

Core Interfaces

Cryptographic Key Interfaces

  • ECJWK - Elliptic Curve key parameters

  • OKPJWK - Octet Key Pair parameters (Ed25519, Ed448, etc.)

  • OctJWK - Octet sequence key parameters

  • RSAJWK - RSA key parameters

Type Definitions

Utilities

Package Information

Getting Started

npm install @the-hashgraph-group-ag/cryptosuites-core
import {
  ProofCreator,
  ProofVerifier,
  Signer,
  canonicalizer,
  hashing
} from '@the-hashgraph-group-ag/cryptosuites-core';