Command Palette

Search for a command to run...

Назад к скиллам
скилл № 81880

blockchain-cryptography

Use this skill when asked about cryptographic primitives in blockchain, elliptic curve cryptography, hash functions, Merkle trees, digital signatures…

БесплатноБез исполняемых скриптов
j4flmaoот 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

  1. Cryptographic primitive: curve/hash/scheme + security level + performance characteristics
  2. Blockchain usage: where and how this primitive is used in real blockchain networks
  3. Implementation details: algorithm specifics, edge cases, optimization techniques
  4. 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

  1. Identify required cryptographic operations (signing, hashing, commitment, proof generation)
  2. Select elliptic curve based on blockchain platform and security requirements
  3. Choose signature scheme (ECDSA for EVM, EdDSA for Solana/Near, BLS for aggregation)
  4. Select hash functions (Keccak-256 for EVM, SHA-256 for Bitcoin, BLAKE2 for Zcash)
  5. Determine if pairing-based crypto is needed (BLS aggregation, zk-SNARK verification)

Phase 2: Security Parameter Validation

  1. Verify security level meets minimum requirements (128-bit for standard, 192-bit for high security)
  2. Validate subgroup membership for all curve operations
  3. Confirm constant-time implementation for secret-dependent operations
  4. Review against known attacks (invalid curve, small subgroup, timing, fault injection)
  5. Check compliance with applicable standards (FIPS 186-5, BIP, NIST PQC)

Phase 3: Implementation

  1. Select library: libsecp256k1 (ECDSA), blst (BLS), ed25519-dalek (EdDSA), circom (ZK)
  2. Implement key generation with proper entropy source and domain separation
  3. Implement signing with deterministic nonce generation (RFC 6979 for ECDSA)
  4. Implement verification with all validation checks (curve, subgroup, signature bounds)
  5. Implement key management with BIP-32/39/44 derivation path standard

Phase 4: Integration and Testing

  1. Integrate with the target blockchain protocol or smart contract
  2. Test with known-answer tests (KATs) from standards documents
  3. Implement fuzz testing for edge cases (zero scalars, identity, large nonces)
  4. Cross-verify with independent implementations
  5. 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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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), без исполняемых скриптов.

Похожие скиллы

Сравнить blockchain-cryptography с