cometbft-light-client-js

Crates.iocometbft-light-client-js
lib.rscometbft-light-client-js
version0.1.0-alpha.2
sourcesrc
created_at2024-01-27 09:43:37.790201
updated_at2024-01-27 09:43:37.790201
description cometbft-light-client-js provides a lightweight, WASM-based interface to the CometBFT Light Client's verification functionality.
homepage
repositoryhttps://github.com/cometbft/cometbft-rs
max_upload_size
id1116628
size271,291
Romain Ruetschi (romac)

documentation

README

Light-Client API for JavaScript

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

import * as LightClient from 'cometbft-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: 0

cargo fmt