{"repo":"murphsicles/nPrint","free":true,"listed":false,"github":"https://github.com/murphsicles/nPrint","clone":"git clone https://github.com/murphsicles/nPrint.git","description":"nPrint: A Bitcoin Script Virtual Machine (BSVM)","language":"Rust","stars":12,"topics":["audio","bitcoin","bsv","contracts","data","documents","media","oracles","scripts","video"],"license":"MIT","category":"media-processing","readme_excerpt":"nPrint: A Bitcoin Script Virtual Machine (BSVM) 🛠️ nPrint is a modern Rust framework for building, deploying, verifying, and interacting with smart contracts on the Bitcoin Script Virtual Machine (BSV). It supports a wide range of script types, media protocols, and asynchronous runtime operations, with a focus on modularity and efficiency. Features ✨ nPrint provides a powerful macro system and reusable templates for Bitcoin SV smart contracts, enabling flexible and efficient development. Key features include: - Macro-based script generation : Compile-time script unrolling for performance and safety. - Reusable templates : Predefined contracts for common use cases. - Media protocols : On-chain verification and off-chain streaming for images, videos, audio, and documents. - Asynchronous runtime : Deploy and call contracts with node integration. - Verification tools : Symbolic execution for stack safety. - CLI tool : User-friendly interface for contract management. Macro Logic 🧠 nPrint implements the following macros for efficient script construction: - bsv script! : Creates a script from opcodes and integers. - Example: - xswap!(n) : Swaps the top stack item with the (n-1)th item below it. Expands to [ , OP ROLL] . - Example: xswap!(3) expands to [2, OP ROLL] . - xdrop!(n) : Removes the (n-1)th item from the stack. Expands to [ , OP ROLL, OP DROP] . - Example: xdrop!(3) expands to [2, OP ROLL, OP DROP] . - xrot!(n) : Rotates the nth item to the top. Expands to [ , OP ROLL] . ","default_branch":null,"files":null,"tree":[],"storefront":"/r/murphsicles","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/murphsicles/nPrint/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}