{"repo":"h0ngcha0/bitcoin4s","free":true,"listed":false,"github":"https://github.com/h0ngcha0/bitcoin4s","clone":"git clone https://github.com/h0ngcha0/bitcoin4s.git","description":"A Bitcoin Script Interpreter and Debugger in Scala","language":"Scala","stars":60,"topics":["scala","bitcoin","cryptocurrency"],"license":null,"category":"blockchain-web3","readme_excerpt":"bitcoin4s ========= Scala library for experimenting with Bitcoin scripts. Provides a step by step debugger through REST API. Passes all bitcoin script test cases from bitcoin core. The code in repository runs the https://bitcoin-decoder.softfork.se website. Table of Content ---------------- Parse bitcoin script Run bitcoin script interpreter Rest API Develop nioctib.tech website locally Parse bitcoin script -------------------- Run bitcoin script interpreter ------------------------------ The following code would interpret the first input of transaction bac02148041affd9dec93d30a86d1777d9570ab5d36fa2e0b7a20c0fa208e458 . It uses the Blockcypher API to fetch transaction information. REST API -------- Running sbt reStart under the project root starts up an HTTP server listening to port 8888 which serves a few REST endpoints. Example 1: Execute the unlocking script of the first input of transaction 85db1042f083a8fd6f96fd1a76dc7b8373df9f434979bdcf2432ecf9e0c212ac and its corresponding locking script. Example 2 Same example as example 1, but stream each of the execution step back using websocket. Develop nioctib website locally --------------- nioctib.tech website is intended to be a Bitcoin educational site. Right now it supports displaying and debugging Bitcoin transactions at the OpCode level. Start backend server In the project root directory, run sbt reStart , it will start the backend web server at the port 8888 Start frontend development server In the client directory, run ya","default_branch":null,"files":null,"tree":[],"storefront":"/r/h0ngcha0","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/h0ngcha0/bitcoin4s/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."}