@optimystic/quereus-plugin-crypto 1.4.0 → 1.5.1

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/src/index.ts CHANGED
@@ -1,58 +1,58 @@
1
- /**
2
- * Quereus Crypto Functions Plugin
3
- *
4
- * Provides cryptographic functions for SQL queries and ES modules:
5
- * - digest: Injective multi-field hash (SHA-256, SHA-512, BLAKE3) with base64url encoding
6
- * - cid / cidV1 / cidDecode: Self-describing, interoperable CIDv1 content identifiers
7
- * - setCommit / setDisclose / setVerify: Salted-leaf set commitment for per-attribute selective disclosure
8
- * - sign: ECC signature generation (secp256k1, P-256, Ed25519)
9
- * - verify: ECC signature verification
10
- * - hashMod: Hash with modulo for fixed-size outputs
11
- * - randomBytes: Generate cryptographically secure random bytes
12
- *
13
- * All functions use base64url encoding by default for SQL compatibility.
14
- */
15
-
16
- // Export idiomatic lowercase functions (primary API)
17
- export {
18
- digest,
19
- digestFields,
20
- encodeFields,
21
- resolveHasher,
22
- resolveOutputEncoder,
23
- sign,
24
- verify,
25
- hashMod,
26
- randomBytes,
27
- generatePrivateKey,
28
- getPublicKey,
29
- type HashAlgorithm,
30
- type CurveType,
31
- type Encoding,
32
- type OutputEncoding,
33
- type DigestField,
34
- type DigestHasher,
35
- type OutputEncoder,
36
- } from './crypto.js';
37
-
38
- // Self-describing content identifiers (CIDv1) layered on top of digest.
39
- export {
40
- cid,
41
- cidV1,
42
- cidDecode,
43
- type Multicodec,
44
- type MultihashCode,
45
- type Multibase,
46
- type CidParts,
47
- } from './cid.js';
48
-
49
- // Salted-leaf set commitment for per-attribute selective disclosure, layered on digest.
50
- export {
51
- leafDigest,
52
- setCommit,
53
- setDisclose,
54
- setVerify,
55
- type SaltedLeaf,
56
- type SetDisclosure,
57
- } from './sd.js';
58
-
1
+ /**
2
+ * Quereus Crypto Functions Plugin
3
+ *
4
+ * Provides cryptographic functions for SQL queries and ES modules:
5
+ * - digest: Injective multi-field hash (SHA-256, SHA-512, BLAKE3) with base64url encoding
6
+ * - cid / cidV1 / cidDecode: Self-describing, interoperable CIDv1 content identifiers
7
+ * - setCommit / setDisclose / setVerify: Salted-leaf set commitment for per-attribute selective disclosure
8
+ * - sign: ECC signature generation (secp256k1, P-256, Ed25519)
9
+ * - verify: ECC signature verification
10
+ * - hashMod: Hash with modulo for fixed-size outputs
11
+ * - randomBytes: Generate cryptographically secure random bytes
12
+ *
13
+ * All functions use base64url encoding by default for SQL compatibility.
14
+ */
15
+
16
+ // Export idiomatic lowercase functions (primary API)
17
+ export {
18
+ digest,
19
+ digestFields,
20
+ encodeFields,
21
+ resolveHasher,
22
+ resolveOutputEncoder,
23
+ sign,
24
+ verify,
25
+ hashMod,
26
+ randomBytes,
27
+ generatePrivateKey,
28
+ getPublicKey,
29
+ type HashAlgorithm,
30
+ type CurveType,
31
+ type Encoding,
32
+ type OutputEncoding,
33
+ type DigestField,
34
+ type DigestHasher,
35
+ type OutputEncoder,
36
+ } from './crypto.js';
37
+
38
+ // Self-describing content identifiers (CIDv1) layered on top of digest.
39
+ export {
40
+ cid,
41
+ cidV1,
42
+ cidDecode,
43
+ type Multicodec,
44
+ type MultihashCode,
45
+ type Multibase,
46
+ type CidParts,
47
+ } from './cid.js';
48
+
49
+ // Salted-leaf set commitment for per-attribute selective disclosure, layered on digest.
50
+ export {
51
+ leafDigest,
52
+ setCommit,
53
+ setDisclose,
54
+ setVerify,
55
+ type SaltedLeaf,
56
+ type SetDisclosure,
57
+ } from './sd.js';
58
+