Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Latest commit

 

History

History
78 lines (53 loc) · 1.59 KB

README.md

File metadata and controls

78 lines (53 loc) · 1.59 KB

WASM Exemplar

A complete implementation demonstrating the TBDex protocol flow using our TypeScript npm package.

Overview

This project showcases a full TBDex flow implementation using our TBDex WASM sdk. It demonstrates the interaction between a client and a PFI endpoint using the TBDex protocol.

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)
  • Git

Dependencies

  • TBDex TypeScript package
  • A running PFI endpoint

Getting Started

Setting up the PFI Endpoint

  1. Clone the PFI example repository:
git clone https://github.com/TBD54566975/tbdex-rs.git
cd tbdex-rs/examples/hosted-wallet-ts
  1. Install dependencies and start the PFI server:
npm install
npm run start:pfi

Running the WASM Exemplar

  1. Clone this repository:
git clone https://github.com/TBD54566975/wasm-exemplar
cd wasm-exemplar
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev

Usage

The application comes pre-configured with default Verifiable Credentials (VC) and Decentralized Identifier (DID) for testing purposes.

Quick Start

  1. Navigate to the application in your browser
  2. Click the "Execute Happy Path Flow" button to initiate a complete TBDex flow

Flow Visualization

TBDex Happy Path Flow

Architecture

This project demonstrates:

  • WASM integration with TBDex
  • Protocol message flow
  • PFI endpoint interaction
  • VC and DID handling

Development

Contributing

Please read our Contributing Guidelines before submitting pull requests.