tendermint-light-client-js

Crates.iotendermint-light-client-js
lib.rstendermint-light-client-js
version0.37.0
sourcesrc
created_at2021-04-07 01:13:34.551376
updated_at2024-05-31 10:55:16.165597
description tendermint-light-client-js provides a lightweight, WASM-based interface to the Tendermint Light Client's verification functionality.
homepage
repositoryhttps://github.com/informalsystems/tendermint-rs
max_upload_size
id380109
size271,221
bftbot (bftbot)

documentation

README

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.

Commit count: 810

cargo fmt