mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 16:40:24 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
1.7 KiB
1.7 KiB
API Reference: Ed25519 Digital Signature Agent
Dependencies
| Library | Version | Purpose |
|---|---|---|
| cryptography | >=41.0 | Ed25519 key generation, signing, verification |
CLI Usage
# Generate keypair
python scripts/agent.py --generate-keys --output-dir /keys/
# Sign a file
python scripts/agent.py --sign release.tar.gz --private-key /keys/ed25519_private.pem
# Verify files
python scripts/agent.py --verify release.tar.gz --public-key /keys/ed25519_public.pem
Functions
generate_keypair(output_dir, key_name) -> dict
Ed25519PrivateKey.generate(), serializes with private_bytes(PEM, PKCS8, NoEncryption) and public_bytes(PEM, SubjectPublicKeyInfo).
sign_message(private_key_path, message) -> dict
Loads key via load_pem_private_key(), calls key.sign(message). Returns base64 and hex signature.
sign_file(private_key_path, file_path) -> dict
Signs file contents, writes .ed25519.sig JSON containing signature, hash, timestamp.
verify_message(public_key_path, message, signature_b64) -> dict
Calls key.verify(signature, message). Catches InvalidSignature.
verify_file(public_key_path, file_path, sig_path) -> dict
Verifies file against .ed25519.sig JSON, checks hash match.
cryptography API
| Method | Purpose |
|---|---|
Ed25519PrivateKey.generate() |
Generate 32-byte private key |
private_key.sign(data) |
Create 64-byte signature |
public_key.verify(signature, data) |
Verify signature |
load_pem_private_key(data, password) |
Load PEM key |
Output Schema
{
"verifications": [{"file": "release.tar.gz", "valid": true}],
"valid": 3, "invalid": 0
}