Documentation
    Preparing search index...

    Interface ResolveNappletOptions

    Options for resolveNapplet.

    interface ResolveNappletOptions {
        cache?: NappletArtifactCache;
        event: NostrEvent;
        fetchBlob: (
            sha256Hex: string,
            servers: readonly string[],
        ) => Promise<Uint8Array<ArrayBufferLike>>;
        textDecode?: (bytes: Uint8Array) => string;
    }
    Index

    Properties

    Optional verified artifact cache. Cache hits are still re-verified against the manifest hash before use; cache writes happen only after the signature, aggregate, and every blob hash have been verified.

    event: NostrEvent

    The candidate manifest event (resolved from relays by the caller).

    fetchBlob: (
        sha256Hex: string,
        servers: readonly string[],
    ) => Promise<Uint8Array<ArrayBufferLike>>

    Fetch raw blob bytes by SHA-256. Backed by Blossom (or a gateway) by the caller. The bytes are re-verified against the hash here, so the fetcher is untrusted.

    textDecode?: (bytes: Uint8Array) => string

    Decode blob bytes to text for indexHtml (default UTF-8).