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/nostr/derive-nostr.sh
View on GitHub#!/bin/bash
# Derive Nostr keys from Archon DID mnemonic
# Requires: node, npx @didcid/keymaster
set -e
DEPS_DIR="/tmp/archon-nostr-deps"
# Get mnemonic from keymaster
MNEMONIC=$(npx @didcid/keymaster show-mnemonic 2>/dev/null)
if [ -z "$MNEMONIC" ]; then
echo "Error: Could not get mnemonic. Is ARCHON_PASSPHRASE set?" >&2
exit 1
fi
# Install dependencies if needed
if [ ! -f "$DEPS_DIR/node_modules/bip39/package.json" ]; then
echo "Installing dependencies..." >&2
mkdir -p "$DEPS_DIR"
cd "$DEPS_DIR"
npm install --silent bip39 @scure/bip32 secp256k1 bech32 >/dev/null 2>&1
cd - >/dev/null
fi
# Run derivation
cd "$DEPS_DIR"
node --input-type=commonjs <<EOF
const bip39 = require('bip39');
const { HDKey } = require('@scure/bip32');
const secp256k1 = require('secp256k1');
const { bech32 } = require('bech32');
const mnemonic = '${MNEMONIC}';
const seed = bip39.mnemonicToSeedSync(mnemonic);
const hdkey = HDKey.fromMasterSeed(seed);
// Archon uses Bitcoin BIP44 path
const derived = hdkey.derive("m/44'/0'/0'/0/0");
const privKey = derived.privateKey;
const pubKey = secp256k1.publicKeyCreate(privKey, false);
const pubKeyX = Buffer.from(pubKey.slice(1, 33)).toString('hex');
function toBech32(prefix, hex) {
const bytes = Buffer.from(hex, 'hex');
const words = bech32.toWords(bytes);
return bech32.encode(prefix, words, 1000);
}
const nsec = toBech32('nsec', Buffer.from(privKey).toString('hex'));
const npub = toBech32('npub', pubKeyX);
console.log('nsec:', nsec);
console.log('npub:', npub);
console.log('pubkey:', pubKeyX);
EOF
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 |