SDK Module
HiveEvidence
HiveEvidence provides the cryptographic layer for the Hive. It ensures all AI decisions are immutable, verifiable, and linked via a BLAKE3-backed evidence chain.
Method: log()
Records a data entry into the evidence ledger and returns its unique cryptographic hash.
typescript
1import { HiveEvidence } from '@murkworks/hive-sdk';23const evidence = new HiveEvidence({ apiKey: 'YOUR_KEY' });45const logEntry = await evidence.log({6 type: 'autonomous_action',7 agentId: 'alpha-agent-7',8 action: 'deployment',9 metadata: {10 target: 'production-v3',11 commit: 'a1b2c3d4'12 }13});1415console.log('Log Entry Hash:', logEntry.hash);Method: verify()
Validates the integrity of a specific hash against the blockchain-backed evidence chain.
typescript
1const isValid = await evidence.verify('blake3:c0f4f72...');23if (isValid) {4 console.log("Data integrity confirmed.");5} else {6 console.error("Evidence tampering detected!");7}Compliance Export
Export the entire evidence chain for a specific period in audit-ready formats.
typescript
1const auditBundle = await evidence.export({2 dateFrom: '2026-03-01',3 dateTo: '2026-03-17',4 format: 'jsonl' // Available: jsonl, csv, pdf5});