• Initialize TLSNotary WASM module

    This function initializes the underlying tlsn-js WASM module. The WASM files must be accessible from your web server.

    Setup Options:

    1. Using webpack helper (recommended):

      const { mergeTlsnWebpackConfig } = require('@kynesyslabs/demosdk/tlsnotary/webpack');
      module.exports = mergeTlsnWebpackConfig({ ... });
    2. Manual copy: Copy WASM files from node_modules/@kynesyslabs/demosdk/build/tlsnotary/wasm/ to your build output directory.

    Parameters

    Returns Promise<void>

    Error if WASM initialization fails

    import { initTlsn } from '@kynesyslabs/demosdk/tlsnotary';

    // Initialize before using TLSNotary
    await initTlsn({
    wasmBasePath: '/tlsn-wasm/', // Where you copied the WASM files
    loggingLevel: 'Info',
    });