@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.iife.js
CHANGED
|
@@ -526,6 +526,10 @@ init_error();
|
|
|
526
526
|
//#endregion
|
|
527
527
|
//#region src/utils.ts
|
|
528
528
|
/**
|
|
529
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
530
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
531
|
+
*
|
|
532
|
+
*
|
|
529
533
|
* Utility functions for byte array conversions and comparisons.
|
|
530
534
|
*
|
|
531
535
|
* These functions provide cross-platform support for common byte manipulation
|
|
@@ -647,6 +651,10 @@ init_error();
|
|
|
647
651
|
//#endregion
|
|
648
652
|
//#region src/json.ts
|
|
649
653
|
/**
|
|
654
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
655
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
656
|
+
*
|
|
657
|
+
*
|
|
650
658
|
* A CBOR-tagged container for UTF-8 JSON text.
|
|
651
659
|
*
|
|
652
660
|
* Ported from bc-components-rust/src/json.rs
|
|
@@ -824,6 +832,10 @@ init_error();
|
|
|
824
832
|
//#endregion
|
|
825
833
|
//#region src/digest.ts
|
|
826
834
|
/**
|
|
835
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
836
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
837
|
+
*
|
|
838
|
+
*
|
|
827
839
|
* SHA-256 cryptographic digest (32 bytes)
|
|
828
840
|
*
|
|
829
841
|
* Ported from bc-components-rust/src/digest.rs
|
|
@@ -1129,6 +1141,10 @@ init_error();
|
|
|
1129
1141
|
//#endregion
|
|
1130
1142
|
//#region src/compressed.ts
|
|
1131
1143
|
/**
|
|
1144
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1145
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1146
|
+
*
|
|
1147
|
+
*
|
|
1132
1148
|
* A compressed binary object with integrity verification.
|
|
1133
1149
|
*
|
|
1134
1150
|
* Ported from bc-components-rust/src/compressed.rs
|
|
@@ -1415,6 +1431,10 @@ init_error();
|
|
|
1415
1431
|
//#endregion
|
|
1416
1432
|
//#region src/hkdf-rng.ts
|
|
1417
1433
|
/**
|
|
1434
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1435
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1436
|
+
*
|
|
1437
|
+
*
|
|
1418
1438
|
* A deterministic random number generator based on HKDF-HMAC-SHA256.
|
|
1419
1439
|
*
|
|
1420
1440
|
* Ported from bc-components-rust/src/hkdf_rng.rs
|
|
@@ -1638,6 +1658,10 @@ init_error();
|
|
|
1638
1658
|
//#endregion
|
|
1639
1659
|
//#region src/nonce.ts
|
|
1640
1660
|
/**
|
|
1661
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1662
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1663
|
+
*
|
|
1664
|
+
*
|
|
1641
1665
|
* A random nonce ("number used once").
|
|
1642
1666
|
*
|
|
1643
1667
|
* Ported from bc-components-rust/src/nonce.rs
|
|
@@ -1879,6 +1903,10 @@ init_error();
|
|
|
1879
1903
|
//#endregion
|
|
1880
1904
|
//#region src/salt.ts
|
|
1881
1905
|
/**
|
|
1906
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1907
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1908
|
+
*
|
|
1909
|
+
*
|
|
1882
1910
|
* Random salt used to decorrelate other information.
|
|
1883
1911
|
*
|
|
1884
1912
|
* Ported from bc-components-rust/src/salt.rs
|
|
@@ -2185,6 +2213,10 @@ init_error();
|
|
|
2185
2213
|
//#endregion
|
|
2186
2214
|
//#region src/seed.ts
|
|
2187
2215
|
/**
|
|
2216
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
2217
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
2218
|
+
*
|
|
2219
|
+
*
|
|
2188
2220
|
* Cryptographic seed with optional metadata (minimum 16 bytes)
|
|
2189
2221
|
* Ported from bc-components-rust/src/seed.rs
|
|
2190
2222
|
*
|
|
@@ -2730,6 +2762,10 @@ init_error();
|
|
|
2730
2762
|
//#endregion
|
|
2731
2763
|
//#region src/id/arid.ts
|
|
2732
2764
|
/**
|
|
2765
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
2766
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
2767
|
+
*
|
|
2768
|
+
*
|
|
2733
2769
|
* An "Apparently Random Identifier" (ARID)
|
|
2734
2770
|
*
|
|
2735
2771
|
* Ported from bc-components-rust/src/id/arid.rs
|
|
@@ -2990,6 +3026,10 @@ init_error();
|
|
|
2990
3026
|
//#endregion
|
|
2991
3027
|
//#region src/id/uuid.ts
|
|
2992
3028
|
/**
|
|
3029
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3030
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3031
|
+
*
|
|
3032
|
+
*
|
|
2993
3033
|
* Universally Unique Identifier (UUID) - 16-byte identifier
|
|
2994
3034
|
*
|
|
2995
3035
|
* UUIDs are 128-bit (16-byte) identifiers that are designed to be unique
|
|
@@ -3223,6 +3263,10 @@ init_error();
|
|
|
3223
3263
|
//#endregion
|
|
3224
3264
|
//#region src/id/xid.ts
|
|
3225
3265
|
/**
|
|
3266
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3267
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3268
|
+
*
|
|
3269
|
+
*
|
|
3226
3270
|
* eXtensible Identifier (XID) - 32-byte identifier bound to a public key
|
|
3227
3271
|
*
|
|
3228
3272
|
* A XID is a unique 32-byte identifier for a subject entity (person,
|
|
@@ -3499,6 +3543,10 @@ init_error();
|
|
|
3499
3543
|
//#endregion
|
|
3500
3544
|
//#region src/id/uri.ts
|
|
3501
3545
|
/**
|
|
3546
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3547
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3548
|
+
*
|
|
3549
|
+
*
|
|
3502
3550
|
* Uniform Resource Identifier (URI) - String-based identifier
|
|
3503
3551
|
*
|
|
3504
3552
|
* A URI is a string of characters that unambiguously identifies a particular
|
|
@@ -3718,6 +3766,10 @@ init_error();
|
|
|
3718
3766
|
//#endregion
|
|
3719
3767
|
//#region src/x25519/x25519-public-key.ts
|
|
3720
3768
|
/**
|
|
3769
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3770
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3771
|
+
*
|
|
3772
|
+
*
|
|
3721
3773
|
* X25519 public key for ECDH key exchange (32 bytes)
|
|
3722
3774
|
*
|
|
3723
3775
|
* X25519 is an elliptic-curve Diffie-Hellman key exchange protocol based on
|
|
@@ -3914,6 +3966,10 @@ init_error();
|
|
|
3914
3966
|
//#endregion
|
|
3915
3967
|
//#region src/symmetric/authentication-tag.ts
|
|
3916
3968
|
/**
|
|
3969
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3970
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3971
|
+
*
|
|
3972
|
+
*
|
|
3917
3973
|
* Authentication tag for AEAD encryption (16 bytes)
|
|
3918
3974
|
*
|
|
3919
3975
|
* An `AuthenticationTag` is a 16-byte value generated during ChaCha20-Poly1305
|
|
@@ -4041,6 +4097,10 @@ init_error();
|
|
|
4041
4097
|
//#endregion
|
|
4042
4098
|
//#region src/symmetric/encrypted-message.ts
|
|
4043
4099
|
/**
|
|
4100
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4101
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4102
|
+
*
|
|
4103
|
+
*
|
|
4044
4104
|
* Encrypted message with ChaCha20-Poly1305 AEAD
|
|
4045
4105
|
*
|
|
4046
4106
|
* A secure encrypted message using IETF ChaCha20-Poly1305 authenticated
|
|
@@ -4279,6 +4339,10 @@ init_error();
|
|
|
4279
4339
|
//#endregion
|
|
4280
4340
|
//#region src/symmetric/symmetric-key.ts
|
|
4281
4341
|
/**
|
|
4342
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4343
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4344
|
+
*
|
|
4345
|
+
*
|
|
4282
4346
|
* Symmetric key for ChaCha20-Poly1305 AEAD encryption (32 bytes)
|
|
4283
4347
|
*
|
|
4284
4348
|
* A symmetric encryption key used for both encryption and decryption.
|
|
@@ -4518,6 +4582,10 @@ init_error();
|
|
|
4518
4582
|
//#endregion
|
|
4519
4583
|
//#region src/x25519/x25519-private-key.ts
|
|
4520
4584
|
/**
|
|
4585
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4586
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4587
|
+
*
|
|
4588
|
+
*
|
|
4521
4589
|
* X25519 private key for ECDH key exchange (32 bytes seed)
|
|
4522
4590
|
*
|
|
4523
4591
|
* X25519 is an elliptic-curve Diffie-Hellman key exchange protocol based on
|
|
@@ -4792,6 +4860,10 @@ init_error();
|
|
|
4792
4860
|
//#endregion
|
|
4793
4861
|
//#region src/ed25519/ed25519-public-key.ts
|
|
4794
4862
|
/**
|
|
4863
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4864
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4865
|
+
*
|
|
4866
|
+
*
|
|
4795
4867
|
* Ed25519 public key for EdDSA signature verification (32 bytes)
|
|
4796
4868
|
* Ported from bc-components-rust/src/ed25519_public_key.rs
|
|
4797
4869
|
*/
|
|
@@ -4863,6 +4935,10 @@ init_error();
|
|
|
4863
4935
|
//#endregion
|
|
4864
4936
|
//#region src/ed25519/ed25519-private-key.ts
|
|
4865
4937
|
/**
|
|
4938
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4939
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4940
|
+
*
|
|
4941
|
+
*
|
|
4866
4942
|
* Ed25519 private key for EdDSA signatures (32 bytes seed)
|
|
4867
4943
|
* Ported from bc-components-rust/src/ed25519_private_key.rs
|
|
4868
4944
|
*/
|
|
@@ -4957,6 +5033,10 @@ init_error();
|
|
|
4957
5033
|
//#endregion
|
|
4958
5034
|
//#region src/sr25519/sr25519-public-key.ts
|
|
4959
5035
|
/**
|
|
5036
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5037
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
5038
|
+
*
|
|
5039
|
+
*
|
|
4960
5040
|
* Sr25519PublicKey - Public key for Schnorr signatures over Ristretto25519
|
|
4961
5041
|
*
|
|
4962
5042
|
* SR25519 is the signature scheme used by Polkadot/Substrate.
|
|
@@ -5059,6 +5139,10 @@ init_error();
|
|
|
5059
5139
|
//#endregion
|
|
5060
5140
|
//#region src/sr25519/sr25519-private-key.ts
|
|
5061
5141
|
/**
|
|
5142
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5143
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
5144
|
+
*
|
|
5145
|
+
*
|
|
5062
5146
|
* Sr25519PrivateKey - Schnorr signatures over Ristretto25519
|
|
5063
5147
|
*
|
|
5064
5148
|
* SR25519 is the signature scheme used by Polkadot/Substrate.
|
|
@@ -5254,6 +5338,10 @@ init_error();
|
|
|
5254
5338
|
//#endregion
|
|
5255
5339
|
//#region src/ec-key/ec-uncompressed-public-key.ts
|
|
5256
5340
|
/**
|
|
5341
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5342
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
5343
|
+
*
|
|
5344
|
+
*
|
|
5257
5345
|
* EC uncompressed public key for ECDSA (secp256k1, 65 bytes)
|
|
5258
5346
|
*
|
|
5259
5347
|
* An `ECUncompressedPublicKey` is a 65-byte uncompressed representation of a
|
|
@@ -5466,6 +5554,10 @@ init_error();
|
|
|
5466
5554
|
//#endregion
|
|
5467
5555
|
//#region src/ec-key/ec-public-key.ts
|
|
5468
5556
|
/**
|
|
5557
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5558
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
5559
|
+
*
|
|
5560
|
+
*
|
|
5469
5561
|
* EC compressed public key for ECDSA verification (secp256k1, 33 bytes)
|
|
5470
5562
|
*
|
|
5471
5563
|
* An `ECPublicKey` is a 33-byte compressed representation of a public key on
|
|
@@ -5704,6 +5796,10 @@ init_error();
|
|
|
5704
5796
|
//#endregion
|
|
5705
5797
|
//#region src/ec-key/schnorr-public-key.ts
|
|
5706
5798
|
/**
|
|
5799
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5800
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
5801
|
+
*
|
|
5802
|
+
*
|
|
5707
5803
|
* Schnorr (x-only) public key for BIP-340 signatures (secp256k1, 32 bytes)
|
|
5708
5804
|
*
|
|
5709
5805
|
* A `SchnorrPublicKey` is a 32-byte "x-only" public key used with the BIP-340
|
|
@@ -5825,6 +5921,10 @@ init_error();
|
|
|
5825
5921
|
//#endregion
|
|
5826
5922
|
//#region src/ec-key/ec-private-key.ts
|
|
5827
5923
|
/**
|
|
5924
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
5925
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
5926
|
+
*
|
|
5927
|
+
*
|
|
5828
5928
|
* EC private key for ECDSA and Schnorr signatures (secp256k1, 32 bytes)
|
|
5829
5929
|
*
|
|
5830
5930
|
* An `ECPrivateKey` is a 32-byte secret value that can be used to:
|
|
@@ -6138,6 +6238,10 @@ init_error();
|
|
|
6138
6238
|
//#endregion
|
|
6139
6239
|
//#region src/mldsa/mldsa-level.ts
|
|
6140
6240
|
/**
|
|
6241
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
6242
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
6243
|
+
*
|
|
6244
|
+
*
|
|
6141
6245
|
* MLDSA Security Level - ML-DSA (Module-Lattice-Based Digital Signature Algorithm)
|
|
6142
6246
|
*
|
|
6143
6247
|
* ML-DSA is a post-quantum digital signature algorithm standardized by NIST.
|
|
@@ -6307,6 +6411,10 @@ init_error();
|
|
|
6307
6411
|
//#endregion
|
|
6308
6412
|
//#region src/mldsa/mldsa-public-key.ts
|
|
6309
6413
|
/**
|
|
6414
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
6415
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
6416
|
+
*
|
|
6417
|
+
*
|
|
6310
6418
|
* MLDSAPublicKey - ML-DSA Public Key for post-quantum signature verification
|
|
6311
6419
|
*
|
|
6312
6420
|
* MLDSAPublicKey wraps an ML-DSA public key for verifying signatures.
|
|
@@ -6498,6 +6606,10 @@ init_error();
|
|
|
6498
6606
|
//#endregion
|
|
6499
6607
|
//#region src/mldsa/mldsa-signature.ts
|
|
6500
6608
|
/**
|
|
6609
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
6610
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
6611
|
+
*
|
|
6612
|
+
*
|
|
6501
6613
|
* MLDSASignature - ML-DSA Digital Signature
|
|
6502
6614
|
*
|
|
6503
6615
|
* MLDSASignature wraps an ML-DSA signature for serialization and verification.
|
|
@@ -6678,6 +6790,10 @@ init_error();
|
|
|
6678
6790
|
//#endregion
|
|
6679
6791
|
//#region src/mldsa/mldsa-private-key.ts
|
|
6680
6792
|
/**
|
|
6793
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
6794
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
6795
|
+
*
|
|
6796
|
+
*
|
|
6681
6797
|
* MLDSAPrivateKey - ML-DSA Private Key for post-quantum digital signatures
|
|
6682
6798
|
*
|
|
6683
6799
|
* MLDSAPrivateKey wraps an ML-DSA secret key for signing messages.
|
|
@@ -6917,6 +7033,10 @@ init_error();
|
|
|
6917
7033
|
//#endregion
|
|
6918
7034
|
//#region src/signing/signature.ts
|
|
6919
7035
|
/**
|
|
7036
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
7037
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
7038
|
+
*
|
|
7039
|
+
*
|
|
6920
7040
|
* A digital signature created with various signature algorithms.
|
|
6921
7041
|
*
|
|
6922
7042
|
* `Signature` represents different types of digital signatures.
|
|
@@ -7328,6 +7448,10 @@ init_error();
|
|
|
7328
7448
|
//#endregion
|
|
7329
7449
|
//#region src/signing/signing-public-key.ts
|
|
7330
7450
|
/**
|
|
7451
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
7452
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
7453
|
+
*
|
|
7454
|
+
*
|
|
7331
7455
|
* A public key used for verifying digital signatures.
|
|
7332
7456
|
*
|
|
7333
7457
|
* `SigningPublicKey` is a type representing different types of signing public
|
|
@@ -7852,6 +7976,10 @@ init_error();
|
|
|
7852
7976
|
//#endregion
|
|
7853
7977
|
//#region src/signing/signing-private-key.ts
|
|
7854
7978
|
/**
|
|
7979
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
7980
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
7981
|
+
*
|
|
7982
|
+
*
|
|
7855
7983
|
* A private key used for creating digital signatures.
|
|
7856
7984
|
*
|
|
7857
7985
|
* `SigningPrivateKey` is a type representing different types of signing
|
|
@@ -8687,6 +8815,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
8687
8815
|
//#endregion
|
|
8688
8816
|
//#region src/mlkem/mlkem-level.ts
|
|
8689
8817
|
/**
|
|
8818
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
8819
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
8820
|
+
*
|
|
8821
|
+
*
|
|
8690
8822
|
* MLKEM Security Level - ML-KEM (Module-Lattice-Based Key Encapsulation Mechanism)
|
|
8691
8823
|
*
|
|
8692
8824
|
* ML-KEM is a post-quantum key encapsulation mechanism standardized by NIST.
|
|
@@ -8904,6 +9036,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
8904
9036
|
//#endregion
|
|
8905
9037
|
//#region src/mlkem/mlkem-ciphertext.ts
|
|
8906
9038
|
/**
|
|
9039
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
9040
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
9041
|
+
*
|
|
9042
|
+
*
|
|
8907
9043
|
* MLKEMCiphertext - ML-KEM Ciphertext for post-quantum key encapsulation
|
|
8908
9044
|
*
|
|
8909
9045
|
* MLKEMCiphertext wraps an ML-KEM ciphertext for transmission and decapsulation.
|
|
@@ -9084,6 +9220,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
9084
9220
|
//#endregion
|
|
9085
9221
|
//#region src/encapsulation/encapsulation-ciphertext.ts
|
|
9086
9222
|
/**
|
|
9223
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
9224
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
9225
|
+
*
|
|
9226
|
+
*
|
|
9087
9227
|
* Encapsulation ciphertext for key encapsulation mechanisms
|
|
9088
9228
|
*
|
|
9089
9229
|
* This type represents the ciphertext produced during key encapsulation.
|
|
@@ -9327,6 +9467,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
9327
9467
|
//#endregion
|
|
9328
9468
|
//#region src/mlkem/mlkem-public-key.ts
|
|
9329
9469
|
/**
|
|
9470
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
9471
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
9472
|
+
*
|
|
9473
|
+
*
|
|
9330
9474
|
* MLKEMPublicKey - ML-KEM Public Key for post-quantum key encapsulation
|
|
9331
9475
|
*
|
|
9332
9476
|
* MLKEMPublicKey wraps an ML-KEM public key for encapsulating shared secrets.
|
|
@@ -9523,6 +9667,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
9523
9667
|
//#endregion
|
|
9524
9668
|
//#region src/encapsulation/encapsulation-public-key.ts
|
|
9525
9669
|
/**
|
|
9670
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
9671
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
9672
|
+
*
|
|
9673
|
+
*
|
|
9526
9674
|
* Encapsulation public key for key encapsulation mechanisms
|
|
9527
9675
|
*
|
|
9528
9676
|
* This type represents a public key that can be used to encapsulate (encrypt)
|
|
@@ -9856,6 +10004,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
9856
10004
|
//#endregion
|
|
9857
10005
|
//#region src/mlkem/mlkem-private-key.ts
|
|
9858
10006
|
/**
|
|
10007
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10008
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10009
|
+
*
|
|
10010
|
+
*
|
|
9859
10011
|
* MLKEMPrivateKey - ML-KEM Private Key for post-quantum key decapsulation
|
|
9860
10012
|
*
|
|
9861
10013
|
* MLKEMPrivateKey wraps an ML-KEM secret key for decapsulating shared secrets.
|
|
@@ -10098,6 +10250,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
10098
10250
|
//#endregion
|
|
10099
10251
|
//#region src/encapsulation/encapsulation-private-key.ts
|
|
10100
10252
|
/**
|
|
10253
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10254
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10255
|
+
*
|
|
10256
|
+
*
|
|
10101
10257
|
* Encapsulation private key for key encapsulation mechanisms
|
|
10102
10258
|
*
|
|
10103
10259
|
* This type represents a private key that can be used to decapsulate (decrypt)
|
|
@@ -10563,6 +10719,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
10563
10719
|
//#endregion
|
|
10564
10720
|
//#region src/encapsulation/sealed-message.ts
|
|
10565
10721
|
/**
|
|
10722
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10723
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10724
|
+
*
|
|
10725
|
+
*
|
|
10566
10726
|
* Sealed message for anonymous authenticated encryption
|
|
10567
10727
|
*
|
|
10568
10728
|
* A `SealedMessage` combines key encapsulation with symmetric encryption to
|
|
@@ -10791,6 +10951,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
10791
10951
|
//#endregion
|
|
10792
10952
|
//#region src/encrypted-key/hash-type.ts
|
|
10793
10953
|
/**
|
|
10954
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10955
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
10956
|
+
*
|
|
10957
|
+
*
|
|
10794
10958
|
* Hash type enum for key derivation functions
|
|
10795
10959
|
*
|
|
10796
10960
|
* This enum represents the supported hash algorithms for HKDF and PBKDF2.
|
|
@@ -10845,6 +11009,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
10845
11009
|
//#endregion
|
|
10846
11010
|
//#region src/encrypted-key/key-derivation-method.ts
|
|
10847
11011
|
/**
|
|
11012
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11013
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11014
|
+
*
|
|
11015
|
+
*
|
|
10848
11016
|
* Key derivation method enum
|
|
10849
11017
|
*
|
|
10850
11018
|
* This enum represents the supported key derivation methods for encrypting keys.
|
|
@@ -10928,6 +11096,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
10928
11096
|
//#endregion
|
|
10929
11097
|
//#region src/encrypted-key/hkdf-params.ts
|
|
10930
11098
|
/**
|
|
11099
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11100
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11101
|
+
*
|
|
11102
|
+
*
|
|
10931
11103
|
* HKDF (HMAC-based Key Derivation Function) parameters
|
|
10932
11104
|
*
|
|
10933
11105
|
* HKDF is a key derivation function based on HMAC, defined in RFC 5869.
|
|
@@ -11051,6 +11223,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
11051
11223
|
//#endregion
|
|
11052
11224
|
//#region src/encrypted-key/pbkdf2-params.ts
|
|
11053
11225
|
/**
|
|
11226
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11227
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11228
|
+
*
|
|
11229
|
+
*
|
|
11054
11230
|
* PBKDF2 (Password-Based Key Derivation Function 2) parameters
|
|
11055
11231
|
*
|
|
11056
11232
|
* PBKDF2 is a key derivation function defined in RFC 8018 (PKCS #5 v2.1).
|
|
@@ -11177,6 +11353,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
11177
11353
|
//#endregion
|
|
11178
11354
|
//#region src/encrypted-key/scrypt-params.ts
|
|
11179
11355
|
/**
|
|
11356
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11357
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11358
|
+
*
|
|
11359
|
+
*
|
|
11180
11360
|
* Scrypt parameters for password-based key derivation
|
|
11181
11361
|
*
|
|
11182
11362
|
* Scrypt is a memory-hard key derivation function defined in RFC 7914.
|
|
@@ -11316,6 +11496,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
11316
11496
|
//#endregion
|
|
11317
11497
|
//#region src/encrypted-key/argon2id-params.ts
|
|
11318
11498
|
/**
|
|
11499
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11500
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11501
|
+
*
|
|
11502
|
+
*
|
|
11319
11503
|
* Argon2id parameters for password-based key derivation
|
|
11320
11504
|
*
|
|
11321
11505
|
* Argon2id is a memory-hard key derivation function defined in RFC 9106.
|
|
@@ -11428,6 +11612,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
11428
11612
|
//#endregion
|
|
11429
11613
|
//#region src/encrypted-key/ssh-agent-params.ts
|
|
11430
11614
|
/**
|
|
11615
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11616
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11617
|
+
*
|
|
11618
|
+
*
|
|
11431
11619
|
* SSH Agent key derivation parameters
|
|
11432
11620
|
*
|
|
11433
11621
|
* SSH Agent uses an SSH agent daemon for key derivation. The agent signs
|
|
@@ -11560,6 +11748,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
11560
11748
|
//#endregion
|
|
11561
11749
|
//#region src/encrypted-key/key-derivation-params.ts
|
|
11562
11750
|
/**
|
|
11751
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11752
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11753
|
+
*
|
|
11754
|
+
*
|
|
11563
11755
|
* Key derivation parameters union type
|
|
11564
11756
|
*
|
|
11565
11757
|
* This type represents the derivation parameters for all supported methods.
|
|
@@ -11733,6 +11925,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
11733
11925
|
//#endregion
|
|
11734
11926
|
//#region src/encrypted-key/encrypted-key.ts
|
|
11735
11927
|
/**
|
|
11928
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
11929
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11930
|
+
*
|
|
11931
|
+
*
|
|
11736
11932
|
* Encrypted key for secure symmetric key storage
|
|
11737
11933
|
*
|
|
11738
11934
|
* `EncryptedKey` provides symmetric encryption and decryption of content keys
|
|
@@ -11968,6 +12164,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
11968
12164
|
//#endregion
|
|
11969
12165
|
//#region src/public-keys.ts
|
|
11970
12166
|
/**
|
|
12167
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
12168
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
12169
|
+
*
|
|
12170
|
+
*
|
|
11971
12171
|
* PublicKeys - Container for signing and encapsulation public keys
|
|
11972
12172
|
*
|
|
11973
12173
|
* PublicKeys combines a SigningPublicKey (for signature verification) and an
|
|
@@ -12194,6 +12394,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
12194
12394
|
//#endregion
|
|
12195
12395
|
//#region src/private-keys.ts
|
|
12196
12396
|
/**
|
|
12397
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
12398
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
12399
|
+
*
|
|
12400
|
+
*
|
|
12197
12401
|
* PrivateKeys - Container for signing and encapsulation private keys
|
|
12198
12402
|
*
|
|
12199
12403
|
* PrivateKeys combines a SigningPrivateKey (for digital signatures) and an
|
|
@@ -12407,6 +12611,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
12407
12611
|
//#endregion
|
|
12408
12612
|
//#region src/private-key-base.ts
|
|
12409
12613
|
/**
|
|
12614
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
12615
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
12616
|
+
*
|
|
12617
|
+
*
|
|
12410
12618
|
* PrivateKeyBase - Root cryptographic material for deterministic key derivation
|
|
12411
12619
|
*
|
|
12412
12620
|
* PrivateKeyBase is a 32-byte value that serves as the root of cryptographic
|
|
@@ -12678,6 +12886,10 @@ This requires bcrypt_pbkdf implementation for proper encryption.
|
|
|
12678
12886
|
//#endregion
|
|
12679
12887
|
//#region src/sskr.ts
|
|
12680
12888
|
/**
|
|
12889
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
12890
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
12891
|
+
*
|
|
12892
|
+
*
|
|
12681
12893
|
* SSKR Integration - CBOR wrappers for SSKR shares
|
|
12682
12894
|
*
|
|
12683
12895
|
* This module provides CBOR serialization for SSKR (Sharded Secret Key
|