nexusgenesis-chain-adapters
v0.2.2
Published
NexusGenesis cross-chain adapters — one PQC root identity derives addresses on Nexus (ng1), Ethereum (secp256k1), and Solana (ed25519). Private keys never leave the agent/browser.
Maintainers
Readme
nexusgenesis-chain-adapters
NexusGenesis cross-chain adapters — one PQC root identity derives addresses on every supported chain. Private keys never leave the agent/browser.
| Chain | Crate | Key type | Address |
|-------|-------|----------|---------|
| NexusGenesis | nexusgenesis-agent-keys | Dilithium2 (PQC) | ng1... |
| Ethereum | nexusgenesis-chain-eth | secp256k1 | 0x... (EIP-55) |
| Solana | nexusgenesis-chain-sol | ed25519 | base58 |
Install
npm install nexusgenesis-chain-adaptersUsage
import { deriveChainAddresses, deriveAgentFingerprint } from 'nexusgenesis-chain-adapters';
// One PQC root identity → addresses on all chains:
const addrs = deriveChainAddresses(pqcPublicKey, pqcPrivateKey);
// { nexus: 'ng1...', eth: '0x...', sol: '6PT...' }
const fingerprint = deriveAgentFingerprint(pqcPublicKey); // stable sha256API
deriveChainAddresses(pqcPublicKey, pqcPrivateKey)→{ nexus, eth, sol }deriveChainAddress(chain, pqcPublicKey, pqcPrivateKey)→ single-chain addressderiveAgentFingerprint(pqcPublicKey)→ stable sha256 agent fingerprint
Re-exports the full ETH / SOL adapters (deriveEthWallet, signEth,
verifyEth, deriveSolWallet, signSol, verifySol, …).
Demo
See examples/demo-cross-chain.mjs for a
runnable end-to-end demo (PQC root → three-chain addresses → coordination
signature → ETH message signature → human takeover).
License
MIT
