Developer Documentation

Build decentralized applications on the Ensanoth platform using blockchain-based identity and secure peer-to-peer protocols.

Get Started Now

Install & Setup

npm install @ensaonoth/core
ensaonoth init my-project

Initializes a new project with scaffolded identity management modules, peer networking layer, and blockchain storage interfaces.

View API Documentation

Peer Connection Example

import { createPeer } from '@ensaonoth/peer';

const peer = createPeer({
  id: 'USER1234',
  networks: ['ipfs', 'ethereum']
});

peer.connect('DEVELOPER5678').then(() => {
  // Secure peer-to-peer communication established
});

Platform Components

Identity Module

Manage self-sovereign identities using blockchain-based cryptographic keys. Identity metadata is stored in verifiable credentials format on IPFS.

Implementation Guide

Storage Module

Store encrypted data across distributed networks with access control policies. Uses SHA-3 hashing for data integrity verification.

Storage Integration

Network Module

Decentralized peer-to-peer networking using WebRTC with fallback to IPFS relay nodes. All communication is end-to-end encrypted.

Network Protocols

Core API Reference

Identity Management

{
  "did": "did:ethr:0x1234...",
  "publicKey": "0x123...def",
  "createdAt": "2025-09-23T10:45:00Z",
  "issuers": ["did:ethr:0xabcd..."],
  "claims": {
    "name": "Alice",
    "verified": true
  }
}

Create, verify, and manage decentralized identifiers across multiple blockchain networks.

Secure Communication

const message = {
  content: "Hello from Alice",
  to: "did:ethr:0xabcd...",
  encrypt: true,
  network: "webRTC"
};

peer.send(message).then(() => {
  console.log("Message delivered securely");
});

Send and receive encrypted messages across WebRTC and IPFS networks with automatic key exchange.