Light-Client
Implementation of the Light Client Verification Protocol.
Requirements
Tested with Rust 1.44+, may work on older versions.
Documentation
See documentation on crates.io.
Example
The code below demonstrates the main use case for the Tendermint Light Client: syncing to the latest block, verifying it, and performing fork detection.
Please refer to the light_client example for fully working code.
let primary_instance: Instance = make_instance;
let witness_instance: Instance = make_instance;
let mut peer_addr = new;
peer_addr.insert;
peer_addr.insert;
let peer_list = builder
.primary
.witness
.build;
let mut supervisor = new;
let mut handle = supervisor.handle;
// Spawn the supervisor in its own thread.
spawn;
loop
License
Copyright © 2020 Informal Systems
Licensed under the Apache License, Version 2.0 (the "License"); you may not use the files in this repository except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.