blockchain-cryptography
Use this skill when asked about cryptographic primitives in blockchain, elliptic curve cryptography, hash functions, Merkle trees, digital signatures…
от j4flmao★ 47 звёзд на GitHub
Установить blockchain-cryptography в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Blockchain Cryptography
Purpose
Guide the selection, implementation, and optimization of cryptographic primitives specific to blockchain systems. This skill enforces correct curve selection, signature scheme choice, and key management practices across all major blockchain protocols.
Agent Protocol
Trigger
"blockchain cryptography", "elliptic curve", "secp256k1", "BN254", "BLS", "Ed25519", "hash function blockchain", "Keccak-256", "SHA-256 blockchain", "Poseidon hash", "Merkle tree", "Merkle Patricia Trie", "Sparse Merkle Tree", "Verkle Trie", "ECDSA", "Schnorr signature", "BLS signature", "threshold signature", "FROST", "multi-sig", "aggregate signature", "zero-knowledge", "zk-SNARK", "zk-STARK", "Bulletproof", "circom", "Halo2", "BIP-32", "BIP-39", "BIP-44", "BIP-340", "PSBT", "BIP-174", "HD wallet", "key derivation", "cryptographic primitive", "signature scheme", "pairing-based cryptography", "post-quantum", "ecrecover", "EIP-712", "EIP-191", "RFC 6979", "KAT", "known-answer test", "nonce reuse", "signature malleability", "MuSig2", "threshold signing", "DKLs", "CGGMP", "aggregate signature", "hash-to-curve", "ICP", "Internet Computer"
Input Context
- Cryptographic operation (signing, verification, hashing, proof generation)
- Blockchain platform (Ethereum/Bitcoin/Solana/Cosmos)
- Security level requirement (128-bit / 192-bit / 256-bit)
- Performance constraints (verification throughput, gas budget)
- Key management model (single key, HD wallet, multi-sig, threshold)
- Threat model (passive/active, quantum-resistant needed?)
Output Artifact
Cryptographic architecture specification including:
- Selected primitives with curve/parameter justifications
- Implementation approach with library recommendations
- Security analysis with known attack vectors and mitigations
- Performance benchmarks and optimization strategies
Response Format
- Cryptographic primitive: curve/hash/scheme + security level + performance characteristics
- Blockchain usage: where and how this primitive is used in real blockchain networks
- Implementation details: algorithm specifics, edge cases, optimization techniques
- Security considerations: known attacks, parameter choices, implementation pitfalls
Completion Criteria
- Cryptographic primitive selection includes security level justification with NIST/BSI references
- Implementation plan specifies library, language, and optimization targets for on-chain or off-chain use
- Security analysis identifies known attack vectors (rogue key, small subgroup, timing side-channel)
- Performance benchmarks include verification latency and signature size comparison
- Key management design covers derivation path, backup, and recovery for the specific scheme
Max Response Length
4000 tokens
Workflow
Phase 1: Primitive Selection
- Identify required cryptographic operations (signing, hashing, commitment, proof generation)
- Select elliptic curve based on blockchain platform and security requirements
- Choose signature scheme (ECDSA for EVM, EdDSA for Solana/Near, BLS for aggregation)
- Select hash functions (Keccak-256 for EVM, SHA-256 for Bitcoin, BLAKE2 for Zcash)
- Determine if pairing-based crypto is needed (BLS aggregation, zk-SNARK verification)
Phase 2: Security Parameter Validation
- Verify security level meets minimum requirements (128-bit for standard, 192-bit for high security)
- Validate subgroup membership for all curve operations
- Confirm constant-time implementation for secret-dependent operations
- Review against known attacks (invalid curve, small subgroup, timing, fault injection)
- Check compliance with applicable standards (FIPS 186-5, BIP, NIST PQC)
Phase 3: Implementation
- Select library: libsecp256k1 (ECDSA), blst (BLS), ed25519-dalek (EdDSA), circom (ZK)
- Implement key generation with proper entropy source and domain separation
- Implement signing with deterministic nonce generation (RFC 6979 for ECDSA)
- Implement verification with all validation checks (curve, subgroup, signature bounds)
- Implement key management with BIP-32/39/44 derivation path standard
Phase 4: Integration and Testing
- Integrate with the target blockchain protocol or smart contract
- Test with known-answer tests (KATs) from standards documents
- Implement fuzz testing for edge cases (zero scalars, identity, large nonces)
- Cross-verify with independent implementations
- Benchmark verification throughput and gas costs
Architecture / Decision Trees
Curve Selection
| Curve | Field Size | Security Level | Blockchain Usage | Key Type |
|---|---|---|---|---|
| secp256k1 | 256-bit | ~128-bit | Bitcoin, Ethereum (EOA), EVM chains | ECDSA |
| Ed25519 | 255-bit | ~128-bit | Solana, Near, Cardano | EdDSA |
| BLS12-381 | 381-bit | ~128-bit | Ethereum 2.0, Chia, Filecoin | BLS |
| BN254 | 254-bit | ~100-bit | EVM zk precompile, Zcash sprout | Pairing |
| P-256 (secp256r1) | 256-bit | ~128-bit |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/blockchain-cryptography-advanced.md
- references/blockchain-cryptography-fundamentals.md
- references/elliptic-curve-crypto.md
- references/hash-functions.md
- references/key-derivation-management.md
- references/merkle-trees.md
- references/pairing-based-cryptography.md
- references/post-quantum-blockchain-crypto.md
- references/reference_guide_1.md
- references/reference_guide_2.md
- references/reference_guide_3.md
- references/reference_guide_4.md
- references/reference_guide_5.md
- references/reference_guide_6.md
- references/reference_guide_7.md
- references/reference_guide_8.md
- references/signature-schemes.md
- references/zero-knowledge-deep.md
FAQ
Что делает скилл blockchain-cryptography?
Use this skill when asked about cryptographic primitives in blockchain, elliptic curve cryptography, hash functions, Merkle trees, digital signatures, zero-knowledge proofs, key derivation, BIP standards, and blockchain-specific crypto implementations. Languages: C++, Rust, Go, Python. Covers secp256k1, BN254, BLS12-381, Ed25519, SHA-256, Keccak-256, BLAKE2, Poseidon, Merkle trees (binary, Patricia, sparse, Verkle), ECDSA, Schnorr, BLS, threshold signatures (FROST, GG20), zk-SNARKs/STARKs/Bulletproofs, HD wallets (BIP-32/39/44), PSBT (BIP-174), and signature aggregation. Do NOT use for: general blockchain protocols (use blockchain-core), smart contract development (use blockchain-application), or standard web security cryptography outside blockchain.
Как установить скилл blockchain-cryptography?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл blockchain-cryptography запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…