LeoYeAI/agent-master-skills / skills/archon-keymaster
archon-keymaster
FlaggedCore Archon DID toolkit - identity management, verifiable credentials, encrypted messaging (dmail), Nostr integration, file encryption/signing, aliasing, authorization (challenge/response), groups, and cryptographic polls. Use for creating/managing DIDs, issuing/accepting verifiable credentials, sending encrypted messages between DIDs, deriving Nostr keypairs, encrypting/signing files, managing DID aliases, challenge/response authorization, managing DID groups, or running cryptographically verifiable polls. For vaults/backups see archon-vault; for ecash see archon-cashu.
scripts/crypto/verify-file.sh
View on GitHub#!/bin/bash
# Verify a signed file
# Usage: ./verify-file.sh <file>
set -e
if [ $# -lt 1 ]; then
echo "Usage: $0 <file>"
echo ""
echo "Examples:"
echo " $0 manifest.json"
echo " $0 contract.json"
exit 1
fi
FILE="$1"
# Check file exists
if [ ! -f "$FILE" ]; then
echo "ERROR: File not found: $FILE"
exit 1
fi
# Load environment
if [ -f ~/.archon.env ]; then
source ~/.archon.env
else
echo "ERROR: ~/.archon.env not found"
exit 1
fi
echo "Verifying: $FILE"
echo ""
# Verify file
if npx @didcid/keymaster verify-file "$FILE" 2>&1 | tee /tmp/verify-output.txt; then
echo ""
echo "✓ Signature valid"
# Try to extract signer info from file
if command -v jq >/dev/null 2>&1; then
SIGNER=$(jq -r '.proof.verificationMethod // .issuer // "unknown"' "$FILE" 2>/dev/null)
CREATED=$(jq -r '.proof.created // "unknown"' "$FILE" 2>/dev/null)
if [ "$SIGNER" != "unknown" ]; then
echo "Signed by: $SIGNER"
fi
if [ "$CREATED" != "unknown" ]; then
echo "Signed at: $CREATED"
fi
fi
else
echo ""
echo "✗ Signature verification FAILED"
echo ""
echo "This file may have been tampered with, or the signature is invalid."
exit 1
fi
rm -f /tmp/verify-output.txt
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |