0.0.2 • Published 11 months ago

@dwn-protocol/vc-sdk-wasm v0.0.2

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
11 months ago

vc-sdk-wasm

vc-sdk-wasm is a library that provides a WebAssembly (WASM) implementation for Verifiable Credentials SDK. It enables functionality in the browser and other JavaScript environments by compiling the SDK to a WASM file. This repository is responsible for building the main.wasm file and making it available as an npm package.

Table of Contents

Usage

To use the vc-sdk-wasm package, simply import it in your project (Note this only works in nodejs currently, to use in react you can follow the example in the example directory):

import * as VC from 'vc-sdk-wasm';

Build

To install the vc-sdk-wasm package, run:

yarn
yarn build

This will produce create the wasm file from the generation code in the wasm directory the following output files:

  • dist/index.js: Bundled JavaScript file
  • dist/main.wasm: Compiled WASM file

The build script also copies the main.wasm file to the apps/react/public/ directory.

Test

This contains a simple test to make sure all wasm functions are working properly

yarn test

Resources

ResourceDescription
CODE_OF_CONDUCTExpected behavior for project contributors, promoting a welcoming environment
CONTRIBUTINGDeveloper guide to build, test, run, access CI, chat, discuss, file issues
GOVERNANCEProject governance
LICENSEApache License, Version 2.0
0.0.2

11 months ago

0.0.1

12 months ago