#tendermint #light-client #bft #consensus #blockchain

tendermint-light-client-js

tendermint-light-client-js provides a lightweight, WASM-based interface to the Tendermint Light Client's verification functionality

42 releases (21 breaking)

0.40.0 Oct 23, 2024
0.38.1 Jul 23, 2024
0.35.0 Mar 14, 2024
0.34.0 Oct 2, 2023
0.21.0 Jul 21, 2021

#9 in #light-client

Download history 129/week @ 2024-07-22 1/week @ 2024-07-29 223/week @ 2024-08-05 13/week @ 2024-08-12 30/week @ 2024-09-16 3/week @ 2024-09-23 27/week @ 2024-09-30 118/week @ 2024-10-21 9/week @ 2024-10-28

127 downloads per month

Apache-2.0

1MB
14K SLoC

Light-Client API for JavaScript

At present this just exposes the Tendermint Light Client's verification logic via WASM. This allows simple access to verification from JavaScript:

import * as LightClient from 'tendermint-light-client-js';

// Verify an untrusted block against a trusted one, given the specified options
// and current date/time.
let verdict = LightClient.verify(untrusted, trusted, options, now);

For an example of how to use this, please see the verifier-web example.


lib.rs:

Tendermint Light Client JavaScript/WASM interface.

This crate exposes some of the tendermint-light-client-verifier crate's functionality to be used from the JavaScript ecosystem.

For a detailed example, please see the verifier-web example in the repository.

Dependencies

~9MB
~168K SLoC