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:
Using webpack helper (recommended):
const { mergeTlsnWebpackConfig } = require('@kynesyslabs/demosdk/tlsnotary/webpack');module.exports = mergeTlsnWebpackConfig({ ... }); Copy
const { mergeTlsnWebpackConfig } = require('@kynesyslabs/demosdk/tlsnotary/webpack');module.exports = mergeTlsnWebpackConfig({ ... });
Manual copy: Copy WASM files from node_modules/@kynesyslabs/demosdk/build/tlsnotary/wasm/ to your build output directory.
node_modules/@kynesyslabs/demosdk/build/tlsnotary/wasm/
Initialization options
Error if WASM initialization fails
import { initTlsn } from '@kynesyslabs/demosdk/tlsnotary';// Initialize before using TLSNotaryawait initTlsn({ wasmBasePath: '/tlsn-wasm/', // Where you copied the WASM files loggingLevel: 'Info',}); Copy
import { initTlsn } from '@kynesyslabs/demosdk/tlsnotary';// Initialize before using TLSNotaryawait initTlsn({ wasmBasePath: '/tlsn-wasm/', // Where you copied the WASM files loggingLevel: 'Info',});
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:
Using webpack helper (recommended):
Manual copy: Copy WASM files from
node_modules/@kynesyslabs/demosdk/build/tlsnotary/wasm/to your build output directory.