@waku/rln 0.1.6-383e0b2.0 → 0.1.6-4c18ca2.0
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/bundle/_virtual/index2.js +1 -1
- package/bundle/index.js +2 -1
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/checksum.js +3 -3
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/cipher.js +4 -4
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/class.js +7 -7
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/functional.js +7 -7
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/index.js +6 -6
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/kdf.js +5 -5
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/password.js +1 -1
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/schema-validation-generated.js +1 -1
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/schema-validation.js +2 -2
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/types.js +1 -1
- package/bundle/{packages/rln → node_modules/@chainsafe/bls-keystore}/node_modules/@noble/hashes/_assert.js +1 -1
- package/bundle/{packages/rln → node_modules/@chainsafe/bls-keystore}/node_modules/@noble/hashes/_sha2.js +3 -3
- package/bundle/{packages/rln → node_modules/@chainsafe/bls-keystore}/node_modules/@noble/hashes/_u64.js +1 -1
- package/bundle/{packages/rln → node_modules/@chainsafe/bls-keystore}/node_modules/@noble/hashes/cryptoBrowser.js +1 -1
- package/bundle/{packages/rln → node_modules/@chainsafe/bls-keystore}/node_modules/@noble/hashes/hmac.js +3 -3
- package/bundle/{packages/rln → node_modules/@chainsafe/bls-keystore}/node_modules/@noble/hashes/pbkdf2.js +4 -4
- package/bundle/{packages/rln → node_modules/@chainsafe/bls-keystore}/node_modules/@noble/hashes/scrypt.js +5 -5
- package/bundle/{packages/rln → node_modules/@chainsafe/bls-keystore}/node_modules/@noble/hashes/sha256.js +3 -3
- package/bundle/{packages/rln → node_modules/@chainsafe/bls-keystore}/node_modules/@noble/hashes/sha512.js +4 -4
- package/bundle/{packages/rln → node_modules/@chainsafe/bls-keystore}/node_modules/@noble/hashes/utils.js +2 -2
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/aes.js +3 -3
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/pbkdf2.js +7 -7
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/random.js +3 -3
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/scrypt.js +3 -3
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/sha256.js +3 -3
- package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/ethereum-cryptography/utils.js +7 -7
- package/bundle/node_modules/@chainsafe/is-ip/lib/is-ip.js +12 -0
- package/bundle/node_modules/@chainsafe/is-ip/lib/parse.js +26 -0
- package/bundle/node_modules/@chainsafe/is-ip/lib/parser.js +202 -0
- package/bundle/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js +1 -1
- package/bundle/node_modules/@ethersproject/keccak256/lib.esm/index.js +1 -1
- package/bundle/node_modules/@multiformats/multiaddr/dist/src/constants.js +43 -0
- package/bundle/node_modules/@multiformats/multiaddr/dist/src/errors.js +17 -0
- package/bundle/node_modules/@multiformats/multiaddr/dist/src/registry.js +245 -0
- package/bundle/node_modules/@multiformats/multiaddr/dist/src/utils.js +191 -0
- package/bundle/node_modules/@multiformats/multiaddr/dist/src/validation.js +30 -0
- package/bundle/node_modules/@noble/hashes/esm/_assert.js +6 -32
- package/bundle/node_modules/@noble/hashes/esm/_md.js +22 -11
- package/bundle/node_modules/@noble/hashes/esm/_u64.js +4 -3
- package/bundle/{packages/rln/node_modules → node_modules}/@noble/hashes/esm/hmac.js +19 -10
- package/bundle/{packages/rln/node_modules/@noble/hashes/esm/sha256.js → node_modules/@noble/hashes/esm/sha2.js} +36 -50
- package/bundle/node_modules/@noble/hashes/esm/sha256.js +5 -102
- package/bundle/node_modules/@noble/hashes/esm/sha3.js +30 -24
- package/bundle/node_modules/@noble/hashes/esm/utils.js +69 -18
- package/bundle/node_modules/bn.js/lib/bn.js +1 -0
- package/bundle/node_modules/debug/src/browser.js +1 -1
- package/bundle/node_modules/debug/src/common.js +1 -1
- package/bundle/node_modules/ethereum-cryptography/esm/sha256.js +1 -1
- package/bundle/node_modules/{@ethersproject/keccak256/node_modules/js-sha3 → js-sha3}/src/sha3.js +2 -2
- package/bundle/node_modules/lodash/lodash.js +5 -5
- package/bundle/node_modules/multiformats/dist/src/bases/base.js +12 -9
- package/bundle/node_modules/multiformats/dist/src/bytes.js +19 -3
- package/bundle/node_modules/multiformats/dist/src/cid.js +371 -0
- package/bundle/node_modules/multiformats/dist/src/hashes/digest.js +62 -0
- package/bundle/node_modules/multiformats/dist/src/varint.js +15 -0
- package/bundle/node_modules/multiformats/dist/src/vendor/varint.js +78 -0
- package/bundle/node_modules/uint8arrays/dist/src/concat.js +20 -0
- package/bundle/node_modules/uint8arrays/dist/src/to-string.js +19 -0
- package/bundle/node_modules/uint8arrays/dist/src/util/as-uint8array.js +9 -0
- package/bundle/packages/core/dist/lib/connection_manager/connection_manager.js +1 -3
- package/bundle/packages/core/dist/lib/message/version_0.js +1 -4
- package/bundle/packages/proto/dist/generated/filter.js +2 -0
- package/bundle/packages/proto/dist/generated/filter_v2.js +2 -0
- package/bundle/packages/proto/dist/generated/light_push.js +2 -0
- package/bundle/packages/proto/dist/generated/message.js +2 -0
- package/bundle/packages/proto/dist/generated/metadata.js +2 -0
- package/bundle/packages/proto/dist/generated/peer_exchange.js +2 -0
- package/bundle/packages/proto/dist/generated/sds_message.js +2 -0
- package/bundle/packages/proto/dist/generated/store_v3.js +2 -0
- package/bundle/packages/proto/dist/generated/topic_only_message.js +2 -0
- package/bundle/packages/rln/dist/contract/constants.js +1 -0
- package/bundle/packages/rln/dist/contract/rln_base_contract.js +127 -71
- package/bundle/packages/rln/dist/credentials_manager.js +3 -3
- package/bundle/packages/rln/dist/keystore/cipher.js +3 -3
- package/bundle/packages/rln/dist/keystore/keystore.js +1 -1
- package/bundle/packages/rln/dist/message.js +11 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/codec.test-utils.d.ts +1 -1
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +1 -0
- package/dist/contract/index.js.map +1 -1
- package/dist/contract/rln_base_contract.d.ts +32 -22
- package/dist/contract/rln_base_contract.js +127 -71
- package/dist/contract/rln_base_contract.js.map +1 -1
- package/dist/contract/test-setup.d.ts +1 -1
- package/dist/contract/types.d.ts +5 -0
- package/dist/contract/types.js.map +1 -1
- package/dist/credentials_manager.js +1 -1
- package/dist/credentials_manager.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/keystore/credential_validation_generated.d.ts +0 -2
- package/dist/keystore/keystore.js.map +1 -1
- package/dist/keystore/keystore_validation_generated.d.ts +0 -2
- package/dist/keystore/types.d.ts +2 -2
- package/dist/message.d.ts +5 -4
- package/dist/message.js +2 -0
- package/dist/message.js.map +1 -1
- package/package.json +1 -1
- package/src/contract/index.ts +1 -0
- package/src/contract/rln_base_contract.ts +166 -102
- package/src/contract/types.ts +5 -0
- package/src/credentials_manager.ts +1 -1
- package/src/index.ts +3 -1
- package/src/keystore/keystore.ts +4 -2
- package/src/keystore/types.ts +2 -2
- package/src/message.ts +7 -4
- package/bundle/node_modules/@multiformats/multiaddr/dist/src/convert.js +0 -15
- package/bundle/node_modules/@multiformats/multiaddr/dist/src/multiaddr.js +0 -21
- package/bundle/node_modules/@multiformats/multiaddr/dist/src/protocols-table.js +0 -92
- package/bundle/packages/rln/node_modules/@noble/hashes/esm/_assert.js +0 -43
- package/bundle/packages/rln/node_modules/@noble/hashes/esm/_sha2.js +0 -116
- package/bundle/packages/rln/node_modules/@noble/hashes/esm/utils.js +0 -43
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/index.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/md5.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/nil.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/parse.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/regex.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/rng.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/sha1.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/stringify.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/v1.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/v3.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/v35.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/v4.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/v5.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/validate.js +0 -0
- /package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/version.js +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { getAugmentedNamespace } from './_commonjsHelpers.js';
|
2
|
-
import * as index from '../
|
2
|
+
import * as index from '../node_modules/@chainsafe/bls-keystore/node_modules/uuid/dist/esm-browser/index.js';
|
3
3
|
|
4
4
|
var require$$0 = /*@__PURE__*/getAugmentedNamespace(index);
|
5
5
|
|
package/bundle/index.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
export { RLNDecoder, RLNEncoder } from './packages/rln/dist/codec.js';
|
2
2
|
export { RLN_ABI } from './packages/rln/dist/contract/abi.js';
|
3
3
|
export { RLNContract } from './packages/rln/dist/contract/rln_contract.js';
|
4
|
-
export { LINEA_CONTRACT } from './packages/rln/dist/contract/constants.js';
|
4
|
+
export { DEFAULT_RATE_LIMIT, LINEA_CONTRACT, RATE_LIMIT_PARAMS, RATE_LIMIT_TIERS } from './packages/rln/dist/contract/constants.js';
|
5
|
+
export { MembershipState } from './packages/rln/dist/contract/types.js';
|
5
6
|
export { RLNBaseContract } from './packages/rln/dist/contract/rln_base_contract.js';
|
6
7
|
export { createRLN } from './packages/rln/dist/create.js';
|
7
8
|
export { RLNCredentialsManager } from './packages/rln/dist/credentials_manager.js';
|
package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/checksum.js
RENAMED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { commonjsGlobal } from '
|
2
|
-
import { __exports as checksum$1 } from '
|
1
|
+
import { commonjsGlobal } from '../../../../_virtual/_commonjsHelpers.js';
|
2
|
+
import { __exports as checksum$1 } from '../../../../_virtual/checksum.js';
|
3
3
|
import '../node_modules/ethereum-cryptography/sha256.js';
|
4
4
|
import { u as utilsExports } from '../node_modules/ethereum-cryptography/utils.js';
|
5
|
-
import { __exports as sha256 } from '
|
5
|
+
import { __exports as sha256 } from '../../../../_virtual/sha256.js';
|
6
6
|
|
7
7
|
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
8
8
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/cipher.js
RENAMED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { commonjsGlobal } from '
|
2
|
-
import { __exports as cipher } from '
|
1
|
+
import { commonjsGlobal } from '../../../../_virtual/_commonjsHelpers.js';
|
2
|
+
import { __exports as cipher } from '../../../../_virtual/cipher.js';
|
3
3
|
import '../node_modules/ethereum-cryptography/random.js';
|
4
4
|
import '../node_modules/ethereum-cryptography/aes.js';
|
5
5
|
import { u as utilsExports } from '../node_modules/ethereum-cryptography/utils.js';
|
6
|
-
import { __exports as random } from '
|
7
|
-
import { __exports as aes } from '
|
6
|
+
import { __exports as random } from '../../../../_virtual/random.js';
|
7
|
+
import { __exports as aes } from '../../../../_virtual/aes.js';
|
8
8
|
|
9
9
|
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
10
10
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/class.js
RENAMED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { commonjsGlobal } from '
|
2
|
-
import { __exports as _class } from '
|
1
|
+
import { commonjsGlobal } from '../../../../_virtual/_commonjsHelpers.js';
|
2
|
+
import { __exports as _class } from '../../../../_virtual/class.js';
|
3
3
|
import './kdf.js';
|
4
4
|
import './checksum.js';
|
5
5
|
import './cipher.js';
|
6
6
|
import './functional.js';
|
7
7
|
import './schema-validation.js';
|
8
|
-
import { __exports as kdf } from '
|
9
|
-
import { __exports as checksum } from '
|
10
|
-
import { __exports as cipher } from '
|
11
|
-
import { __exports as functional } from '
|
12
|
-
import { __exports as schemaValidation } from '
|
8
|
+
import { __exports as kdf } from '../../../../_virtual/kdf.js';
|
9
|
+
import { __exports as checksum } from '../../../../_virtual/checksum.js';
|
10
|
+
import { __exports as cipher } from '../../../../_virtual/cipher.js';
|
11
|
+
import { __exports as functional } from '../../../../_virtual/functional.js';
|
12
|
+
import { __exports as schemaValidation } from '../../../../_virtual/schema-validation.js';
|
13
13
|
|
14
14
|
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
15
15
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/functional.js
RENAMED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { commonjsGlobal } from '
|
2
|
-
import { __exports as functional } from '
|
3
|
-
import require$$0 from '
|
1
|
+
import { commonjsGlobal } from '../../../../_virtual/_commonjsHelpers.js';
|
2
|
+
import { __exports as functional } from '../../../../_virtual/functional.js';
|
3
|
+
import require$$0 from '../../../../_virtual/index2.js';
|
4
4
|
import './kdf.js';
|
5
5
|
import './checksum.js';
|
6
6
|
import './cipher.js';
|
7
7
|
import './password.js';
|
8
8
|
import { u as utilsExports } from '../node_modules/ethereum-cryptography/utils.js';
|
9
|
-
import { __exports as kdf } from '
|
10
|
-
import { __exports as checksum } from '
|
11
|
-
import { __exports as cipher } from '
|
12
|
-
import { __exports as password } from '
|
9
|
+
import { __exports as kdf } from '../../../../_virtual/kdf.js';
|
10
|
+
import { __exports as checksum } from '../../../../_virtual/checksum.js';
|
11
|
+
import { __exports as cipher } from '../../../../_virtual/cipher.js';
|
12
|
+
import { __exports as password } from '../../../../_virtual/password.js';
|
13
13
|
|
14
14
|
(function (exports) {
|
15
15
|
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/index.js
RENAMED
@@ -1,13 +1,13 @@
|
|
1
|
-
import { commonjsGlobal } from '
|
2
|
-
import { __exports as lib } from '
|
1
|
+
import { commonjsGlobal } from '../../../../_virtual/_commonjsHelpers.js';
|
2
|
+
import { __exports as lib } from '../../../../_virtual/index.js';
|
3
3
|
import './types.js';
|
4
4
|
import './functional.js';
|
5
5
|
import './class.js';
|
6
6
|
import './schema-validation.js';
|
7
|
-
import { __exports as types } from '
|
8
|
-
import { __exports as functional } from '
|
9
|
-
import { __exports as _class } from '
|
10
|
-
import { __exports as schemaValidation } from '
|
7
|
+
import { __exports as types } from '../../../../_virtual/types.js';
|
8
|
+
import { __exports as functional } from '../../../../_virtual/functional.js';
|
9
|
+
import { __exports as _class } from '../../../../_virtual/class.js';
|
10
|
+
import { __exports as schemaValidation } from '../../../../_virtual/schema-validation.js';
|
11
11
|
|
12
12
|
(function (exports) {
|
13
13
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/kdf.js
RENAMED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { commonjsGlobal } from '
|
2
|
-
import { __exports as kdf$1 } from '
|
1
|
+
import { commonjsGlobal } from '../../../../_virtual/_commonjsHelpers.js';
|
2
|
+
import { __exports as kdf$1 } from '../../../../_virtual/kdf.js';
|
3
3
|
import '../node_modules/ethereum-cryptography/random.js';
|
4
4
|
import '../node_modules/ethereum-cryptography/pbkdf2.js';
|
5
5
|
import '../node_modules/ethereum-cryptography/scrypt.js';
|
6
6
|
import { u as utilsExports } from '../node_modules/ethereum-cryptography/utils.js';
|
7
|
-
import { __exports as random } from '
|
8
|
-
import { __exports as pbkdf2 } from '
|
9
|
-
import { __exports as scrypt } from '
|
7
|
+
import { __exports as random } from '../../../../_virtual/random.js';
|
8
|
+
import { __exports as pbkdf2 } from '../../../../_virtual/pbkdf2.js';
|
9
|
+
import { __exports as scrypt } from '../../../../_virtual/scrypt.js';
|
10
10
|
|
11
11
|
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
package/bundle/{packages/rln/node_modules → node_modules}/@chainsafe/bls-keystore/lib/password.js
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __exports as password } from '
|
1
|
+
import { __exports as password } from '../../../../_virtual/password.js';
|
2
2
|
import { u as utilsExports } from '../node_modules/ethereum-cryptography/utils.js';
|
3
3
|
|
4
4
|
Object.defineProperty(password, "__esModule", { value: true });
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __exports as schemaValidationGenerated } from '
|
1
|
+
import { __exports as schemaValidationGenerated } from '../../../../_virtual/schema-validation-generated.js';
|
2
2
|
|
3
3
|
Object.defineProperty(schemaValidationGenerated, "__esModule", { value: true });
|
4
4
|
schemaValidationGenerated.Keystore = void 0;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { __exports as schemaValidation } from '
|
1
|
+
import { __exports as schemaValidation } from '../../../../_virtual/schema-validation.js';
|
2
2
|
import './schema-validation-generated.js';
|
3
|
-
import { __exports as schemaValidationGenerated } from '
|
3
|
+
import { __exports as schemaValidationGenerated } from '../../../../_virtual/schema-validation-generated.js';
|
4
4
|
|
5
5
|
Object.defineProperty(schemaValidation, "__esModule", { value: true });
|
6
6
|
schemaValidation.isValidKeystore = schemaValidation.validateKeystore = schemaValidation.schemaValidationErrors = void 0;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __exports as _assert } from '
|
1
|
+
import { __exports as _assert } from '../../../../../../_virtual/_assert.js';
|
2
2
|
|
3
3
|
Object.defineProperty(_assert, "__esModule", { value: true });
|
4
4
|
_assert.output = _assert.exists = _assert.hash = _assert.bytes = _assert.bool = _assert.number = void 0;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { __exports as _sha2 } from '
|
1
|
+
import { __exports as _sha2 } from '../../../../../../_virtual/_sha2.js';
|
2
2
|
import './_assert.js';
|
3
3
|
import './utils.js';
|
4
|
-
import { __exports as utils } from '
|
5
|
-
import { __exports as _assert } from '
|
4
|
+
import { __exports as utils } from '../../../../../../_virtual/utils.js';
|
5
|
+
import { __exports as _assert } from '../../../../../../_virtual/_assert.js';
|
6
6
|
|
7
7
|
Object.defineProperty(_sha2, "__esModule", { value: true });
|
8
8
|
_sha2.SHA2 = void 0;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __exports as cryptoBrowser } from '
|
1
|
+
import { __exports as cryptoBrowser } from '../../../../../../_virtual/cryptoBrowser.js';
|
2
2
|
|
3
3
|
Object.defineProperty(cryptoBrowser, "__esModule", { value: true });
|
4
4
|
cryptoBrowser.crypto = void 0;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { __exports as hmac } from '
|
1
|
+
import { __exports as hmac } from '../../../../../../_virtual/hmac.js';
|
2
2
|
import './_assert.js';
|
3
3
|
import './utils.js';
|
4
|
-
import { __exports as utils } from '
|
5
|
-
import { __exports as _assert } from '
|
4
|
+
import { __exports as utils } from '../../../../../../_virtual/utils.js';
|
5
|
+
import { __exports as _assert } from '../../../../../../_virtual/_assert.js';
|
6
6
|
|
7
7
|
(function (exports) {
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { __exports as pbkdf2$1 } from '
|
1
|
+
import { __exports as pbkdf2$1 } from '../../../../../../_virtual/pbkdf22.js';
|
2
2
|
import './_assert.js';
|
3
3
|
import './hmac.js';
|
4
4
|
import './utils.js';
|
5
|
-
import { __exports as utils } from '
|
6
|
-
import { __exports as _assert } from '
|
7
|
-
import { __exports as hmac } from '
|
5
|
+
import { __exports as utils } from '../../../../../../_virtual/utils.js';
|
6
|
+
import { __exports as _assert } from '../../../../../../_virtual/_assert.js';
|
7
|
+
import { __exports as hmac } from '../../../../../../_virtual/hmac.js';
|
8
8
|
|
9
9
|
Object.defineProperty(pbkdf2$1, "__esModule", { value: true });
|
10
10
|
pbkdf2$1.pbkdf2Async = pbkdf2$1.pbkdf2 = void 0;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { __exports as scrypt$1 } from '
|
1
|
+
import { __exports as scrypt$1 } from '../../../../../../_virtual/scrypt2.js';
|
2
2
|
import './_assert.js';
|
3
3
|
import './sha256.js';
|
4
4
|
import './pbkdf2.js';
|
5
5
|
import './utils.js';
|
6
|
-
import { __exports as utils } from '
|
7
|
-
import { __exports as _assert } from '
|
8
|
-
import { __exports as pbkdf2 } from '
|
9
|
-
import { __exports as sha256 } from '
|
6
|
+
import { __exports as utils } from '../../../../../../_virtual/utils.js';
|
7
|
+
import { __exports as _assert } from '../../../../../../_virtual/_assert.js';
|
8
|
+
import { __exports as pbkdf2 } from '../../../../../../_virtual/pbkdf22.js';
|
9
|
+
import { __exports as sha256 } from '../../../../../../_virtual/sha2562.js';
|
10
10
|
|
11
11
|
Object.defineProperty(scrypt$1, "__esModule", { value: true });
|
12
12
|
scrypt$1.scryptAsync = scrypt$1.scrypt = void 0;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { __exports as sha256 } from '
|
1
|
+
import { __exports as sha256 } from '../../../../../../_virtual/sha2562.js';
|
2
2
|
import './_sha2.js';
|
3
3
|
import './utils.js';
|
4
|
-
import { __exports as _sha2 } from '
|
5
|
-
import { __exports as utils } from '
|
4
|
+
import { __exports as _sha2 } from '../../../../../../_virtual/_sha2.js';
|
5
|
+
import { __exports as utils } from '../../../../../../_virtual/utils.js';
|
6
6
|
|
7
7
|
Object.defineProperty(sha256, "__esModule", { value: true });
|
8
8
|
sha256.sha224 = sha256.sha256 = void 0;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { __exports as sha512 } from '
|
1
|
+
import { __exports as sha512 } from '../../../../../../_virtual/sha512.js';
|
2
2
|
import './_sha2.js';
|
3
3
|
import './_u64.js';
|
4
4
|
import './utils.js';
|
5
|
-
import { __exports as _u64 } from '
|
6
|
-
import { __exports as _sha2 } from '
|
7
|
-
import { __exports as utils } from '
|
5
|
+
import { __exports as _u64 } from '../../../../../../_virtual/_u64.js';
|
6
|
+
import { __exports as _sha2 } from '../../../../../../_virtual/_sha2.js';
|
7
|
+
import { __exports as utils } from '../../../../../../_virtual/utils.js';
|
8
8
|
|
9
9
|
Object.defineProperty(sha512, "__esModule", { value: true });
|
10
10
|
sha512.sha384 = sha512.sha512_256 = sha512.sha512_224 = sha512.sha512 = sha512.SHA512 = void 0;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { __exports as utils } from '
|
1
|
+
import { __exports as utils } from '../../../../../../_virtual/utils.js';
|
2
2
|
import './cryptoBrowser.js';
|
3
|
-
import { __exports as cryptoBrowser } from '
|
3
|
+
import { __exports as cryptoBrowser } from '../../../../../../_virtual/cryptoBrowser.js';
|
4
4
|
|
5
5
|
(function (exports) {
|
6
6
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { __exports as aes } from '
|
2
|
-
import '
|
1
|
+
import { __exports as aes } from '../../../../../_virtual/aes.js';
|
2
|
+
import '../@noble/hashes/cryptoBrowser.js';
|
3
3
|
import { u as utilsExports } from './utils.js';
|
4
|
-
import { __exports as cryptoBrowser } from '
|
4
|
+
import { __exports as cryptoBrowser } from '../../../../../_virtual/cryptoBrowser.js';
|
5
5
|
|
6
6
|
Object.defineProperty(aes, "__esModule", { value: true });
|
7
7
|
aes.decrypt = aes.encrypt = void 0;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { __exports as pbkdf2$1 } from '
|
2
|
-
import '
|
3
|
-
import '
|
4
|
-
import '
|
1
|
+
import { __exports as pbkdf2$1 } from '../../../../../_virtual/pbkdf2.js';
|
2
|
+
import '../@noble/hashes/pbkdf2.js';
|
3
|
+
import '../@noble/hashes/sha256.js';
|
4
|
+
import '../@noble/hashes/sha512.js';
|
5
5
|
import { u as utilsExports } from './utils.js';
|
6
|
-
import { __exports as pbkdf2$2 } from '
|
7
|
-
import { __exports as sha256 } from '
|
8
|
-
import { __exports as sha512 } from '
|
6
|
+
import { __exports as pbkdf2$2 } from '../../../../../_virtual/pbkdf22.js';
|
7
|
+
import { __exports as sha256 } from '../../../../../_virtual/sha2562.js';
|
8
|
+
import { __exports as sha512 } from '../../../../../_virtual/sha512.js';
|
9
9
|
|
10
10
|
Object.defineProperty(pbkdf2$1, "__esModule", { value: true });
|
11
11
|
pbkdf2$1.pbkdf2Sync = pbkdf2$1.pbkdf2 = void 0;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { __exports as random } from '
|
2
|
-
import '
|
3
|
-
import { __exports as utils } from '
|
1
|
+
import { __exports as random } from '../../../../../_virtual/random.js';
|
2
|
+
import '../@noble/hashes/utils.js';
|
3
|
+
import { __exports as utils } from '../../../../../_virtual/utils.js';
|
4
4
|
|
5
5
|
Object.defineProperty(random, "__esModule", { value: true });
|
6
6
|
random.getRandomBytes = random.getRandomBytesSync = void 0;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { __exports as scrypt$1 } from '
|
2
|
-
import '
|
1
|
+
import { __exports as scrypt$1 } from '../../../../../_virtual/scrypt.js';
|
2
|
+
import '../@noble/hashes/scrypt.js';
|
3
3
|
import { u as utilsExports } from './utils.js';
|
4
|
-
import { __exports as scrypt$2 } from '
|
4
|
+
import { __exports as scrypt$2 } from '../../../../../_virtual/scrypt2.js';
|
5
5
|
|
6
6
|
Object.defineProperty(scrypt$1, "__esModule", { value: true });
|
7
7
|
scrypt$1.scryptSync = scrypt$1.scrypt = void 0;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { __exports as sha256 } from '
|
2
|
-
import '
|
1
|
+
import { __exports as sha256 } from '../../../../../_virtual/sha256.js';
|
2
|
+
import '../@noble/hashes/sha256.js';
|
3
3
|
import { u as utilsExports } from './utils.js';
|
4
|
-
import { __exports as sha256$1 } from '
|
4
|
+
import { __exports as sha256$1 } from '../../../../../_virtual/sha2562.js';
|
5
5
|
|
6
6
|
Object.defineProperty(sha256, "__esModule", { value: true });
|
7
7
|
sha256.sha256 = void 0;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { commonjsGlobal } from '
|
2
|
-
import { commonjsRequire } from '
|
3
|
-
import { __module as utils } from '
|
4
|
-
import '
|
5
|
-
import '
|
6
|
-
import { __exports as _assert } from '
|
7
|
-
import { __exports as utils$1 } from '
|
1
|
+
import { commonjsGlobal } from '../../../../../_virtual/_commonjsHelpers.js';
|
2
|
+
import { commonjsRequire } from '../../../../../_virtual/_commonjs-dynamic-modules.js';
|
3
|
+
import { __module as utils } from '../../../../../_virtual/utils2.js';
|
4
|
+
import '../@noble/hashes/_assert.js';
|
5
|
+
import '../@noble/hashes/utils.js';
|
6
|
+
import { __exports as _assert } from '../../../../../_virtual/_assert.js';
|
7
|
+
import { __exports as utils$1 } from '../../../../../_virtual/utils.js';
|
8
8
|
|
9
9
|
utils.exports;
|
10
10
|
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { parseIPv4, parseIPv6 } from './parse.js';
|
2
|
+
|
3
|
+
/** Check if `input` is IPv4. */
|
4
|
+
function isIPv4(input) {
|
5
|
+
return Boolean(parseIPv4(input));
|
6
|
+
}
|
7
|
+
/** Check if `input` is IPv6. */
|
8
|
+
function isIPv6(input) {
|
9
|
+
return Boolean(parseIPv6(input));
|
10
|
+
}
|
11
|
+
|
12
|
+
export { isIPv4, isIPv6 };
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { Parser } from './parser.js';
|
2
|
+
|
3
|
+
// See https://stackoverflow.com/questions/166132/maximum-length-of-the-textual-representation-of-an-ipv6-address
|
4
|
+
const MAX_IPV6_LENGTH = 45;
|
5
|
+
const MAX_IPV4_LENGTH = 15;
|
6
|
+
const parser = new Parser();
|
7
|
+
/** Parse `input` into IPv4 bytes. */
|
8
|
+
function parseIPv4(input) {
|
9
|
+
if (input.length > MAX_IPV4_LENGTH) {
|
10
|
+
return undefined;
|
11
|
+
}
|
12
|
+
return parser.new(input).parseWith(() => parser.readIPv4Addr());
|
13
|
+
}
|
14
|
+
/** Parse `input` into IPv6 bytes. */
|
15
|
+
function parseIPv6(input) {
|
16
|
+
// strip zone index if it is present
|
17
|
+
if (input.includes("%")) {
|
18
|
+
input = input.split("%")[0];
|
19
|
+
}
|
20
|
+
if (input.length > MAX_IPV6_LENGTH) {
|
21
|
+
return undefined;
|
22
|
+
}
|
23
|
+
return parser.new(input).parseWith(() => parser.readIPv6Addr());
|
24
|
+
}
|
25
|
+
|
26
|
+
export { parseIPv4, parseIPv6 };
|