Skip to main content

@midnight-ntwrk/midnight-js-http-client-proof-provider v0.1.15 • API


Midnight.js API Reference v0.1.15 / @midnight-ntwrk/midnight-js-http-client-proof-provider / httpClientProofProvider

Function: httpClientProofProvider()

httpClientProofProvider<K>(url): ProofProvider<K>

Creates a ProofProvider by creating a client for a running proof server. Allows for HTTP and HTTPS. The data passed to 'proveTx' are intended to be secret, so usage of this function should be heavily scrutinized.

Type parameters

K extends string

Parameters

url: string

The url of a running proof server.

Returns

ProofProvider<K>