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/sign-file.sh
View on GitHub#!/bin/bash
# Sign a JSON file with your DID (modifies file in place)
# Usage: ./sign-file.sh <file>
set -e
if [ $# -lt 1 ]; then
echo "Usage: $0 <file>"
echo ""
echo "Examples:"
echo " $0 manifest.json"
echo " $0 contract.json"
echo ""
echo "Note: File must be valid JSON. Signature is added in place."
exit 1
fi
FILE="$1"
# Check file exists
if [ ! -f "$FILE" ]; then
echo "ERROR: File not found: $FILE"
exit 1
fi
# Check it's JSON
if ! jq empty "$FILE" 2>/dev/null; then
echo "ERROR: File is not valid JSON"
exit 1
fi
# Load environment
if [ -f ~/.archon.env ]; then
source ~/.archon.env
else
echo "ERROR: ~/.archon.env not found"
exit 1
fi
echo "Signing: $FILE"
echo ""
# Create temp file for safety
TEMP_FILE="${FILE}.signing.tmp"
# Sign file (outputs to stdout)
if npx @didcid/keymaster sign-file "$FILE" > "$TEMP_FILE" 2>&1; then
# Replace original with signed version
mv "$TEMP_FILE" "$FILE"
echo "✓ File signed (signature added in place)"
echo ""
echo "Others can verify with:"
echo " ./verify-file.sh $FILE"
else
echo "✗ Signing failed"
rm -f "$TEMP_FILE"
exit 1
fi
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 |