Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

UnresolvedProof

import { UnresolvedProof } from "https://raw.githubusercontent.com/marigold-dev/tzstamp/0.3.4/proof/mod.ts";

Proof segment awaiting remote proof

class UnresolvedProof extends Proof {
constructor({ hash, operations, remote }: UnresolvedProofOptions);
readonly remote: string;
 
isUnresolved(): this is UnresolvedProof;
async resolve(): Promise<Proof>;
}

§Extends

§
Proof
[src]

§Constructors

§
new UnresolvedProof({ hash, operations, remote }: UnresolvedProofOptions)
[src]
@param hash

Input hash

@param operations

Proof operations

@param remote

Remote proof URL

§Properties

§
remote: string
[src]

Remote proof URL

§Methods

§
isUnresolved(): this is UnresolvedProof
[src]
§
resolve(): Promise<Proof>
[src]

Tries to fetch and concatenate the remote proof.

Throws if a network connection cannot be established.

Throws FetchError if the request response status was not 200.

Throws SyntaxError if the response body is not JSON.

Throws MismatchedHashError if the derivation of the current proof differs from the input hash of the resolved proof.

await unresolvedProof.resolve();
// AffixedProof { ... }