Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Copyright © 2023-2026 Blockchain Commons, LLC
Copyright © 2025-2026 Leonardo Amoroso Custodio
Copyright © 2026 Parity Technologies

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Expand Down
1 change: 1 addition & 0 deletions packages/components/LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Copyright © 2023-2026 Blockchain Commons, LLC
Copyright © 2025-2026 Leonardo Amoroso Custodio
Copyright © 2026 Parity Technologies

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/compressed.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* A compressed binary object with integrity verification.
*
* Ported from bc-components-rust/src/compressed.rs
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/digest-provider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* DigestProvider interface for types that can provide a cryptographic digest.
*
* Ported from bc-components-rust/src/digest_provider.rs
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/digest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* SHA-256 cryptographic digest (32 bytes)
*
* Ported from bc-components-rust/src/digest.rs
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/ec-key/ec-key-base.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Base traits for elliptic curve keys
*
* This module defines the base interfaces for all elliptic curve keys,
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/ec-key/ec-private-key.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* EC private key for ECDSA and Schnorr signatures (secp256k1, 32 bytes)
*
* An `ECPrivateKey` is a 32-byte secret value that can be used to:
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/ec-key/ec-public-key.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* EC compressed public key for ECDSA verification (secp256k1, 33 bytes)
*
* An `ECPublicKey` is a 33-byte compressed representation of a public key on
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* EC uncompressed public key for ECDSA (secp256k1, 65 bytes)
*
* An `ECUncompressedPublicKey` is a 65-byte uncompressed representation of a
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/ec-key/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* EC key module - secp256k1 elliptic curve cryptography
*
* This module provides types and operations for elliptic curve cryptography
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/ec-key/schnorr-public-key.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Schnorr (x-only) public key for BIP-340 signatures (secp256k1, 32 bytes)
*
* A `SchnorrPublicKey` is a 32-byte "x-only" public key used with the BIP-340
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/ed25519/ed25519-private-key.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Ed25519 private key for EdDSA signatures (32 bytes seed)
* Ported from bc-components-rust/src/ed25519_private_key.rs
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/ed25519/ed25519-public-key.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Ed25519 public key for EdDSA signature verification (32 bytes)
* Ported from bc-components-rust/src/ed25519_public_key.rs
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/ed25519/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Ed25519 digital signature keys module
* Ported from bc-components-rust/src/ed25519/mod.rs
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Encapsulation ciphertext for key encapsulation mechanisms
*
* This type represents the ciphertext produced during key encapsulation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Encapsulation private key for key encapsulation mechanisms
*
* This type represents a private key that can be used to decapsulate (decrypt)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Encapsulation public key for key encapsulation mechanisms
*
* This type represents a public key that can be used to encapsulate (encrypt)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Encapsulation scheme enum for key encapsulation mechanisms
*
* This enum represents the available key encapsulation mechanisms (KEMs)
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encapsulation/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Encapsulation module - Key Encapsulation Mechanisms (KEM)
*
* This module provides types and operations for key encapsulation,
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encapsulation/sealed-message.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Sealed message for anonymous authenticated encryption
*
* A `SealedMessage` combines key encapsulation with symmetric encryption to
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encrypted-key/argon2id-params.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Argon2id parameters for password-based key derivation
*
* Argon2id is a memory-hard key derivation function defined in RFC 9106.
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encrypted-key/encrypted-key.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Encrypted key for secure symmetric key storage
*
* `EncryptedKey` provides symmetric encryption and decryption of content keys
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encrypted-key/hash-type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Hash type enum for key derivation functions
*
* This enum represents the supported hash algorithms for HKDF and PBKDF2.
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encrypted-key/hkdf-params.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* HKDF (HMAC-based Key Derivation Function) parameters
*
* HKDF is a key derivation function based on HMAC, defined in RFC 5869.
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encrypted-key/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Encrypted key module - Password-based and key-based key derivation
*
* This module provides types and operations for encrypting symmetric keys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Key derivation method enum
*
* This enum represents the supported key derivation methods for encrypting keys.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Key derivation parameters union type
*
* This type represents the derivation parameters for all supported methods.
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encrypted-key/key-derivation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Key derivation interface
*
* Defines the common interface for all key derivation implementations.
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encrypted-key/pbkdf2-params.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* PBKDF2 (Password-Based Key Derivation Function 2) parameters
*
* PBKDF2 is a key derivation function defined in RFC 8018 (PKCS #5 v2.1).
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encrypted-key/scrypt-params.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Scrypt parameters for password-based key derivation
*
* Scrypt is a memory-hard key derivation function defined in RFC 7914.
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encrypted-key/ssh-agent-params.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* SSH Agent key derivation parameters
*
* SSH Agent uses an SSH agent daemon for key derivation. The agent signs
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/encrypter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Encrypter and Decrypter interfaces for public key encryption/decryption.
*
* Ported from bc-components-rust/src/encrypter.rs
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Error types for cryptographic and component operations
*
* Ported from bc-components-rust/src/error.rs
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/hkdf-rng.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* A deterministic random number generator based on HKDF-HMAC-SHA256.
*
* Ported from bc-components-rust/src/hkdf_rng.rs
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/id/arid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* An "Apparently Random Identifier" (ARID)
*
* Ported from bc-components-rust/src/id/arid.rs
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/id/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Identifier types module
* Ported from bc-components-rust/src/id/mod.rs
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/id/uri.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Uniform Resource Identifier (URI) - String-based identifier
*
* A URI is a string of characters that unambiguously identifies a particular
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/id/uuid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* Universally Unique Identifier (UUID) - 16-byte identifier
*
* UUIDs are 128-bit (16-byte) identifiers that are designed to be unique
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/id/xid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* eXtensible Identifier (XID) - 32-byte identifier bound to a public key
*
* A XID is a unique 32-byte identifier for a subject entity (person,
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* @bcts/components - Cryptographic components library
* TypeScript implementation of Blockchain Commons' cryptographic components specification
* Ported from bc-components-rust
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/json.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* A CBOR-tagged container for UTF-8 JSON text.
*
* Ported from bc-components-rust/src/json.rs
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/mldsa/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* ML-DSA Module - Post-Quantum Digital Signatures
*
* This module provides ML-DSA (Module-Lattice-Based Digital Signature Algorithm)
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/mldsa/mldsa-level.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* MLDSA Security Level - ML-DSA (Module-Lattice-Based Digital Signature Algorithm)
*
* ML-DSA is a post-quantum digital signature algorithm standardized by NIST.
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/mldsa/mldsa-private-key.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/**
* Copyright © 2023-2026 Blockchain Commons, LLC
* Copyright © 2025-2026 Leonardo Amoroso Custodio
* Copyright © 2026 Parity Technologies
*
* MLDSAPrivateKey - ML-DSA Private Key for post-quantum digital signatures
*
* MLDSAPrivateKey wraps an ML-DSA secret key for signing messages.
Expand Down
Loading
Loading