[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AAWE19RFCQ9SA9XQKBT4ZD":3,"skill-same:01M7AAWE19RFCQ9SA9XQKBT4ZD":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M7AAWE19RFCQ9SA9XQKBT4ZD","solana-dev-concepts",null,"How Solana's runtime actually works — rent as a deposit, Ed25519 keys and off-curve PDAs, entrypoint dispatch, on-chain cryptography, and the transaction wire format.","themusebook\u002Fskills","themusebook","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F349927247?v=4","01M7A5C1RV5S3V5FF6ZACVDNRN","musebook","01M7A5C1SFC3KRZAXNN60XJ7KM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsolana-foundation\u002Fconcepts\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: solana-dev-concepts\ndescription: How Solana's runtime actually works — rent as a deposit, Ed25519 keys and off-curve PDAs, entrypoint dispatch, on-chain cryptography, and the transaction wire format.\nlicense: MIT\nmetadata:\n  author: Solana Foundation\n  version: \"2.7.0\"\n  source: https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill\n  category: Skill\n---\n\n# Solana Runtime Concepts\n\n> **Solana Foundation skill — mirrored in the Musebook skills hub.**\n> This entry reproduces, verbatim, the `concepts.md` reference of the\n> foundation-maintained **solana-dev** skill (v2.7.0, MIT) from\n> https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill. It is one of the 16 topic\n> references the solana-dev router discloses progressively; for the full\n> skill (router + all references + nested guides), install the upstream\n> original: `npx skills add https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill` — also mirrored in this hub as the\n> `solana-dev` entry. Maintained by the Solana Foundation; Musebook does\n> not author or maintain this content. Relative links in the body point\n> at the upstream skill's file layout and resolve in the full install.\n\n# Solana Runtime Concepts\n\nLoad-bearing mechanics to reach for when explaining *why* Solana behaves the way it does. For applying these in program architecture, see [programs\u002Fdesign-patterns.md](programs\u002Fdesign-patterns.md).\n\n## Rent\n\nRent is a **fully-redeemable deposit**, not a recurring charge. The \"rent\" on an account is the rent-exempt minimum (≈2 years of storage at the historical rate); since the *Disable rent fees collection* feature, no ongoing rent is charged and any transaction creating a non-exempt account fails outright. The full deposit comes back when the account is closed.\n\n```bash\nsolana rent 165   # lamports needed to make a 165-byte account rent-exempt\n```\n\n## Keys and off-curve PDAs\n\nSolana uses Ed25519. A private key is a secret scalar `k`; the public key is `k·P`, a point on the curve — cheap to compute forward, infeasible to invert.\n\n**PDAs are addresses deliberately placed *off* the curve.** No scalar maps to them, so they have no private key and can never be signed for by a keypair. Only the owning program can authorize them, by supplying the seeds. That is the whole basis of program-controlled accounts.\n\n`find_program_address` hashes the seeds plus a bump byte and retries decreasing bumps until the result lands off-curve — which is why its compute cost varies. Store the canonical bump and use `create_program_address` on the hot path.\n\nVisual primer on the underlying math: https:\u002F\u002Fcurves.xargs.org\n\n## Entrypoint dispatch\n\nThe runtime does **not** use the ELF entrypoint. It calls the function registered under key `0x71E3CF81` — the murmur3 hash of `\"entrypoint\"`. Pull dependency programs in with the `no-entrypoint` feature so your binary doesn't define two:\n\n```toml\n[dependencies]\nsome-program = { version = \"1.0\", features = [\"no-entrypoint\"] }\n```\n\n## On-chain cryptography\n\nAvailable and reasonably cheap, which is what makes bridges, hardware-key auth, and on-chain proof verification practical:\n\n| Surface | What it covers |\n|---------|----------------|\n| `Ed25519SigVerify…` native program | Ed25519 signature verification |\n| `KeccakSecp256k…` native program | ECDSA over secp256k1 — Ethereum\u002FBitcoin interop |\n| `Secp256r1SigVerify…` native program | secp256r1 (P-256) — passkeys and hardware keys |\n| Syscalls | sha256, keccak256, blake3, poseidon, `secp256k1_recover`, alt_bn128 ops (ZK), big-mod-exp |\n\n## Transaction wire format\n\nA transaction is a short-vec of 64-byte signatures followed by a message. A legacy message packs:\n\n1. A 3-byte header whose offsets quarter the account list into writable\u002Fread-only × signer\u002Fnon-signer\n2. The account-address short-vec\n3. A recent blockhash\n4. An instruction short-vec — each instruction stores a program-id **index**, account **indexes**, and its data\n\nTwo consequences that drive design:\n\n- **Writability and signer status are properties of an account across the entire transaction**, not per instruction. An account writable for one instruction is write-locked for the whole transaction.\n- **Reusing an account already present in the message costs ~1 byte** in a later instruction, since only its index is stored. Packing more instructions over the same account set is nearly free on size.\n\n### v1 reorders the envelope\n\n`v1` ([SIMD-0385](https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-improvement-documents\u002Fblob\u002Fmain\u002Fproposals\u002F0385-transaction-v1.md)) moves the signature vector to the **tail** so the version byte sits at offset zero of the serialized transaction — infrastructure identifies the format with a single byte read, no deserialization. A v1 transaction starts with `129` (`0x81`).\n\nLegacy and v0 put signatures first, so they start with a signature *count* instead; `0x80` is the v0 prefix on the **message**, not on the transaction.\n\nThe four compute-budget values also move out of `ComputeBudgetProgram` instructions and into a message-level config: a `u32` bitmask at a fixed offset plus a positional value list holding only the fields the mask marks present. The values sit after the address array, so reaching them costs a length read and a popcount — but not a deserialization and scan of the instruction list, which is what pricing a v0 transaction requires. That is what makes the 4096-byte size limit affordable. See [transactions-v1.md](transactions-v1.md).\n","# Solana Runtime Concepts\n\n> **Solana Foundation skill — mirrored in the Musebook skills hub.**\n> This entry reproduces, verbatim, the `concepts.md` reference of the\n> foundation-maintained **solana-dev** skill (v2.7.0, MIT) from\n> https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill. It is one of the 16 topic\n> references the solana-dev router discloses progressively; for the full\n> skill (router + all references + nested guides), install the upstream\n> original: `npx skills add https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill` — also mirrored in this hub as the\n> `solana-dev` entry. Maintained by the Solana Foundation; Musebook does\n> not author or maintain this content. Relative links in the body point\n> at the upstream skill's file layout and resolve in the full install.\n\n# Solana Runtime Concepts\n\nLoad-bearing mechanics to reach for when explaining *why* Solana behaves the way it does. For applying these in program architecture, see [programs\u002Fdesign-patterns.md](programs\u002Fdesign-patterns.md).\n\n## Rent\n\nRent is a **fully-redeemable deposit**, not a recurring charge. The \"rent\" on an account is the rent-exempt minimum (≈2 years of storage at the historical rate); since the *Disable rent fees collection* feature, no ongoing rent is charged and any transaction creating a non-exempt account fails outright. The full deposit comes back when the account is closed.\n\n```bash\nsolana rent 165   # lamports needed to make a 165-byte account rent-exempt\n```\n\n## Keys and off-curve PDAs\n\nSolana uses Ed25519. A private key is a secret scalar `k`; the public key is `k·P`, a point on the curve — cheap to compute forward, infeasible to invert.\n\n**PDAs are addresses deliberately placed *off* the curve.** No scalar maps to them, so they have no private key and can never be signed for by a keypair. Only the owning program can authorize them, by supplying the seeds. That is the whole basis of program-controlled accounts.\n\n`find_program_address` hashes the seeds plus a bump byte and retries decreasing bumps until the result lands off-curve — which is why its compute cost varies. Store the canonical bump and use `create_program_address` on the hot path.\n\nVisual primer on the underlying math: https:\u002F\u002Fcurves.xargs.org\n\n## Entrypoint dispatch\n\nThe runtime does **not** use the ELF entrypoint. It calls the function registered under key `0x71E3CF81` — the murmur3 hash of `\"entrypoint\"`. Pull dependency programs in with the `no-entrypoint` feature so your binary doesn't define two:\n\n```toml\n[dependencies]\nsome-program = { version = \"1.0\", features = [\"no-entrypoint\"] }\n```\n\n## On-chain cryptography\n\nAvailable and reasonably cheap, which is what makes bridges, hardware-key auth, and on-chain proof verification practical:\n\n| Surface | What it covers |\n|---------|----------------|\n| `Ed25519SigVerify…` native program | Ed25519 signature verification |\n| `KeccakSecp256k…` native program | ECDSA over secp256k1 — Ethereum\u002FBitcoin interop |\n| `Secp256r1SigVerify…` native program | secp256r1 (P-256) — passkeys and hardware keys |\n| Syscalls | sha256, keccak256, blake3, poseidon, `secp256k1_recover`, alt_bn128 ops (ZK), big-mod-exp |\n\n## Transaction wire format\n\nA transaction is a short-vec of 64-byte signatures followed by a message. A legacy message packs:\n\n1. A 3-byte header whose offsets quarter the account list into writable\u002Fread-only × signer\u002Fnon-signer\n2. The account-address short-vec\n3. A recent blockhash\n4. An instruction short-vec — each instruction stores a program-id **index**, account **indexes**, and its data\n\nTwo consequences that drive design:\n\n- **Writability and signer status are properties of an account across the entire transaction**, not per instruction. An account writable for one instruction is write-locked for the whole transaction.\n- **Reusing an account already present in the message costs ~1 byte** in a later instruction, since only its index is stored. Packing more instructions over the same account set is nearly free on size.\n\n### v1 reorders the envelope\n\n`v1` ([SIMD-0385](https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-improvement-documents\u002Fblob\u002Fmain\u002Fproposals\u002F0385-transaction-v1.md)) moves the signature vector to the **tail** so the version byte sits at offset zero of the serialized transaction — infrastructure identifies the format with a single byte read, no deserialization. A v1 transaction starts with `129` (`0x81`).\n\nLegacy and v0 put signatures first, so they start with a signature *count* instead; `0x80` is the v0 prefix on the **message**, not on the transaction.\n\nThe four compute-budget values also move out of `ComputeBudgetProgram` instructions and into a message-level config: a `u32` bitmask at a fixed offset plus a positional value list holding only the fields the mask marks present. The values sit after the address array, so reaching them costs a length read and a popcount — but not a deserialization and scan of the instruction list, which is what pricing a v0 transaction requires. That is what makes the 4096-byte size limit affordable. See [transactions-v1.md](transactions-v1.md).\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"source":26,"version":27,"category":28},"Solana Foundation","https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill","2.7.0","Skill","main","1c523aba5cdf867a79f078847075492d7778092a","skills\u002Fsolana-foundation\u002Fconcepts",1,"https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills","https:\u002F\u002Fskills.x402.wtf","https:\u002F\u002Fgithub.com\u002Fthemusebook","https:\u002F\u002Fmusebook.trade","The official Github of musebook","2026-11-02 23:42:26",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add themusebook\u002Fskills --skill solana-dev-concepts",{"tool":45,"command":46},"bunx","bunx skills add themusebook\u002Fskills --skill solana-dev-concepts",{"tool":48,"command":49},"pnpm","pnpm dlx skills add themusebook\u002Fskills --skill solana-dev-concepts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsolana-foundation\u002Fconcepts\u002FSKILL.md",true,[],[54,62,69,76,83,90],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":58,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7AB34SPKVSDRRG009PM1CZH","youtube-clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7AB18BH6N7KR7939HRNWVMQ","viem-integration","Integrate EVM blockchains using viem. Use when user says \"read blockchain data\", \"send transaction\", \"interact with smart contract\", \"connect to Ethereum\", \"use viem\", \"use wagmi\", \"wallet integration\", \"viem setup\", or mentions blockchain\u002FEVM development with TypeScript.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fviem-integration\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7AB12GHGP48WCNXDQQ9222H","v4-security-foundations","Security-first Uniswap v4 hook development. Use when user mentions \"v4 hooks\", \"hook security\", \"PoolManager\", \"beforeSwap\", \"afterSwap\", or asks about V4 hook best practices, vulnerabilities, or audit requirements.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fv4-security-foundations\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7AB0XM3PSR7V3Q2ZRR0Q0FB","v4-sdk-integration","App-layer SDK guide for building swap and liquidity experiences directly with the Uniswap v4 SDK. Use when user asks about \"v4 sdk\", \"uniswap v4\", \"v4 swap\", \"v4 liquidity\", \"PoolManager\", \"V4Planner\", \"StateView\", \"PositionManager\", \"pool state\", \"v4 position\", \"uniswap sdk\", or when building swap\u002Fliquidity UX directly with SDKs rather than via the Trading API.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fv4-sdk-integration\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7AB0SGA93ASA588DJW4P9WT","v4-hook-generator","Generate Uniswap v4 hook contracts via OpenZeppelin MCP. Use when building custom swap logic, async swaps, hook-owned liquidity, custom curves, dynamic fees, MEV protection, limit orders, or oracle hooks.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fv4-hook-generator\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7AAZYH75H4CS03WSW2EZ8DM","testing","For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting\u002FSKILL.md",[],[]]