tendermint-light-client-js 0.40.2

tendermint-light-client-js provides a lightweight, WASM-based interface to the Tendermint Light Client's verification functionality.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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:

```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].

[Tendermint Light Client]: ../light-client/
[verifier-web example]: ./examples/verifier-web/