claude-handoff
MAmattpocock/skills337k4,978 new stars in the last 7 days
Manage decentralized identities (DIDs) on the Billions Network — create, list, link to a human owner, and verify ownership.
Command: node scripts/createNewEthereumIdentity.js [--key <privateKeyHex>]
Creates a new identity on the Billions Network. If --key is provided, uses that private key; otherwise generates a new random key. The created identity is automatically set as default.
# Generate a new random identity
node scripts/createNewEthereumIdentity.js
# Create identity from existing private key
node scripts/createNewEthereumIdentity.js --key 0x1234567890abcdef...
Output: DID string (e.g., did:iden3:billions:main:2VmAk7fGHQP5FN2jZ8X9Y3K4W6L1M...)
Command: node scripts/getIdentities.js
Lists all DID identities stored locally. Always run this before any signing or linking operation.
node scripts/getIdentities.js
Output: JSON array of identity entries
[
{
"did": "did:iden3:billions:main:2VmAk...",
"publicKeyHex": "0x04abc123...",
"isDefault": true
}
]
Command: node scripts/linkHumanToAgent.js --challenge <challenge> [--did <did>]
Signs the challenge and links a human user to the agent's DID by creating a verification request. Uses the Billions ERC-8004 Registry (agent registration) and the Billions Attestation Registry (ownership attestation after verifying human uniqueness).
--challenge — (required) Challenge to sign. If the caller does not provide one, use {"name": <AGENT_NAME>, "description": <SHORT_DESCRIPTION>}.--did — (optional) Uses the default DID if omitted.node scripts/linkHumanToAgent.js --challenge '{"name": "MyAgent", "description": "AI persona"}'
Output: {"success":true}
Command: node scripts/generateChallenge.js --did <did>
Generates a random challenge for identity verification. Stores the challenge in $HOME/.openclaw/billions/challenges.json.
node scripts/generateChallenge.js --did did:iden3:billions:main:2VmAk...
Output: Challenge string (e.g., 8472951360)
Command: node scripts/signChallenge.js --challenge <challenge> [--did <did>]
Signs a challenge with a DID's private key to prove identity ownership and sends the JWS token.
--challenge — (required) Challenge to sign.--did — (optional) Uses the default DID if omitted.node scripts/signChallenge.js --challenge 8472951360
Output: {"success":true}
Command: node scripts/verifySignature.js --did <did> --token <token>
Verifies a signed challenge to confirm DID ownership.
node scripts/verifySignature.js --did did:iden3:billions:main:2VmAk... --token eyJhbGciOiJFUzI1NkstUi...
Output: Signature verified successfully (on success) or error message (on failure)
node scripts/getIdentities.js
node scripts/createNewEthereumIdentity.jsnode scripts/linkHumanToAgent.js --challenge <challenge_value>
{"name": <AGENT_NAME>, "description": <SHORT_DESCRIPTION>}.Example Conversation:
User: "Link your agent identity to me"
Agent: [runs getIdentities.js, confirms identity exists]
Agent: [runs linkHumanToAgent.js --challenge '{"name": "MyAgent", "description": "Coding assistant"}']
Agent: "Done — here's the verification link: ..."
node scripts/generateChallenge.js --did <user_did><challenge_value>"node scripts/verifySignature.js --did <user_did> --token <user_token>Example Conversation:
Agent: "Please provide your DID to start verification."
User: "My DID is did:iden3:billions:main:2VmAk..."
Agent: [runs generateChallenge.js] → "Please sign this challenge: 789012"
User: [provides token]
Agent: [runs verifySignature.js] → "Identity verified. You are confirmed as owner of that DID."
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
DIDietrichGebert/ponytail203k4,904 new stars in the last 7 days