amazon-qldb-kvs-nodejs
Version:
A helper module, simplifying basic interactions with Amazon Quantum Ledger Database for Node.js through a simple key-value store interface.
11 lines (10 loc) • 521 B
TypeScript
import { QLDB, ValueHolder } from "@aws-sdk/client-qldb";
/**
* Verify block by validating the proof returned in the getBlock response.
* @param ledgerName The ledger to get the digest from.
* @param blockAddress The address of the block to verify.
* @param qldbClient The QLDB control plane client to use.
* @returns Promise which fulfills with void.
* @throws Error: When verification fails.
*/
export declare function verifyBlock(ledgerName: string, blockAddress: ValueHolder, qldbClient: QLDB): Promise<void>;