Documentation
    Preparing search index...

    Interface HashVerifierAdapter

    Hash verification adapter — runtime calls this to verify a napplet's declared aggregate hash against its actual file contents. Optional: if not provided, hash verification is skipped (dev mode).

    interface HashVerifierAdapter {
        computeHash(
            nappletUrl: string,
            manifestFiles: { hash: string; path: string }[],
        ): Promise<string | null>;
    }
    Index

    Methods

    Methods

    • Compute aggregate hash from the napplet's served files. Returns the computed hash, or null if files cannot be fetched.

      Parameters

      • nappletUrl: string

        Base URL of the napplet (iframe src)

      • manifestFiles: { hash: string; path: string }[]

        File paths and hashes from the manifest

      Returns Promise<string | null>

      Computed aggregate hash, or null on failure