From 208762b4e5b5ac37399752b07023fcbc7ff6cbbd Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 15 Aug 2026 13:49:47 -0700 Subject: [PATCH] Add integrity hashes to imported packages and revert nanocurrency-web to its own script since it works by polluting the global namespace. --- test/index.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/test/index.html b/test/index.html index dab6324..8c6c447 100644 --- a/test/index.html +++ b/test/index.html @@ -13,8 +13,8 @@ SPDX-License-Identifier: GPL-3.0-or-later { "imports": { "libsodium": "https://unpkg.com/libsodium@0.8.4/dist/modules-esm/libsodium.mjs", + "libsodium-wrappers": "https://unpkg.com/libsodium-wrappers@0.8.4/dist/modules-esm/libsodium-wrappers.mjs", "nano25519": "https://unpkg.com/nano25519@1.0.8/dist/browser.js", - "nanocurrency-web": "https://unpkg.com/nanocurrency-web@2.0.0/dist/index.min.js", "tweetnacl": "https://unpkg.com/tweetnacl@1.0.3/nacl-fast.js", "#vectors": "https://git.codecow.com/?p=nano25519.git;a=blob_plain;f=vectors.mjs;hb=refs/heads/main" }, @@ -23,17 +23,27 @@ SPDX-License-Identifier: GPL-3.0-or-later "nano25519": "../dist/browser.js", "#vectors": "./vectors.mjs" } + }, + "integrity": { + "https://unpkg.com/libsodium@0.8.4/dist/modules-esm/libsodium.mjs": "sha512-8NozLMgdpZ2aM7BpDlekMIWsfF9pVq8fy1Gela2kBuP6DZmOd51NBxBZSbncxiDknW1EJYmu7Th3WYWhjgUygw==", + "https://unpkg.com/libsodium-wrappers@0.8.4/dist/modules-esm/libsodium-wrappers.mjs": "sha512-8lc4H4LWq+iFFPBBVIxpwTbOVJxeF0V4GgEDQIrlTOUzBEl7FT6zKQPoFi7prCeUVHnunjOyHrXgAFX7mWPupw==", + "https://unpkg.com/tweetnacl@1.0.3/nacl-fast.js": "sha512-vtXgmExiD+YrImVtOeCfoGiVKgouA3SgPHZbLQKcC972FeFo5i881KTOMxtK7dsZa2z5vjpyCpDSd1lGvJY3bg==" } } +