基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill bitcoin-libraries-rust-bitcoin命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
| name | bitcoin-libraries-rust-bitcoin |
| description | | Use when this capability is needed. |
The foundation Rust crate for Bitcoin. Used by BDK, LDK, miniscript-rs, electrs, etc. Stable, comprehensive.
Repo: github.com/rust-bitcoin/rust-bitcoin.
[dependencies]
bitcoin = "0.32" # check current; API stabilizing
Transaction, TxIn, TxOut, OutPoint.Script, ScriptBuf, Address, Network.Block, BlockHash, BlockHeader.secp256k1::SecretKey, secp256k1::PublicKey.bip32::ExtendedPrivKey, ExtendedPubKey, DerivationPath.psbt::Psbt (BIP174).use bitcoin::{Address, Network};
use bitcoin::secp256k1::{Secp256k1, SecretKey, PublicKey};
use bitcoin::PrivateKey;
let secp = Secp256k1::new();
let sk = SecretKey::from_slice(&[1u8; 32]).unwrap();
let pk = PublicKey::from_secret_key(&secp, &sk);
let addr = Address::p2wpkh(&PublicKey::new(pk), Network::Bitcoin).unwrap();
println!("{}", addr); // bc1q...
use bitcoin::{Transaction, consensus::encode};
let raw = hex::decode("01000000...").unwrap();
let tx: Transaction = encode::deserialize(&raw).unwrap();
println!("txid: {}", tx.compute_txid());
let bytes = encode::serialize(&tx);
let secp = Secp256k1::new();
let msg = bitcoin::secp256k1::Message::from_digest_slice(&hash).unwrap();
let sig = secp.sign_ecdsa(&msg, &sk);
consensus — wire format encode/decode.blockdata — block / tx / script.network — message types, magic bytes.psbt — partially-signed tx.bip32 — HD derivation.taproot — Taproot (TaprootBuilder, ControlBlock).address — addr parsing + generation.Script (zero-cost wrapper) vs ScriptBuf (owned) — most APIs
take &Script.Source: claude-dev-suite/claude-dev-suite — distributed by TomeVault.