@dxos/vendor-hypercore 0.8.4-main.1da679c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +8 -0
- package/dist/lib/browser/chunk-XAJ5RWMK.mjs +223 -0
- package/dist/lib/browser/chunk-XAJ5RWMK.mjs.map +7 -0
- package/dist/lib/browser/hypercore-crypto.mjs +25 -0
- package/dist/lib/browser/hypercore-crypto.mjs.map +7 -0
- package/dist/lib/browser/hypercore.mjs +10187 -0
- package/dist/lib/browser/hypercore.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -0
- package/dist/lib/node-esm/chunk-IEADO42Y.mjs +222 -0
- package/dist/lib/node-esm/chunk-IEADO42Y.mjs.map +7 -0
- package/dist/lib/node-esm/hypercore-crypto.mjs +25 -0
- package/dist/lib/node-esm/hypercore-crypto.mjs.map +7 -0
- package/dist/lib/node-esm/hypercore.mjs +9630 -0
- package/dist/lib/node-esm/hypercore.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/package.json +41 -0
- package/src/empty.js +13 -0
- package/src/hypercore-crypto-stub.js +11 -0
- package/src/hypercore-crypto.d.ts +22 -0
- package/src/hypercore-crypto.js +1 -0
- package/src/hypercore.d.ts +299 -0
- package/src/hypercore.js +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"../../node_modules/.pnpm/last-one-wins@1.0.4/node_modules/last-one-wins/index.js":{"bytes":712,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/unordered-array-remove@1.0.2/node_modules/unordered-array-remove/index.js":{"bytes":212,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js":{"bytes":677,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js":{"bytes":5856,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/merkle-tree-stream@4.0.0/node_modules/merkle-tree-stream/generator.js":{"bytes":1621,"imports":[{"path":"../../node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"}],"format":"cjs"},"../../node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js":{"bytes":1956,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/atomic-batcher@1.0.2/node_modules/atomic-batcher/index.js":{"bytes":1230,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js":{"bytes":753,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/encode.js":{"bytes":452,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/decode.js":{"bytes":515,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/length.js":{"bytes":471,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/index.js":{"bytes":134,"imports":[{"path":"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/encode.js","kind":"require-call","original":"./encode.js"},{"path":"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/decode.js","kind":"require-call","original":"./decode.js"},{"path":"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/length.js","kind":"require-call","original":"./length.js"}],"format":"cjs"},"../../node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js":{"bytes":356,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js":{"bytes":4094,"imports":[{"path":"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/index.js","kind":"require-call","original":"varint"},{"path":"../../node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js","kind":"require-call","original":"buffer-alloc-unsafe"}],"format":"cjs"},"../../node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js":{"bytes":3731,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js":{"bytes":2303,"imports":[{"path":"../../node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js","kind":"require-call","original":"memory-pager"}],"format":"cjs"},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/bitfield.js":{"bytes":8371,"imports":[{"path":"../../node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"../../node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js","kind":"require-call","original":"bitfield-rle"},{"path":"../../node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js","kind":"require-call","original":"memory-pager"},{"path":"../../node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js","kind":"require-call","original":"sparse-bitfield"}],"format":"cjs"},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js":{"bytes":4624,"imports":[{"path":"../../node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"../../node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js","kind":"require-call","original":"sparse-bitfield"}],"format":"cjs"},"../../node_modules/.pnpm/buffer-fill@1.0.0/node_modules/buffer-fill/index.js":{"bytes":2433,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/buffer-alloc@1.2.0/node_modules/buffer-alloc/index.js":{"bytes":664,"imports":[{"path":"../../node_modules/.pnpm/buffer-fill@1.0.0/node_modules/buffer-fill/index.js","kind":"require-call","original":"buffer-fill"},{"path":"../../node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js","kind":"require-call","original":"buffer-alloc-unsafe"}],"format":"cjs"},"../../node_modules/.pnpm/uint64be@2.0.2/node_modules/uint64be/index.js":{"bytes":637,"imports":[{"path":"../../node_modules/.pnpm/buffer-alloc@1.2.0/node_modules/buffer-alloc/index.js","kind":"require-call","original":"buffer-alloc"}],"format":"cjs"},"../../node_modules/.pnpm/hypercore-cache@1.0.2/node_modules/hypercore-cache/index.js":{"bytes":2818,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/cache.js":{"bytes":777,"imports":[{"path":"../../node_modules/.pnpm/hypercore-cache@1.0.2/node_modules/hypercore-cache/index.js","kind":"require-call","original":"hypercore-cache"}],"format":"cjs"},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/storage.js":{"bytes":10122,"imports":[{"path":"../../node_modules/.pnpm/uint64be@2.0.2/node_modules/uint64be/index.js","kind":"require-call","original":"uint64be"},{"path":"../../node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/cache.js","kind":"require-call","original":"./cache"}],"format":"cjs"},"../../node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js":{"bytes":611,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js":{"bytes":4243,"imports":[{"path":"sodium-universal","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js","kind":"require-call","original":"uint64be"}],"format":"cjs"},"../../node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/browser.js":{"bytes":58,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js":{"bytes":219,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js":{"bytes":1199,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/safe-buffer-equals.js":{"bytes":185,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js":{"bytes":438,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js":{"bytes":7293,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher.js":{"bytes":2722,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_aead","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js":{"bytes":3101,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/helpers","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher.js","kind":"require-call","original":"./cipher"}],"format":"cjs"},"../../node_modules/.pnpm/nanoassert@1.1.0/node_modules/nanoassert/index.js":{"bytes":396,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/hmac-blake2b@2.0.0/node_modules/hmac-blake2b/index.js":{"bytes":1520,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/nanoassert@1.1.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js":{"bytes":1092,"imports":[{"path":"sodium-universal/crypto_kx","kind":"require-call","external":true},{"path":"sodium-universal/crypto_scalarmult","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js":{"bytes":1482,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"../../node_modules/.pnpm/hmac-blake2b@2.0.0/node_modules/hmac-blake2b/index.js","kind":"require-call","original":"hmac-blake2b"},{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js","kind":"require-call","original":"./dh"}],"format":"cjs"},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js":{"bytes":4758,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js","kind":"require-call","original":"./cipher-state"},{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js","kind":"require-call","original":"./hash"}],"format":"cjs"},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/handshake-state.js":{"bytes":12735,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"../../node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js","kind":"require-call","original":"clone"},{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js","kind":"require-call","original":"./symmetric-state"},{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js","kind":"require-call","original":"./cipher-state"},{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js","kind":"require-call","original":"./dh"}],"format":"cjs"},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/index.js":{"bytes":46,"imports":[{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/handshake-state.js","kind":"require-call","original":"./handshake-state"}],"format":"cjs"},"../../node_modules/.pnpm/simple-handshake@3.0.0/node_modules/simple-handshake/index.js":{"bytes":4170,"imports":[{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/index.js","kind":"require-call","original":"noise-protocol"},{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js","kind":"require-call","original":"noise-protocol/symmetric-state"},{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js","kind":"require-call","original":"noise-protocol/hash"},{"path":"../../node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/encode.js":{"bytes":452,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/decode.js":{"bytes":508,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/length.js":{"bytes":471,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js":{"bytes":134,"imports":[{"path":"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/encode.js","kind":"require-call","original":"./encode.js"},{"path":"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/decode.js","kind":"require-call","original":"./decode.js"},{"path":"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/length.js","kind":"require-call","original":"./length.js"}],"format":"cjs"},"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/handshake.js":{"bytes":3605,"imports":[{"path":"../../node_modules/.pnpm/simple-handshake@3.0.0/node_modules/simple-handshake/index.js","kind":"require-call","original":"simple-handshake"},{"path":"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js","kind":"require-call","original":"noise-protocol/dh"},{"path":"../../node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/encode.js":{"bytes":452,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/decode.js":{"bytes":508,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/length.js":{"bytes":471,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/index.js":{"bytes":134,"imports":[{"path":"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/encode.js","kind":"require-call","original":"./encode.js"},{"path":"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/decode.js","kind":"require-call","original":"./decode.js"},{"path":"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/length.js","kind":"require-call","original":"./length.js"}],"format":"cjs"},"../../node_modules/.pnpm/signed-varint@2.0.1/node_modules/signed-varint/index.js":{"bytes":435,"imports":[{"path":"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/ascii.js":{"bytes":532,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/base64.js":{"bytes":1555,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/hex.js":{"bytes":1129,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/utf8.js":{"bytes":2919,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/utf16le.js":{"bytes":732,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/browser.js":{"bytes":11880,"imports":[{"path":"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/ascii.js","kind":"require-call","original":"./lib/ascii"},{"path":"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/base64.js","kind":"require-call","original":"./lib/base64"},{"path":"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/hex.js","kind":"require-call","original":"./lib/hex"},{"path":"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/utf8.js","kind":"require-call","original":"./lib/utf8"},{"path":"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/utf16le.js","kind":"require-call","original":"./lib/utf16le"}],"format":"cjs"},"../../node_modules/.pnpm/protocol-buffers-encodings@1.2.0/node_modules/protocol-buffers-encodings/index.js":{"bytes":6489,"imports":[{"path":"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/index.js","kind":"require-call","original":"varint"},{"path":"../../node_modules/.pnpm/signed-varint@2.0.1/node_modules/signed-varint/index.js","kind":"require-call","original":"signed-varint"},{"path":"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/browser.js","kind":"require-call","original":"b4a"}],"format":"cjs"},"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/messages.js":{"bytes":30739,"imports":[{"path":"../../node_modules/.pnpm/protocol-buffers-encodings@1.2.0/node_modules/protocol-buffers-encodings/index.js","kind":"require-call","original":"protocol-buffers-encodings"}],"format":"cjs"},"../../node_modules/.pnpm/xsalsa20@1.2.0/node_modules/xsalsa20/xsalsa20.js":{"bytes":4411,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/xsalsa20@1.2.0/node_modules/xsalsa20/index.js":{"bytes":12986,"imports":[{"path":"../../node_modules/.pnpm/xsalsa20@1.2.0/node_modules/xsalsa20/xsalsa20.js","kind":"require-call","original":"./xsalsa20"}],"format":"cjs"},"../../node_modules/.pnpm/xsalsa20-universal@1.0.0/node_modules/xsalsa20-universal/browser.js":{"bytes":262,"imports":[{"path":"../../node_modules/.pnpm/xsalsa20@1.2.0/node_modules/xsalsa20/index.js","kind":"require-call","original":"xsalsa20"}],"format":"cjs"},"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/xor.js":{"bytes":609,"imports":[{"path":"../../node_modules/.pnpm/xsalsa20-universal@1.0.0/node_modules/xsalsa20-universal/browser.js","kind":"require-call","original":"xsalsa20-universal"},{"path":"../../node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"}],"format":"cjs"},"../../node_modules/.pnpm/simple-message-channels@1.2.1/node_modules/simple-message-channels/index.js":{"bytes":5278,"imports":[{"path":"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/index.js":{"bytes":7913,"imports":[{"path":"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/handshake.js","kind":"require-call","original":"./lib/handshake"},{"path":"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/messages.js","kind":"require-call","original":"./messages"},{"path":"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/xor.js","kind":"require-call","original":"./lib/xor"},{"path":"../../node_modules/.pnpm/simple-message-channels@1.2.1/node_modules/simple-message-channels/index.js","kind":"require-call","original":"simple-message-channels"},{"path":"../../node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"../../node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js":{"bytes":620,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js":{"bytes":3630,"imports":[{"path":"../../node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js","kind":"require-call","original":"codecs"}],"format":"cjs"},"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js":{"bytes":3024,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js":{"bytes":6915,"imports":[{"path":"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js","kind":"require-call","original":"ms"}],"format":"cjs"},"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js":{"bytes":6103,"imports":[{"path":"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js","kind":"require-call","original":"./common"}],"format":"cjs"},"../../node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js":{"bytes":15546,"imports":[{"path":"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/index.js","kind":"require-call","original":"simple-hypercore-protocol"},{"path":"../../node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"../../node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js","kind":"require-call","original":"timeout-refresh"},{"path":"../../node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/browser.js","kind":"require-call","original":"inspect-custom-symbol"},{"path":"../../node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js","kind":"require-call","original":"nanoguard"},{"path":"../../node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js","kind":"require-call","original":"pretty-hash"},{"path":"../../node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js","kind":"require-call","original":"abstract-extension"},{"path":"streamx","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js","kind":"require-call","original":"debug"}],"format":"cjs"},"../../node_modules/.pnpm/count-trailing-zeros@1.0.1/node_modules/count-trailing-zeros/ctz.js":{"bytes":226,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/fast-bitfield@1.2.2/node_modules/fast-bitfield/index.js":{"bytes":10700,"imports":[{"path":"../../node_modules/.pnpm/count-trailing-zeros@1.0.1/node_modules/count-trailing-zeros/ctz.js","kind":"require-call","original":"count-trailing-zeros"}],"format":"cjs"},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/replicate.js":{"bytes":23715,"imports":[{"path":"../../node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js","kind":"require-call","original":"hypercore-protocol"},{"path":"../../node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js","kind":"require-call","original":"timeout-refresh"},{"path":"../../node_modules/.pnpm/fast-bitfield@1.2.2/node_modules/fast-bitfield/index.js","kind":"require-call","original":"fast-bitfield"},{"path":"../../node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js","kind":"require-call","original":"unordered-set"},{"path":"../../node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js","kind":"require-call","original":"bitfield-rle"},{"path":"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js","kind":"require-call","original":"./tree-index"}],"format":"cjs"},"../../node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js":{"bytes":3204,"imports":[{"path":"@dxos/node-std/events","kind":"require-call","external":true},{"path":"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js","kind":"require-call","original":"inherits"}],"format":"cjs"},"src/empty.js":{"bytes":282,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/hypercore-streams@1.0.1/node_modules/hypercore-streams/index.js":{"bytes":1970,"imports":[{"path":"streamx","kind":"require-call","external":true}],"format":"cjs"},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js":{"bytes":50005,"imports":[{"path":"../../node_modules/.pnpm/last-one-wins@1.0.4/node_modules/last-one-wins/index.js","kind":"require-call","original":"last-one-wins"},{"path":"../../node_modules/.pnpm/unordered-array-remove@1.0.2/node_modules/unordered-array-remove/index.js","kind":"require-call","original":"unordered-array-remove"},{"path":"../../node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js","kind":"require-call","original":"unordered-set"},{"path":"../../node_modules/.pnpm/merkle-tree-stream@4.0.0/node_modules/merkle-tree-stream/generator.js","kind":"require-call","original":"merkle-tree-stream/generator"},{"path":"../../node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"../../node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js","kind":"require-call","original":"codecs"},{"path":"../../node_modules/.pnpm/atomic-batcher@1.0.2/node_modules/atomic-batcher/index.js","kind":"require-call","original":"atomic-batcher"},{"path":"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js","kind":"require-call","original":"inherits"},{"path":"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/bitfield.js","kind":"require-call","original":"./lib/bitfield"},{"path":"../../node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js","kind":"require-call","original":"sparse-bitfield"},{"path":"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js","kind":"require-call","original":"./lib/tree-index"},{"path":"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/storage.js","kind":"require-call","original":"./lib/storage"},{"path":"../../node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"../../node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/browser.js","kind":"require-call","original":"inspect-custom-symbol"},{"path":"../../node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js","kind":"require-call","original":"pretty-hash"},{"path":"../../node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js","kind":"require-call","original":"nanoguard"},{"path":"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/safe-buffer-equals.js","kind":"require-call","original":"./lib/safe-buffer-equals"},{"path":"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/replicate.js","kind":"require-call","original":"./lib/replicate"},{"path":"../../node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js","kind":"require-call","original":"hypercore-protocol"},{"path":"../../node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js","kind":"require-call","original":"abstract-extension"},{"path":"../../node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js","kind":"require-call","original":"nanoresource/emitter"},{"path":"src/empty.js","kind":"require-call","original":"hypercore-default-storage"},{"path":"../../node_modules/.pnpm/hypercore-streams@1.0.1/node_modules/hypercore-streams/index.js","kind":"require-call","original":"hypercore-streams"}],"format":"cjs"},"src/hypercore.js":{"bytes":64,"imports":[{"path":"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js","kind":"import-statement","original":"hypercore"},{"path":"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js","kind":"import-statement","original":"hypercore"}],"format":"esm"},"src/hypercore-crypto.js":{"bytes":111,"imports":[{"path":"../../node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"import-statement","original":"hypercore-crypto"}],"format":"esm"}},"outputs":{"dist/lib/browser/hypercore.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":583553},"dist/lib/browser/hypercore.mjs":{"imports":[{"path":"dist/lib/browser/chunk-XAJ5RWMK.mjs","kind":"import-statement"},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_aead","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/helpers","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"sodium-universal/crypto_kx","kind":"require-call","external":true},{"path":"sodium-universal/crypto_scalarmult","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"streamx","kind":"require-call","external":true},{"path":"@dxos/node-std/events","kind":"require-call","external":true},{"path":"streamx","kind":"require-call","external":true}],"exports":["default"],"entryPoint":"src/hypercore.js","inputs":{"../../node_modules/.pnpm/last-one-wins@1.0.4/node_modules/last-one-wins/index.js":{"bytesInOutput":1030},"../../node_modules/.pnpm/unordered-array-remove@1.0.2/node_modules/unordered-array-remove/index.js":{"bytesInOutput":441},"../../node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js":{"bytesInOutput":952},"../../node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js":{"bytesInOutput":6847},"../../node_modules/.pnpm/merkle-tree-stream@4.0.0/node_modules/merkle-tree-stream/generator.js":{"bytesInOutput":1758},"../../node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js":{"bytesInOutput":2385},"../../node_modules/.pnpm/atomic-batcher@1.0.2/node_modules/atomic-batcher/index.js":{"bytesInOutput":1593},"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js":{"bytesInOutput":934},"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/encode.js":{"bytesInOutput":669},"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/decode.js":{"bytesInOutput":669},"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/length.js":{"bytesInOutput":618},"../../node_modules/.pnpm/varint@4.0.1/node_modules/varint/index.js":{"bytesInOutput":265},"../../node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js":{"bytesInOutput":584},"../../node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js":{"bytesInOutput":4752},"../../node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js":{"bytesInOutput":4429},"../../node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js":{"bytesInOutput":2759},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/bitfield.js":{"bytesInOutput":9535},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js":{"bytesInOutput":4951},"../../node_modules/.pnpm/buffer-fill@1.0.0/node_modules/buffer-fill/index.js":{"bytesInOutput":2795},"../../node_modules/.pnpm/buffer-alloc@1.2.0/node_modules/buffer-alloc/index.js":{"bytesInOutput":904},"../../node_modules/.pnpm/uint64be@2.0.2/node_modules/uint64be/index.js":{"bytesInOutput":861},"../../node_modules/.pnpm/hypercore-cache@1.0.2/node_modules/hypercore-cache/index.js":{"bytesInOutput":3285},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/cache.js":{"bytesInOutput":1000},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/storage.js":{"bytesInOutput":11140},"../../node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/browser.js":{"bytesInOutput":228},"../../node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js":{"bytesInOutput":397},"../../node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js":{"bytesInOutput":1565},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/safe-buffer-equals.js":{"bytesInOutput":321},"../../node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js":{"bytesInOutput":474},"../../node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js":{"bytesInOutput":6752},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher.js":{"bytesInOutput":3090},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js":{"bytesInOutput":3676},"../../node_modules/.pnpm/nanoassert@1.1.0/node_modules/nanoassert/index.js":{"bytesInOutput":549},"../../node_modules/.pnpm/hmac-blake2b@2.0.0/node_modules/hmac-blake2b/index.js":{"bytesInOutput":1628},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js":{"bytesInOutput":1357},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js":{"bytesInOutput":1746},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js":{"bytesInOutput":5126},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/handshake-state.js":{"bytesInOutput":14414},"../../node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/index.js":{"bytesInOutput":204},"../../node_modules/.pnpm/simple-handshake@3.0.0/node_modules/simple-handshake/index.js":{"bytesInOutput":4287},"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/encode.js":{"bytesInOutput":670},"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/decode.js":{"bytesInOutput":674},"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/length.js":{"bytesInOutput":619},"../../node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js":{"bytesInOutput":269},"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/handshake.js":{"bytesInOutput":3995},"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/encode.js":{"bytesInOutput":670},"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/decode.js":{"bytesInOutput":674},"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/length.js":{"bytesInOutput":619},"../../node_modules/.pnpm/varint@5.0.0/node_modules/varint/index.js":{"bytesInOutput":269},"../../node_modules/.pnpm/signed-varint@2.0.1/node_modules/signed-varint/index.js":{"bytesInOutput":658},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/ascii.js":{"bytesInOutput":751},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/base64.js":{"bytesInOutput":1836},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/hex.js":{"bytesInOutput":1380},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/utf8.js":{"bytesInOutput":3500},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/lib/utf16le.js":{"bytesInOutput":980},"../../node_modules/.pnpm/b4a@1.6.4/node_modules/b4a/browser.js":{"bytesInOutput":13263},"../../node_modules/.pnpm/protocol-buffers-encodings@1.2.0/node_modules/protocol-buffers-encodings/index.js":{"bytesInOutput":7703},"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/messages.js":{"bytesInOutput":35828},"../../node_modules/.pnpm/xsalsa20@1.2.0/node_modules/xsalsa20/xsalsa20.js":{"bytesInOutput":4615},"../../node_modules/.pnpm/xsalsa20@1.2.0/node_modules/xsalsa20/index.js":{"bytesInOutput":14129},"../../node_modules/.pnpm/xsalsa20-universal@1.0.0/node_modules/xsalsa20-universal/browser.js":{"bytesInOutput":467},"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/xor.js":{"bytesInOutput":866},"../../node_modules/.pnpm/simple-message-channels@1.2.1/node_modules/simple-message-channels/index.js":{"bytesInOutput":6048},"../../node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/index.js":{"bytesInOutput":8906},"../../node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js":{"bytesInOutput":870},"../../node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js":{"bytesInOutput":4326},"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js":{"bytesInOutput":2915},"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js":{"bytesInOutput":5960},"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js":{"bytesInOutput":4745},"../../node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js":{"bytesInOutput":17191},"../../node_modules/.pnpm/count-trailing-zeros@1.0.1/node_modules/count-trailing-zeros/ctz.js":{"bytesInOutput":426},"../../node_modules/.pnpm/fast-bitfield@1.2.2/node_modules/fast-bitfield/index.js":{"bytesInOutput":11746},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/replicate.js":{"bytesInOutput":24244},"../../node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js":{"bytesInOutput":3799},"src/empty.js":{"bytesInOutput":241},"../../node_modules/.pnpm/hypercore-streams@1.0.1/node_modules/hypercore-streams/index.js":{"bytesInOutput":2427},"../../node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js":{"bytesInOutput":52206},"src/hypercore.js":{"bytesInOutput":224}},"bytes":358398},"dist/lib/browser/hypercore-crypto.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":260},"dist/lib/browser/hypercore-crypto.mjs":{"imports":[{"path":"dist/lib/browser/chunk-XAJ5RWMK.mjs","kind":"import-statement"}],"exports":["default","discoveryKey","keyPair","randomBytes","sign","validateKeyPair","verify"],"entryPoint":"src/hypercore-crypto.js","inputs":{"src/hypercore-crypto.js":{"bytesInOutput":70}},"bytes":899},"dist/lib/browser/chunk-XAJ5RWMK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9344},"dist/lib/browser/chunk-XAJ5RWMK.mjs":{"imports":[{"path":"sodium-universal","kind":"require-call","external":true}],"exports":["__commonJS","__export","__reExport","__require","__toESM","require_hypercore_crypto"],"inputs":{"../../node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js":{"bytesInOutput":830},"../../node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js":{"bytesInOutput":4815}},"bytes":7952}}}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __export = (target, all) => {
|
|
18
|
+
for (var name in all)
|
|
19
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
+
};
|
|
21
|
+
var __copyProps = (to, from, except, desc) => {
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(from))
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
+
}
|
|
27
|
+
return to;
|
|
28
|
+
};
|
|
29
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
30
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
31
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
32
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
33
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
34
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
35
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
36
|
+
mod
|
|
37
|
+
));
|
|
38
|
+
|
|
39
|
+
// ../../node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js
|
|
40
|
+
var require_uint64be = __commonJS({
|
|
41
|
+
"../../node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js"(exports) {
|
|
42
|
+
var UINT_32_MAX = Math.pow(2, 32);
|
|
43
|
+
exports.encodingLength = function() {
|
|
44
|
+
return 8;
|
|
45
|
+
};
|
|
46
|
+
exports.encode = function(num, buf, offset) {
|
|
47
|
+
if (!buf) buf = Buffer.allocUnsafe(8);
|
|
48
|
+
if (!offset) offset = 0;
|
|
49
|
+
const top = Math.floor(num / UINT_32_MAX);
|
|
50
|
+
const rem = num - top * UINT_32_MAX;
|
|
51
|
+
buf.writeUInt32BE(top, offset);
|
|
52
|
+
buf.writeUInt32BE(rem, offset + 4);
|
|
53
|
+
return buf;
|
|
54
|
+
};
|
|
55
|
+
exports.decode = function(buf, offset) {
|
|
56
|
+
if (!offset) offset = 0;
|
|
57
|
+
const top = buf.readUInt32BE(offset);
|
|
58
|
+
const rem = buf.readUInt32BE(offset + 4);
|
|
59
|
+
return top * UINT_32_MAX + rem;
|
|
60
|
+
};
|
|
61
|
+
exports.encode.bytes = 8;
|
|
62
|
+
exports.decode.bytes = 8;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// ../../node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js
|
|
67
|
+
var require_hypercore_crypto = __commonJS({
|
|
68
|
+
"../../node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js"(exports) {
|
|
69
|
+
var sodium = __require("sodium-universal");
|
|
70
|
+
var uint64be = require_uint64be();
|
|
71
|
+
var LEAF_TYPE = Buffer.from([0]);
|
|
72
|
+
var PARENT_TYPE = Buffer.from([1]);
|
|
73
|
+
var ROOT_TYPE = Buffer.from([2]);
|
|
74
|
+
var CAP_TYPE = Buffer.from([3]);
|
|
75
|
+
var HYPERCORE = Buffer.from("hypercore");
|
|
76
|
+
var HYPERCORE_CAP = Buffer.from("hypercore capability");
|
|
77
|
+
exports.writerCapability = function(key, secretKey, split) {
|
|
78
|
+
if (!split) return null;
|
|
79
|
+
const out = Buffer.allocUnsafe(32);
|
|
80
|
+
sodium.crypto_generichash_batch(out, [
|
|
81
|
+
CAP_TYPE,
|
|
82
|
+
HYPERCORE_CAP,
|
|
83
|
+
split.tx.slice(0, 32),
|
|
84
|
+
key
|
|
85
|
+
], split.rx.slice(0, 32));
|
|
86
|
+
return exports.sign(out, secretKey);
|
|
87
|
+
};
|
|
88
|
+
exports.verifyRemoteWriterCapability = function(key, cap, split) {
|
|
89
|
+
if (!split) return null;
|
|
90
|
+
const out = Buffer.allocUnsafe(32);
|
|
91
|
+
sodium.crypto_generichash_batch(out, [
|
|
92
|
+
CAP_TYPE,
|
|
93
|
+
HYPERCORE_CAP,
|
|
94
|
+
split.rx.slice(0, 32),
|
|
95
|
+
key
|
|
96
|
+
], split.tx.slice(0, 32));
|
|
97
|
+
return exports.verify(out, cap, key);
|
|
98
|
+
};
|
|
99
|
+
exports.capability = function(key, split) {
|
|
100
|
+
if (!split) return null;
|
|
101
|
+
const out = Buffer.allocUnsafe(32);
|
|
102
|
+
sodium.crypto_generichash_batch(out, [
|
|
103
|
+
HYPERCORE_CAP,
|
|
104
|
+
split.tx.slice(0, 32),
|
|
105
|
+
key
|
|
106
|
+
], split.rx.slice(0, 32));
|
|
107
|
+
return out;
|
|
108
|
+
};
|
|
109
|
+
exports.remoteCapability = function(key, split) {
|
|
110
|
+
if (!split) return null;
|
|
111
|
+
const out = Buffer.allocUnsafe(32);
|
|
112
|
+
sodium.crypto_generichash_batch(out, [
|
|
113
|
+
HYPERCORE_CAP,
|
|
114
|
+
split.rx.slice(0, 32),
|
|
115
|
+
key
|
|
116
|
+
], split.tx.slice(0, 32));
|
|
117
|
+
return out;
|
|
118
|
+
};
|
|
119
|
+
exports.keyPair = function(seed) {
|
|
120
|
+
const publicKey = Buffer.allocUnsafe(sodium.crypto_sign_PUBLICKEYBYTES);
|
|
121
|
+
const secretKey = Buffer.allocUnsafe(sodium.crypto_sign_SECRETKEYBYTES);
|
|
122
|
+
if (seed) sodium.crypto_sign_seed_keypair(publicKey, secretKey, seed);
|
|
123
|
+
else sodium.crypto_sign_keypair(publicKey, secretKey);
|
|
124
|
+
return {
|
|
125
|
+
publicKey,
|
|
126
|
+
secretKey
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
exports.validateKeyPair = function(keyPair) {
|
|
130
|
+
const pk = Buffer.allocUnsafe(sodium.crypto_sign_PUBLICKEYBYTES);
|
|
131
|
+
sodium.crypto_sign_ed25519_sk_to_pk(pk, keyPair.secretKey);
|
|
132
|
+
return pk.equals(keyPair.publicKey);
|
|
133
|
+
};
|
|
134
|
+
exports.sign = function(message, secretKey) {
|
|
135
|
+
const signature = Buffer.allocUnsafe(sodium.crypto_sign_BYTES);
|
|
136
|
+
sodium.crypto_sign_detached(signature, message, secretKey);
|
|
137
|
+
return signature;
|
|
138
|
+
};
|
|
139
|
+
exports.verify = function(message, signature, publicKey) {
|
|
140
|
+
return sodium.crypto_sign_verify_detached(signature, message, publicKey);
|
|
141
|
+
};
|
|
142
|
+
exports.data = function(data) {
|
|
143
|
+
const out = Buffer.allocUnsafe(32);
|
|
144
|
+
sodium.crypto_generichash_batch(out, [
|
|
145
|
+
LEAF_TYPE,
|
|
146
|
+
encodeUInt64(data.length),
|
|
147
|
+
data
|
|
148
|
+
]);
|
|
149
|
+
return out;
|
|
150
|
+
};
|
|
151
|
+
exports.leaf = function(leaf) {
|
|
152
|
+
return exports.data(leaf.data);
|
|
153
|
+
};
|
|
154
|
+
exports.parent = function(a, b) {
|
|
155
|
+
if (a.index > b.index) {
|
|
156
|
+
const tmp = a;
|
|
157
|
+
a = b;
|
|
158
|
+
b = tmp;
|
|
159
|
+
}
|
|
160
|
+
const out = Buffer.allocUnsafe(32);
|
|
161
|
+
sodium.crypto_generichash_batch(out, [
|
|
162
|
+
PARENT_TYPE,
|
|
163
|
+
encodeUInt64(a.size + b.size),
|
|
164
|
+
a.hash,
|
|
165
|
+
b.hash
|
|
166
|
+
]);
|
|
167
|
+
return out;
|
|
168
|
+
};
|
|
169
|
+
exports.tree = function(roots, out) {
|
|
170
|
+
const buffers = new Array(3 * roots.length + 1);
|
|
171
|
+
var j = 0;
|
|
172
|
+
buffers[j++] = ROOT_TYPE;
|
|
173
|
+
for (var i = 0; i < roots.length; i++) {
|
|
174
|
+
const r = roots[i];
|
|
175
|
+
buffers[j++] = r.hash;
|
|
176
|
+
buffers[j++] = encodeUInt64(r.index);
|
|
177
|
+
buffers[j++] = encodeUInt64(r.size);
|
|
178
|
+
}
|
|
179
|
+
if (!out) out = Buffer.allocUnsafe(32);
|
|
180
|
+
sodium.crypto_generichash_batch(out, buffers);
|
|
181
|
+
return out;
|
|
182
|
+
};
|
|
183
|
+
exports.signable = function(roots, length) {
|
|
184
|
+
const out = Buffer.allocUnsafe(40);
|
|
185
|
+
if (Buffer.isBuffer(roots)) roots.copy(out);
|
|
186
|
+
else exports.tree(roots, out.slice(0, 32));
|
|
187
|
+
uint64be.encode(length, out.slice(32));
|
|
188
|
+
return out;
|
|
189
|
+
};
|
|
190
|
+
exports.randomBytes = function(n) {
|
|
191
|
+
const buf = Buffer.allocUnsafe(n);
|
|
192
|
+
sodium.randombytes_buf(buf);
|
|
193
|
+
return buf;
|
|
194
|
+
};
|
|
195
|
+
exports.discoveryKey = function(publicKey) {
|
|
196
|
+
const digest = Buffer.allocUnsafe(32);
|
|
197
|
+
sodium.crypto_generichash(digest, HYPERCORE, publicKey);
|
|
198
|
+
return digest;
|
|
199
|
+
};
|
|
200
|
+
if (sodium.sodium_free) {
|
|
201
|
+
exports.free = function(secureBuf) {
|
|
202
|
+
if (secureBuf.secure) sodium.sodium_free(secureBuf);
|
|
203
|
+
};
|
|
204
|
+
} else {
|
|
205
|
+
exports.free = function() {
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
function encodeUInt64(n) {
|
|
209
|
+
return uint64be.encode(n, Buffer.allocUnsafe(8));
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
export {
|
|
215
|
+
__require,
|
|
216
|
+
__commonJS,
|
|
217
|
+
__export,
|
|
218
|
+
__reExport,
|
|
219
|
+
__toESM,
|
|
220
|
+
require_hypercore_crypto
|
|
221
|
+
};
|
|
222
|
+
//# sourceMappingURL=chunk-IEADO42Y.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js", "../../../../../node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js"],
|
|
4
|
+
"sourcesContent": ["const UINT_32_MAX = Math.pow(2, 32)\n\nexports.encodingLength = function () {\n return 8\n}\n\nexports.encode = function (num, buf, offset) {\n if (!buf) buf = Buffer.allocUnsafe(8)\n if (!offset) offset = 0\n\n const top = Math.floor(num / UINT_32_MAX)\n const rem = num - top * UINT_32_MAX\n\n buf.writeUInt32BE(top, offset)\n buf.writeUInt32BE(rem, offset + 4)\n return buf\n}\n\nexports.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n const top = buf.readUInt32BE(offset)\n const rem = buf.readUInt32BE(offset + 4)\n\n return top * UINT_32_MAX + rem\n}\n\nexports.encode.bytes = 8\nexports.decode.bytes = 8\n", "const sodium = require('sodium-universal')\nconst uint64be = require('uint64be')\n\n// https://en.wikipedia.org/wiki/Merkle_tree#Second_preimage_attack\nconst LEAF_TYPE = Buffer.from([0])\nconst PARENT_TYPE = Buffer.from([1])\nconst ROOT_TYPE = Buffer.from([2])\nconst CAP_TYPE = Buffer.from([3])\n\nconst HYPERCORE = Buffer.from('hypercore')\nconst HYPERCORE_CAP = Buffer.from('hypercore capability')\n\nexports.writerCapability = function (key, secretKey, split) {\n if (!split) return null\n\n const out = Buffer.allocUnsafe(32)\n sodium.crypto_generichash_batch(out, [\n CAP_TYPE,\n HYPERCORE_CAP,\n split.tx.slice(0, 32),\n key\n ], split.rx.slice(0, 32))\n\n return exports.sign(out, secretKey)\n}\n\nexports.verifyRemoteWriterCapability = function (key, cap, split) {\n if (!split) return null\n\n const out = Buffer.allocUnsafe(32)\n sodium.crypto_generichash_batch(out, [\n CAP_TYPE,\n HYPERCORE_CAP,\n split.rx.slice(0, 32),\n key\n ], split.tx.slice(0, 32))\n\n return exports.verify(out, cap, key)\n}\n\n// TODO: add in the CAP_TYPE in a future version\nexports.capability = function (key, split) {\n if (!split) return null\n\n const out = Buffer.allocUnsafe(32)\n sodium.crypto_generichash_batch(out, [\n HYPERCORE_CAP,\n split.tx.slice(0, 32),\n key\n ], split.rx.slice(0, 32))\n\n return out\n}\n\n// TODO: add in the CAP_TYPE in a future version\nexports.remoteCapability = function (key, split) {\n if (!split) return null\n\n const out = Buffer.allocUnsafe(32)\n sodium.crypto_generichash_batch(out, [\n HYPERCORE_CAP,\n split.rx.slice(0, 32),\n key\n ], split.tx.slice(0, 32))\n\n return out\n}\n\nexports.keyPair = function (seed) {\n const publicKey = Buffer.allocUnsafe(sodium.crypto_sign_PUBLICKEYBYTES)\n const secretKey = Buffer.allocUnsafe(sodium.crypto_sign_SECRETKEYBYTES)\n\n if (seed) sodium.crypto_sign_seed_keypair(publicKey, secretKey, seed)\n else sodium.crypto_sign_keypair(publicKey, secretKey)\n\n return {\n publicKey,\n secretKey\n }\n}\n\nexports.validateKeyPair = function (keyPair) {\n const pk = Buffer.allocUnsafe(sodium.crypto_sign_PUBLICKEYBYTES)\n sodium.crypto_sign_ed25519_sk_to_pk(pk, keyPair.secretKey)\n return pk.equals(keyPair.publicKey)\n}\n\nexports.sign = function (message, secretKey) {\n const signature = Buffer.allocUnsafe(sodium.crypto_sign_BYTES)\n sodium.crypto_sign_detached(signature, message, secretKey)\n return signature\n}\n\nexports.verify = function (message, signature, publicKey) {\n return sodium.crypto_sign_verify_detached(signature, message, publicKey)\n}\n\nexports.data = function (data) {\n const out = Buffer.allocUnsafe(32)\n\n sodium.crypto_generichash_batch(out, [\n LEAF_TYPE,\n encodeUInt64(data.length),\n data\n ])\n\n return out\n}\n\nexports.leaf = function (leaf) {\n return exports.data(leaf.data)\n}\n\nexports.parent = function (a, b) {\n if (a.index > b.index) {\n const tmp = a\n a = b\n b = tmp\n }\n\n const out = Buffer.allocUnsafe(32)\n\n sodium.crypto_generichash_batch(out, [\n PARENT_TYPE,\n encodeUInt64(a.size + b.size),\n a.hash,\n b.hash\n ])\n\n return out\n}\n\nexports.tree = function (roots, out) {\n const buffers = new Array(3 * roots.length + 1)\n var j = 0\n\n buffers[j++] = ROOT_TYPE\n\n for (var i = 0; i < roots.length; i++) {\n const r = roots[i]\n buffers[j++] = r.hash\n buffers[j++] = encodeUInt64(r.index)\n buffers[j++] = encodeUInt64(r.size)\n }\n\n if (!out) out = Buffer.allocUnsafe(32)\n sodium.crypto_generichash_batch(out, buffers)\n return out\n}\n\nexports.signable = function (roots, length) {\n const out = Buffer.allocUnsafe(40)\n\n if (Buffer.isBuffer(roots)) roots.copy(out)\n else exports.tree(roots, out.slice(0, 32))\n\n uint64be.encode(length, out.slice(32))\n\n return out\n}\n\nexports.randomBytes = function (n) {\n const buf = Buffer.allocUnsafe(n)\n sodium.randombytes_buf(buf)\n return buf\n}\n\nexports.discoveryKey = function (publicKey) {\n const digest = Buffer.allocUnsafe(32)\n sodium.crypto_generichash(digest, HYPERCORE, publicKey)\n return digest\n}\n\nif (sodium.sodium_free) {\n exports.free = function (secureBuf) {\n if (secureBuf.secure) sodium.sodium_free(secureBuf)\n }\n} else {\n exports.free = function () {}\n}\n\nfunction encodeUInt64 (n) {\n return uint64be.encode(n, Buffer.allocUnsafe(8))\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
__toESM,
|
|
4
|
+
require_hypercore_crypto
|
|
5
|
+
} from "./chunk-IEADO42Y.mjs";
|
|
6
|
+
|
|
7
|
+
// src/hypercore-crypto.js
|
|
8
|
+
var import_hypercore_crypto = __toESM(require_hypercore_crypto(), 1);
|
|
9
|
+
var export_default = import_hypercore_crypto.default;
|
|
10
|
+
var export_discoveryKey = import_hypercore_crypto.discoveryKey;
|
|
11
|
+
var export_keyPair = import_hypercore_crypto.keyPair;
|
|
12
|
+
var export_randomBytes = import_hypercore_crypto.randomBytes;
|
|
13
|
+
var export_sign = import_hypercore_crypto.sign;
|
|
14
|
+
var export_validateKeyPair = import_hypercore_crypto.validateKeyPair;
|
|
15
|
+
var export_verify = import_hypercore_crypto.verify;
|
|
16
|
+
export {
|
|
17
|
+
export_default as default,
|
|
18
|
+
export_discoveryKey as discoveryKey,
|
|
19
|
+
export_keyPair as keyPair,
|
|
20
|
+
export_randomBytes as randomBytes,
|
|
21
|
+
export_sign as sign,
|
|
22
|
+
export_validateKeyPair as validateKeyPair,
|
|
23
|
+
export_verify as verify
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=hypercore-crypto.mjs.map
|