@bcts/components 1.0.0-alpha.20 → 1.0.0-alpha.21
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 +2 -1
- package/dist/digest-BJkzk4LG.mjs +3 -0
- package/dist/digest-BzlBpAL2.cjs +3 -0
- package/dist/{digest-DGAZAt7R.mjs → digest-DFW8lGqJ.mjs} +13 -1
- package/dist/digest-DFW8lGqJ.mjs.map +1 -0
- package/dist/{digest-DTBmqDcQ.cjs → digest-DWA5qjpo.cjs} +13 -1
- package/dist/digest-DWA5qjpo.cjs.map +1 -0
- package/dist/index.cjs +210 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -8
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +28 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.iife.js +212 -0
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +210 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -25
- package/dist/digest-BJdJcMii.cjs +0 -3
- package/dist/digest-DGAZAt7R.mjs.map +0 -1
- package/dist/digest-DTBmqDcQ.cjs.map +0 -1
- package/dist/digest-yHhOyIQh.mjs +0 -3
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as hexToBytes, c as ErrorKind, d as isError, i as fromBase64, l as isCryptoError, n as bytesEqual, o as toBase64, r as bytesToHex, s as CryptoError, t as Digest, u as isCryptoErrorKind } from "./digest-
|
|
1
|
+
import { a as hexToBytes, c as ErrorKind, d as isError, i as fromBase64, l as isCryptoError, n as bytesEqual, o as toBase64, r as bytesToHex, s as CryptoError, t as Digest, u as isCryptoErrorKind } from "./digest-DFW8lGqJ.mjs";
|
|
2
2
|
import { CborDate, CborMap, cbor, createTaggedCbor, decodeCbor, expectArray, expectBytes, expectInteger, expectMap, expectNumber, expectText, expectUnsigned, extractTaggedContent, isArray, isBytes, isTagged, tagValue, tagsForValues, toByteString, validateTag } from "@bcts/dcbor";
|
|
3
3
|
import { ARID as ARID$1, COMPRESSED, COMPRESSED as COMPRESSED$1, EC_KEY, EC_KEY_V1, ENCRYPTED, ENCRYPTED as ENCRYPTED$1, ENCRYPTED_KEY, ENVELOPE, JSON as JSON$1, KNOWN_VALUE, LEAF, MLDSA_PRIVATE_KEY, MLDSA_PUBLIC_KEY, MLDSA_SIGNATURE, MLKEM_CIPHERTEXT, MLKEM_PRIVATE_KEY, MLKEM_PUBLIC_KEY, NONCE, PRIVATE_KEYS, PRIVATE_KEY_BASE, PUBLIC_KEYS, SALT, SEALED_MESSAGE, SEED, SEED_V1, SIGNATURE, SIGNING_PRIVATE_KEY, SIGNING_PUBLIC_KEY, SSKR_SHARE, SSKR_SHARE_V1, SYMMETRIC_KEY, URI as URI$1, UUID as UUID$1, X25519_PRIVATE_KEY, X25519_PUBLIC_KEY, XID as XID$1 } from "@bcts/tags";
|
|
4
4
|
import { deflate, inflate } from "pako";
|
|
@@ -37,6 +37,10 @@ function isDecrypter(obj) {
|
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/json.ts
|
|
39
39
|
/**
|
|
40
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
41
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
42
|
+
*
|
|
43
|
+
*
|
|
40
44
|
* A CBOR-tagged container for UTF-8 JSON text.
|
|
41
45
|
*
|
|
42
46
|
* Ported from bc-components-rust/src/json.rs
|
|
@@ -213,6 +217,10 @@ var JSON = class JSON {
|
|
|
213
217
|
//#endregion
|
|
214
218
|
//#region src/compressed.ts
|
|
215
219
|
/**
|
|
220
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
221
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
222
|
+
*
|
|
223
|
+
*
|
|
216
224
|
* A compressed binary object with integrity verification.
|
|
217
225
|
*
|
|
218
226
|
* Ported from bc-components-rust/src/compressed.rs
|
|
@@ -496,6 +504,10 @@ var Compressed = class Compressed {
|
|
|
496
504
|
//#endregion
|
|
497
505
|
//#region src/hkdf-rng.ts
|
|
498
506
|
/**
|
|
507
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
508
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
509
|
+
*
|
|
510
|
+
*
|
|
499
511
|
* A deterministic random number generator based on HKDF-HMAC-SHA256.
|
|
500
512
|
*
|
|
501
513
|
* Ported from bc-components-rust/src/hkdf_rng.rs
|
|
@@ -712,13 +724,17 @@ var HKDFRng = class HKDFRng {
|
|
|
712
724
|
* @returns A Promise resolving to a Digest of the data
|
|
713
725
|
*/
|
|
714
726
|
async function digestFromBytes(data) {
|
|
715
|
-
const { Digest: Digest$1 } = await import("./digest-
|
|
727
|
+
const { Digest: Digest$1 } = await import("./digest-BJkzk4LG.mjs");
|
|
716
728
|
return Digest$1.fromImage(data);
|
|
717
729
|
}
|
|
718
730
|
|
|
719
731
|
//#endregion
|
|
720
732
|
//#region src/nonce.ts
|
|
721
733
|
/**
|
|
734
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
735
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
736
|
+
*
|
|
737
|
+
*
|
|
722
738
|
* A random nonce ("number used once").
|
|
723
739
|
*
|
|
724
740
|
* Ported from bc-components-rust/src/nonce.rs
|
|
@@ -958,6 +974,10 @@ var Nonce = class Nonce {
|
|
|
958
974
|
//#endregion
|
|
959
975
|
//#region src/salt.ts
|
|
960
976
|
/**
|
|
977
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
978
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
979
|
+
*
|
|
980
|
+
*
|
|
961
981
|
* Random salt used to decorrelate other information.
|
|
962
982
|
*
|
|
963
983
|
* Ported from bc-components-rust/src/salt.rs
|
|
@@ -1262,6 +1282,10 @@ var Salt = class Salt {
|
|
|
1262
1282
|
//#endregion
|
|
1263
1283
|
//#region src/seed.ts
|
|
1264
1284
|
/**
|
|
1285
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1286
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1287
|
+
*
|
|
1288
|
+
*
|
|
1265
1289
|
* Cryptographic seed with optional metadata (minimum 16 bytes)
|
|
1266
1290
|
* Ported from bc-components-rust/src/seed.rs
|
|
1267
1291
|
*
|
|
@@ -1660,6 +1684,10 @@ var Seed = class Seed {
|
|
|
1660
1684
|
//#endregion
|
|
1661
1685
|
//#region src/reference.ts
|
|
1662
1686
|
/**
|
|
1687
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1688
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1689
|
+
*
|
|
1690
|
+
*
|
|
1663
1691
|
* Content-addressable reference - SHA-256 digest with short reference encoding
|
|
1664
1692
|
*/
|
|
1665
1693
|
/**
|
|
@@ -1806,6 +1834,10 @@ var Reference = class Reference {
|
|
|
1806
1834
|
//#endregion
|
|
1807
1835
|
//#region src/id/arid.ts
|
|
1808
1836
|
/**
|
|
1837
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1838
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1839
|
+
*
|
|
1840
|
+
*
|
|
1809
1841
|
* An "Apparently Random Identifier" (ARID)
|
|
1810
1842
|
*
|
|
1811
1843
|
* Ported from bc-components-rust/src/id/arid.rs
|
|
@@ -2064,6 +2096,10 @@ var ARID = class ARID {
|
|
|
2064
2096
|
//#endregion
|
|
2065
2097
|
//#region src/id/uuid.ts
|
|
2066
2098
|
/**
|
|
2099
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
2100
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
2101
|
+
*
|
|
2102
|
+
*
|
|
2067
2103
|
* Universally Unique Identifier (UUID) - 16-byte identifier
|
|
2068
2104
|
*
|
|
2069
2105
|
* UUIDs are 128-bit (16-byte) identifiers that are designed to be unique
|
|
@@ -2295,6 +2331,10 @@ var UUID = class UUID {
|
|
|
2295
2331
|
//#endregion
|
|
2296
2332
|
//#region src/id/xid.ts
|
|
2297
2333
|
/**
|
|
2334
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
2335
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
2336
|
+
*
|
|
2337
|
+
*
|
|
2298
2338
|
* eXtensible Identifier (XID) - 32-byte identifier bound to a public key
|
|
2299
2339
|
*
|
|
2300
2340
|
* A XID is a unique 32-byte identifier for a subject entity (person,
|
|
@@ -2568,6 +2608,10 @@ var XID = class XID {
|
|
|
2568
2608
|
//#endregion
|
|
2569
2609
|
//#region src/id/uri.ts
|
|
2570
2610
|
/**
|
|
2611
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
2612
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
2613
|
+
*
|
|
2614
|
+
*
|
|
2571
2615
|
* Uniform Resource Identifier (URI) - String-based identifier
|
|
2572
2616
|
*
|
|
2573
2617
|
* A URI is a string of characters that unambiguously identifies a particular
|
|
@@ -2785,6 +2829,10 @@ var URI = class URI {
|
|
|
2785
2829
|
//#endregion
|
|
2786
2830
|
//#region src/x25519/x25519-public-key.ts
|
|
2787
2831
|
/**
|
|
2832
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
2833
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
2834
|
+
*
|
|
2835
|
+
*
|
|
2788
2836
|
* X25519 public key for ECDH key exchange (32 bytes)
|
|
2789
2837
|
*
|
|
2790
2838
|
* X25519 is an elliptic-curve Diffie-Hellman key exchange protocol based on
|
|
@@ -2979,6 +3027,10 @@ var X25519PublicKey = class X25519PublicKey {
|
|
|
2979
3027
|
//#endregion
|
|
2980
3028
|
//#region src/symmetric/authentication-tag.ts
|
|
2981
3029
|
/**
|
|
3030
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3031
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3032
|
+
*
|
|
3033
|
+
*
|
|
2982
3034
|
* Authentication tag for AEAD encryption (16 bytes)
|
|
2983
3035
|
*
|
|
2984
3036
|
* An `AuthenticationTag` is a 16-byte value generated during ChaCha20-Poly1305
|
|
@@ -3104,6 +3156,10 @@ var AuthenticationTag = class AuthenticationTag {
|
|
|
3104
3156
|
//#endregion
|
|
3105
3157
|
//#region src/symmetric/encrypted-message.ts
|
|
3106
3158
|
/**
|
|
3159
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3160
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3161
|
+
*
|
|
3162
|
+
*
|
|
3107
3163
|
* Encrypted message with ChaCha20-Poly1305 AEAD
|
|
3108
3164
|
*
|
|
3109
3165
|
* A secure encrypted message using IETF ChaCha20-Poly1305 authenticated
|
|
@@ -3340,6 +3396,10 @@ var EncryptedMessage = class EncryptedMessage {
|
|
|
3340
3396
|
//#endregion
|
|
3341
3397
|
//#region src/symmetric/symmetric-key.ts
|
|
3342
3398
|
/**
|
|
3399
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3400
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3401
|
+
*
|
|
3402
|
+
*
|
|
3343
3403
|
* Symmetric key for ChaCha20-Poly1305 AEAD encryption (32 bytes)
|
|
3344
3404
|
*
|
|
3345
3405
|
* A symmetric encryption key used for both encryption and decryption.
|
|
@@ -3577,6 +3637,10 @@ var SymmetricKey = class SymmetricKey {
|
|
|
3577
3637
|
//#endregion
|
|
3578
3638
|
//#region src/x25519/x25519-private-key.ts
|
|
3579
3639
|
/**
|
|
3640
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3641
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3642
|
+
*
|
|
3643
|
+
*
|
|
3580
3644
|
* X25519 private key for ECDH key exchange (32 bytes seed)
|
|
3581
3645
|
*
|
|
3582
3646
|
* X25519 is an elliptic-curve Diffie-Hellman key exchange protocol based on
|
|
@@ -3849,6 +3913,10 @@ var X25519PrivateKey = class X25519PrivateKey {
|
|
|
3849
3913
|
//#endregion
|
|
3850
3914
|
//#region src/ed25519/ed25519-public-key.ts
|
|
3851
3915
|
/**
|
|
3916
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3917
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3918
|
+
*
|
|
3919
|
+
*
|
|
3852
3920
|
* Ed25519 public key for EdDSA signature verification (32 bytes)
|
|
3853
3921
|
* Ported from bc-components-rust/src/ed25519_public_key.rs
|
|
3854
3922
|
*/
|
|
@@ -3918,6 +3986,10 @@ var Ed25519PublicKey = class Ed25519PublicKey {
|
|
|
3918
3986
|
//#endregion
|
|
3919
3987
|
//#region src/ed25519/ed25519-private-key.ts
|
|
3920
3988
|
/**
|
|
3989
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3990
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3991
|
+
*
|
|
3992
|
+
*
|
|
3921
3993
|
* Ed25519 private key for EdDSA signatures (32 bytes seed)
|
|
3922
3994
|
* Ported from bc-components-rust/src/ed25519_private_key.rs
|
|
3923
3995
|
*/
|
|
@@ -4010,6 +4082,10 @@ var Ed25519PrivateKey = class Ed25519PrivateKey {
|
|
|
4010
4082
|
//#endregion
|
|
4011
4083
|
//#region src/sr25519/sr25519-public-key.ts
|
|
4012
4084
|
/**
|
|
4085
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4086
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4087
|
+
*
|
|
4088
|
+
*
|
|
4013
4089
|
* Sr25519PublicKey - Public key for Schnorr signatures over Ristretto25519
|
|
4014
4090
|
*
|
|
4015
4091
|
* SR25519 is the signature scheme used by Polkadot/Substrate.
|
|
@@ -4111,6 +4187,10 @@ var Sr25519PublicKey = class Sr25519PublicKey {
|
|
|
4111
4187
|
//#endregion
|
|
4112
4188
|
//#region src/sr25519/sr25519-private-key.ts
|
|
4113
4189
|
/**
|
|
4190
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4191
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4192
|
+
*
|
|
4193
|
+
*
|
|
4114
4194
|
* Sr25519PrivateKey - Schnorr signatures over Ristretto25519
|
|
4115
4195
|
*
|
|
4116
4196
|
* SR25519 is the signature scheme used by Polkadot/Substrate.
|
|
@@ -4305,6 +4385,10 @@ function isECPublicKeyBase(obj) {
|
|
|
4305
4385
|
//#endregion
|
|
4306
4386
|
//#region src/ec-key/ec-uncompressed-public-key.ts
|
|
4307
4387
|
/**
|
|
4388
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4389
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4390
|
+
*
|
|
4391
|
+
*
|
|
4308
4392
|
* EC uncompressed public key for ECDSA (secp256k1, 65 bytes)
|
|
4309
4393
|
*
|
|
4310
4394
|
* An `ECUncompressedPublicKey` is a 65-byte uncompressed representation of a
|
|
@@ -4515,6 +4599,10 @@ var ECUncompressedPublicKey = class ECUncompressedPublicKey {
|
|
|
4515
4599
|
//#endregion
|
|
4516
4600
|
//#region src/ec-key/ec-public-key.ts
|
|
4517
4601
|
/**
|
|
4602
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4603
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4604
|
+
*
|
|
4605
|
+
*
|
|
4518
4606
|
* EC compressed public key for ECDSA verification (secp256k1, 33 bytes)
|
|
4519
4607
|
*
|
|
4520
4608
|
* An `ECPublicKey` is a 33-byte compressed representation of a public key on
|
|
@@ -4751,6 +4839,10 @@ var ECPublicKey = class ECPublicKey {
|
|
|
4751
4839
|
//#endregion
|
|
4752
4840
|
//#region src/ec-key/schnorr-public-key.ts
|
|
4753
4841
|
/**
|
|
4842
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4843
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4844
|
+
*
|
|
4845
|
+
*
|
|
4754
4846
|
* Schnorr (x-only) public key for BIP-340 signatures (secp256k1, 32 bytes)
|
|
4755
4847
|
*
|
|
4756
4848
|
* A `SchnorrPublicKey` is a 32-byte "x-only" public key used with the BIP-340
|
|
@@ -4870,6 +4962,10 @@ var SchnorrPublicKey = class SchnorrPublicKey {
|
|
|
4870
4962
|
//#endregion
|
|
4871
4963
|
//#region src/ec-key/ec-private-key.ts
|
|
4872
4964
|
/**
|
|
4965
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4966
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4967
|
+
*
|
|
4968
|
+
*
|
|
4873
4969
|
* EC private key for ECDSA and Schnorr signatures (secp256k1, 32 bytes)
|
|
4874
4970
|
*
|
|
4875
4971
|
* An `ECPrivateKey` is a 32-byte secret value that can be used to:
|
|
@@ -5181,6 +5277,10 @@ var ECPrivateKey = class ECPrivateKey {
|
|
|
5181
5277
|
//#endregion
|
|
5182
5278
|
//#region src/mldsa/mldsa-level.ts
|
|
5183
5279
|
/**
|
|
5280
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5281
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
5282
|
+
*
|
|
5283
|
+
*
|
|
5184
5284
|
* MLDSA Security Level - ML-DSA (Module-Lattice-Based Digital Signature Algorithm)
|
|
5185
5285
|
*
|
|
5186
5286
|
* ML-DSA is a post-quantum digital signature algorithm standardized by NIST.
|
|
@@ -5350,6 +5450,10 @@ function mldsaVerify(level, publicKey, message, signature) {
|
|
|
5350
5450
|
//#endregion
|
|
5351
5451
|
//#region src/mldsa/mldsa-public-key.ts
|
|
5352
5452
|
/**
|
|
5453
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5454
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
5455
|
+
*
|
|
5456
|
+
*
|
|
5353
5457
|
* MLDSAPublicKey - ML-DSA Public Key for post-quantum signature verification
|
|
5354
5458
|
*
|
|
5355
5459
|
* MLDSAPublicKey wraps an ML-DSA public key for verifying signatures.
|
|
@@ -5540,6 +5644,10 @@ var MLDSAPublicKey = class MLDSAPublicKey {
|
|
|
5540
5644
|
//#endregion
|
|
5541
5645
|
//#region src/mldsa/mldsa-signature.ts
|
|
5542
5646
|
/**
|
|
5647
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5648
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
5649
|
+
*
|
|
5650
|
+
*
|
|
5543
5651
|
* MLDSASignature - ML-DSA Digital Signature
|
|
5544
5652
|
*
|
|
5545
5653
|
* MLDSASignature wraps an ML-DSA signature for serialization and verification.
|
|
@@ -5719,6 +5827,10 @@ var MLDSASignature = class MLDSASignature {
|
|
|
5719
5827
|
//#endregion
|
|
5720
5828
|
//#region src/mldsa/mldsa-private-key.ts
|
|
5721
5829
|
/**
|
|
5830
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5831
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
5832
|
+
*
|
|
5833
|
+
*
|
|
5722
5834
|
* MLDSAPrivateKey - ML-DSA Private Key for post-quantum digital signatures
|
|
5723
5835
|
*
|
|
5724
5836
|
* MLDSAPrivateKey wraps an ML-DSA secret key for signing messages.
|
|
@@ -5957,6 +6069,10 @@ var MLDSAPrivateKey = class MLDSAPrivateKey {
|
|
|
5957
6069
|
//#endregion
|
|
5958
6070
|
//#region src/signing/signature.ts
|
|
5959
6071
|
/**
|
|
6072
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
6073
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
6074
|
+
*
|
|
6075
|
+
*
|
|
5960
6076
|
* A digital signature created with various signature algorithms.
|
|
5961
6077
|
*
|
|
5962
6078
|
* `Signature` represents different types of digital signatures.
|
|
@@ -6366,6 +6482,10 @@ var Signature = class Signature {
|
|
|
6366
6482
|
//#endregion
|
|
6367
6483
|
//#region src/signing/signing-public-key.ts
|
|
6368
6484
|
/**
|
|
6485
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
6486
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
6487
|
+
*
|
|
6488
|
+
*
|
|
6369
6489
|
* A public key used for verifying digital signatures.
|
|
6370
6490
|
*
|
|
6371
6491
|
* `SigningPublicKey` is a type representing different types of signing public
|
|
@@ -6889,6 +7009,10 @@ var SigningPublicKey = class SigningPublicKey {
|
|
|
6889
7009
|
//#endregion
|
|
6890
7010
|
//#region src/signing/signing-private-key.ts
|
|
6891
7011
|
/**
|
|
7012
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
7013
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
7014
|
+
*
|
|
7015
|
+
*
|
|
6892
7016
|
* A private key used for creating digital signatures.
|
|
6893
7017
|
*
|
|
6894
7018
|
* `SigningPrivateKey` is a type representing different types of signing
|
|
@@ -7722,6 +7846,10 @@ function createKeypairUsing(scheme, rng) {
|
|
|
7722
7846
|
//#endregion
|
|
7723
7847
|
//#region src/mlkem/mlkem-level.ts
|
|
7724
7848
|
/**
|
|
7849
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
7850
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
7851
|
+
*
|
|
7852
|
+
*
|
|
7725
7853
|
* MLKEM Security Level - ML-KEM (Module-Lattice-Based Key Encapsulation Mechanism)
|
|
7726
7854
|
*
|
|
7727
7855
|
* ML-KEM is a post-quantum key encapsulation mechanism standardized by NIST.
|
|
@@ -7939,6 +8067,10 @@ function mlkemExtractPublicKey(level, secretKey) {
|
|
|
7939
8067
|
//#endregion
|
|
7940
8068
|
//#region src/mlkem/mlkem-ciphertext.ts
|
|
7941
8069
|
/**
|
|
8070
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
8071
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
8072
|
+
*
|
|
8073
|
+
*
|
|
7942
8074
|
* MLKEMCiphertext - ML-KEM Ciphertext for post-quantum key encapsulation
|
|
7943
8075
|
*
|
|
7944
8076
|
* MLKEMCiphertext wraps an ML-KEM ciphertext for transmission and decapsulation.
|
|
@@ -8118,6 +8250,10 @@ var MLKEMCiphertext = class MLKEMCiphertext {
|
|
|
8118
8250
|
//#endregion
|
|
8119
8251
|
//#region src/encapsulation/encapsulation-ciphertext.ts
|
|
8120
8252
|
/**
|
|
8253
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
8254
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
8255
|
+
*
|
|
8256
|
+
*
|
|
8121
8257
|
* Encapsulation ciphertext for key encapsulation mechanisms
|
|
8122
8258
|
*
|
|
8123
8259
|
* This type represents the ciphertext produced during key encapsulation.
|
|
@@ -8360,6 +8496,10 @@ var EncapsulationCiphertext = class EncapsulationCiphertext {
|
|
|
8360
8496
|
//#endregion
|
|
8361
8497
|
//#region src/mlkem/mlkem-public-key.ts
|
|
8362
8498
|
/**
|
|
8499
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
8500
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
8501
|
+
*
|
|
8502
|
+
*
|
|
8363
8503
|
* MLKEMPublicKey - ML-KEM Public Key for post-quantum key encapsulation
|
|
8364
8504
|
*
|
|
8365
8505
|
* MLKEMPublicKey wraps an ML-KEM public key for encapsulating shared secrets.
|
|
@@ -8555,6 +8695,10 @@ var MLKEMPublicKey = class MLKEMPublicKey {
|
|
|
8555
8695
|
//#endregion
|
|
8556
8696
|
//#region src/encapsulation/encapsulation-public-key.ts
|
|
8557
8697
|
/**
|
|
8698
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
8699
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
8700
|
+
*
|
|
8701
|
+
*
|
|
8558
8702
|
* Encapsulation public key for key encapsulation mechanisms
|
|
8559
8703
|
*
|
|
8560
8704
|
* This type represents a public key that can be used to encapsulate (encrypt)
|
|
@@ -8886,6 +9030,10 @@ var EncapsulationPublicKey = class EncapsulationPublicKey {
|
|
|
8886
9030
|
//#endregion
|
|
8887
9031
|
//#region src/mlkem/mlkem-private-key.ts
|
|
8888
9032
|
/**
|
|
9033
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
9034
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
9035
|
+
*
|
|
9036
|
+
*
|
|
8889
9037
|
* MLKEMPrivateKey - ML-KEM Private Key for post-quantum key decapsulation
|
|
8890
9038
|
*
|
|
8891
9039
|
* MLKEMPrivateKey wraps an ML-KEM secret key for decapsulating shared secrets.
|
|
@@ -9127,6 +9275,10 @@ var MLKEMPrivateKey = class MLKEMPrivateKey {
|
|
|
9127
9275
|
//#endregion
|
|
9128
9276
|
//#region src/encapsulation/encapsulation-private-key.ts
|
|
9129
9277
|
/**
|
|
9278
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
9279
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
9280
|
+
*
|
|
9281
|
+
*
|
|
9130
9282
|
* Encapsulation private key for key encapsulation mechanisms
|
|
9131
9283
|
*
|
|
9132
9284
|
* This type represents a private key that can be used to decapsulate (decrypt)
|
|
@@ -9589,6 +9741,10 @@ function createEncapsulationKeypairUsing(rng, scheme = EncapsulationScheme.X2551
|
|
|
9589
9741
|
//#endregion
|
|
9590
9742
|
//#region src/encapsulation/sealed-message.ts
|
|
9591
9743
|
/**
|
|
9744
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
9745
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
9746
|
+
*
|
|
9747
|
+
*
|
|
9592
9748
|
* Sealed message for anonymous authenticated encryption
|
|
9593
9749
|
*
|
|
9594
9750
|
* A `SealedMessage` combines key encapsulation with symmetric encryption to
|
|
@@ -9816,6 +9972,10 @@ var SealedMessage = class SealedMessage {
|
|
|
9816
9972
|
//#endregion
|
|
9817
9973
|
//#region src/encrypted-key/hash-type.ts
|
|
9818
9974
|
/**
|
|
9975
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
9976
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
9977
|
+
*
|
|
9978
|
+
*
|
|
9819
9979
|
* Hash type enum for key derivation functions
|
|
9820
9980
|
*
|
|
9821
9981
|
* This enum represents the supported hash algorithms for HKDF and PBKDF2.
|
|
@@ -9870,6 +10030,10 @@ function hashTypeFromCbor(cborValue) {
|
|
|
9870
10030
|
//#endregion
|
|
9871
10031
|
//#region src/encrypted-key/key-derivation-method.ts
|
|
9872
10032
|
/**
|
|
10033
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10034
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10035
|
+
*
|
|
10036
|
+
*
|
|
9873
10037
|
* Key derivation method enum
|
|
9874
10038
|
*
|
|
9875
10039
|
* This enum represents the supported key derivation methods for encrypting keys.
|
|
@@ -9953,6 +10117,10 @@ function keyDerivationMethodFromCbor(cborValue) {
|
|
|
9953
10117
|
//#endregion
|
|
9954
10118
|
//#region src/encrypted-key/hkdf-params.ts
|
|
9955
10119
|
/**
|
|
10120
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10121
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10122
|
+
*
|
|
10123
|
+
*
|
|
9956
10124
|
* HKDF (HMAC-based Key Derivation Function) parameters
|
|
9957
10125
|
*
|
|
9958
10126
|
* HKDF is a key derivation function based on HMAC, defined in RFC 5869.
|
|
@@ -10076,6 +10244,10 @@ var HKDFParams = class HKDFParams {
|
|
|
10076
10244
|
//#endregion
|
|
10077
10245
|
//#region src/encrypted-key/pbkdf2-params.ts
|
|
10078
10246
|
/**
|
|
10247
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10248
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10249
|
+
*
|
|
10250
|
+
*
|
|
10079
10251
|
* PBKDF2 (Password-Based Key Derivation Function 2) parameters
|
|
10080
10252
|
*
|
|
10081
10253
|
* PBKDF2 is a key derivation function defined in RFC 8018 (PKCS #5 v2.1).
|
|
@@ -10202,6 +10374,10 @@ var PBKDF2Params = class PBKDF2Params {
|
|
|
10202
10374
|
//#endregion
|
|
10203
10375
|
//#region src/encrypted-key/scrypt-params.ts
|
|
10204
10376
|
/**
|
|
10377
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10378
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10379
|
+
*
|
|
10380
|
+
*
|
|
10205
10381
|
* Scrypt parameters for password-based key derivation
|
|
10206
10382
|
*
|
|
10207
10383
|
* Scrypt is a memory-hard key derivation function defined in RFC 7914.
|
|
@@ -10341,6 +10517,10 @@ var ScryptParams = class ScryptParams {
|
|
|
10341
10517
|
//#endregion
|
|
10342
10518
|
//#region src/encrypted-key/argon2id-params.ts
|
|
10343
10519
|
/**
|
|
10520
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10521
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10522
|
+
*
|
|
10523
|
+
*
|
|
10344
10524
|
* Argon2id parameters for password-based key derivation
|
|
10345
10525
|
*
|
|
10346
10526
|
* Argon2id is a memory-hard key derivation function defined in RFC 9106.
|
|
@@ -10453,6 +10633,10 @@ var Argon2idParams = class Argon2idParams {
|
|
|
10453
10633
|
//#endregion
|
|
10454
10634
|
//#region src/encrypted-key/ssh-agent-params.ts
|
|
10455
10635
|
/**
|
|
10636
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10637
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10638
|
+
*
|
|
10639
|
+
*
|
|
10456
10640
|
* SSH Agent key derivation parameters
|
|
10457
10641
|
*
|
|
10458
10642
|
* SSH Agent uses an SSH agent daemon for key derivation. The agent signs
|
|
@@ -10584,6 +10768,10 @@ var SSHAgentParams = class SSHAgentParams {
|
|
|
10584
10768
|
//#endregion
|
|
10585
10769
|
//#region src/encrypted-key/key-derivation-params.ts
|
|
10586
10770
|
/**
|
|
10771
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10772
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10773
|
+
*
|
|
10774
|
+
*
|
|
10587
10775
|
* Key derivation parameters union type
|
|
10588
10776
|
*
|
|
10589
10777
|
* This type represents the derivation parameters for all supported methods.
|
|
@@ -10757,6 +10945,10 @@ function keyDerivationParamsFromCbor(cborValue) {
|
|
|
10757
10945
|
//#endregion
|
|
10758
10946
|
//#region src/encrypted-key/encrypted-key.ts
|
|
10759
10947
|
/**
|
|
10948
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10949
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10950
|
+
*
|
|
10951
|
+
*
|
|
10760
10952
|
* Encrypted key for secure symmetric key storage
|
|
10761
10953
|
*
|
|
10762
10954
|
* `EncryptedKey` provides symmetric encryption and decryption of content keys
|
|
@@ -10991,6 +11183,10 @@ var EncryptedKey = class EncryptedKey {
|
|
|
10991
11183
|
//#endregion
|
|
10992
11184
|
//#region src/public-keys.ts
|
|
10993
11185
|
/**
|
|
11186
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11187
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11188
|
+
*
|
|
11189
|
+
*
|
|
10994
11190
|
* PublicKeys - Container for signing and encapsulation public keys
|
|
10995
11191
|
*
|
|
10996
11192
|
* PublicKeys combines a SigningPublicKey (for signature verification) and an
|
|
@@ -11216,6 +11412,10 @@ var PublicKeys = class PublicKeys {
|
|
|
11216
11412
|
//#endregion
|
|
11217
11413
|
//#region src/private-keys.ts
|
|
11218
11414
|
/**
|
|
11415
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11416
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11417
|
+
*
|
|
11418
|
+
*
|
|
11219
11419
|
* PrivateKeys - Container for signing and encapsulation private keys
|
|
11220
11420
|
*
|
|
11221
11421
|
* PrivateKeys combines a SigningPrivateKey (for digital signatures) and an
|
|
@@ -11428,6 +11628,10 @@ var PrivateKeys = class PrivateKeys {
|
|
|
11428
11628
|
//#endregion
|
|
11429
11629
|
//#region src/private-key-base.ts
|
|
11430
11630
|
/**
|
|
11631
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11632
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11633
|
+
*
|
|
11634
|
+
*
|
|
11431
11635
|
* PrivateKeyBase - Root cryptographic material for deterministic key derivation
|
|
11432
11636
|
*
|
|
11433
11637
|
* PrivateKeyBase is a 32-byte value that serves as the root of cryptographic
|
|
@@ -11698,6 +11902,10 @@ var PrivateKeyBase = class PrivateKeyBase {
|
|
|
11698
11902
|
//#endregion
|
|
11699
11903
|
//#region src/sskr.ts
|
|
11700
11904
|
/**
|
|
11905
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11906
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11907
|
+
*
|
|
11908
|
+
*
|
|
11701
11909
|
* SSKR Integration - CBOR wrappers for SSKR shares
|
|
11702
11910
|
*
|
|
11703
11911
|
* This module provides CBOR serialization for SSKR (Sharded Secret Key
|