@biocrypt/core
v0.3.0
Published
BioCrypt v1.1 core primitives — DNA256 hashing, ribosome protein synthesis, Ed25519 coin signing, batch-mint (50 coins / PoW), mRNA transfer envelopes.
Downloads
585
Maintainers
Readme
@biocrypt/core
Core primitives for the BioCrypt v1 decentralized cryptocurrency protocol.
What's in the box
- DNA256 hashing — 256-base biologically-flavored proof-of-work hash
- Ribosome — translates coin genes to amino acid proteins
- Ed25519 coin signing —
signCoinWithMiner/verifyCoinV1 - mRNA transfers — offline-capable encrypted envelope transfers (X25519 + XSalsa20-Poly1305)
- Genesis constants — hardcoded v1 protocol fingerprint (
GENESIS_GENOME_FINGERPRINT,GENESIS_LEADING_TS,GENESIS_NETWORK_ID)
Install
npm install @biocrypt/coreUsage
import {
generateNetworkKeyPair,
signCoinWithMiner,
verifyCoinV1,
ribosome,
GENESIS_GENOME_FINGERPRINT,
} from "@biocrypt/core";
const wallet = generateNetworkKeyPair();
// ...pair with @biocrypt/tracker to mint and broadcast coinsDocs
See PROTOCOL.md for the v1 wire format.
License
MIT
