@bcts/components
v1.0.0-alpha.16
Published
A TypeScript implementation of Blockchain Commons cryptographic components. Supports key generation, signing, verification, encryption, and post-quantum cryptography.
Downloads
1,097
Maintainers
Readme
Blockchain Commons Secure Components for TypeScript
Disclaimer: This package is under active development and APIs may change.
Introduction
A collection of useful primitives for cryptography, semantic graphs, and cryptocurrency, primarily for use in higher-level Blockchain Commons projects. All the types are CBOR serializable, and a number of them can also be serialized to and from URs.
Also includes a library of CBOR tags and UR types for use with these types.
Rust Reference Implementation
This TypeScript implementation is based on bc-components-rust v0.30.0 (commit).
Limitations: SSH Agent Integration
The following features require platform-specific implementations and are not yet functional:
- SSH agent lock/unlock operations
- SSH signature schemes
These features will throw a CryptoError with kind SshAgent or Ssh when attempted. Use alternative methods:
- For key derivation: Use
HKDF,PBKDF2,Scrypt, orArgon2idinstead ofSSHAgent - For signing: Use
Ed25519,Schnorr,Ecdsa, orSr25519schemes instead of SSH schemes
