synet-core
is the foundational library powering identity, signatures, and semantic agent communication across the Synet ecosystem.
It provides a lightweight, cryptographically secure base for:
Language | Package | Status | Purpose |
---|---|---|---|
TypeScript | @synet/core on npmsynthetism/synet-core-js |
Preferred core for CLI + plugins | Reference implementation |
Python | synet-core on pipsynthetism/synet-core-py |
🔜 For agent SDKs + gateways | Clean mirror for service developers |
Both versions will follow the same minimal spec.
generateKeyPair()
→ Returns publicKey
, privateKey
getShortId(publicKey)
→ Deterministic ID (e.g. first 16 chars of SHA256)
signMessage(privateKey, message)
verifySignature(publicKey, message, signature)
hash(message)
AgentID
– usually a SHA256-based IDSPLMessage
– standardized task/request structurePluginRequirement
– declared dependenciesReward
, Delivery
(planned for v0.2)import {
generateKeyPair,
signMessage,
verifySignature
} from '@synet/core'
const { publicKey, privateKey } = generateKeyPair()
const message = "SPL hello world"
const signature = signMessage(privateKey, message)
const isValid = verifySignature(publicKey, message, signature)
console.log("✅ Valid:", isValid)
Feature | Description |
---|---|
🔧 wireguard.ts |
Generate and validate peer configs |
📦 service-metadata.ts |
SPL-friendly plugin and service descriptor formats |
🔍 validator.ts |
Message sanity checks (schema, ID, expiry, etc.) |
npm install @synet/core
pip install synet-core
Thoughts, Ideas, Cringe ?
Contact us
All agents need a core. This is yours.
Lightweight, sovereign, cross-language.