ww://
Docs
Docs/Getting Started/Quick Start

Quick Start Guide

Get up and running with The White Web in minutes. This guide will help you set up your environment and make your first integration.

Getting Started with The White Web Public Domain

The White Web Public Domain provides open access to trust-based technologies governed by the ETHEOS DAO. Follow these steps to get started:

Step 1: Install the SDK

First, install the Public Domain SDK using npm, yarn, or pnpm:

npm install @thewhiteweb/public-domain-sdk

Step 2: Initialize the SDK

Create a new instance of the SDK in your application:

import { PublicDomain } from '@thewhiteweb/public-domain-sdk';

// Initialize the SDK
const pd = new PublicDomain();

// Now you can use the SDK to interact with the Public Domain
const result = await pd.tru3.verifyCredential(credential);

Step 3: Explore the Components

The Public Domain SDK provides access to several key components:

  • TRU3 Protocol: For trust-based interactions with privacy-preserving verification.
  • The White Pages: For accessing the tamper-proof registry of verified data.
  • AO Integration: For scalable computation on the AO network.
  • Arweave Storage: For permanent storage of data.

Step 4: Create Your First Application

Let's create a simple application that verifies a credential using the TRU3 Protocol:

import { PublicDomain } from '@thewhiteweb/public-domain-sdk';

async function verifyCredential() {
  // Initialize the SDK
  const pd = new PublicDomain();
  
  // Create a sample credential (in a real application, this would come from elsewhere)
  const credential = {
    id: 'credential-123',
    type: ['VerifiableCredential', 'IdentityCredential'],
    issuer: 'did:tru3:abc123',
    subject: 'did:tru3:xyz789',
    claims: {
      name: 'John Doe',
      age: 25
    },
    proof: {
      // Credential proof would be here
    }
  };
  
  // Verify the credential
  const result = await pd.tru3.verifyCredential(credential);
  
  if (result.verified) {
    console.log('Credential verified!');
    console.log('Trust score:', result.trustScore);
  } else {
    console.log('Credential verification failed:', result.reason);
  }
}

verifyCredential();

Next Steps

Now that you've created your first application, you can explore more advanced features:

  • Learn how to create and issue credentials
  • Explore zero-knowledge proofs for privacy-preserving verification
  • Integrate with The White Pages for data discovery
  • Use AO for scalable computation
  • Store data permanently on Arweave

Check out the detailed documentation for each component to learn more.

Need Help?

If you're having trouble getting started, there are several ways to get help:

CLI Tool

Our CLI tool can help you troubleshoot common issues.

npm install -g @thewhiteweb/cli

Code Examples

Check out our GitHub repository for example projects.

View Examples