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);
§Constructors
§
new UnresolvedProof({ hash, operations, remote }: UnresolvedProofOptions)
[src]@param hash
Input hash
@param operations
Proof operations
@param remote
Remote proof URL
§Properties
§Methods
§
isUnresolved(): this is UnresolvedProof
[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 { ... }
§
toJSON(): UnresolvedProofTemplate
[src]