Bitcoin Forum
November 06, 2024, 06:11:16 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Resources and Tools for debugging and simulating Bitcoin Scripts  (Read 285 times)
Accardo (OP)
Hero Member
*****
Offline Offline

Activity: 1260
Merit: 561


Leading Crypto Sports Betting & Casino Platform


View Profile
August 30, 2023, 09:03:06 AM
Merited by The Cryptovator (31), EFS (12), NotATether (10), BlackHatCoiner (8), ABCbits (7), vapourminer (5), pooya87 (5), o_e_l_e_o (4), n0nce (4), Halab (2), Cricktor (2), DdmrDdmr (1), dzungmobile (1)
 #1

I always thought of making this thread, not sure how useful it'll be for individual readers, but the resources and tools are great. The thread contains few explanation and links to articles or docs that fully describe how the tools work; debugging, constructing wallets, verifying ECDSA signature, etc.

Below are some useful tools

Bitauth IDE designs advanced scripts for bitcoin or any other cryptocurrency, in it are different features for line by line debugging used to visualize the status of the program execution. Templates are used to represent projects on Bitauth, which include a variable system for generating automatically, private keys, public keys and correct signature in locking and unlocking scripts. This writeup explains deeply about the project, its usage and other useful terms in bitcoin scripts.

Bitcoin IDE Provides step by step ways or processes for learning, teaching and testing a bitcoin script. Its features include; Synthax highlighting, auto complete, translation to and from assembly, Stack visualizer and step by step debugger. The github repository for bitcoinIDE can be found here https://github.com/siminchen/bitcoinIDE

Btc Deb contains different utilities or tools for debugging bitcoin scripts and building bitcoin compatible scripts. The tools can be compiled into javascript using https://emscripten.org/ every information about the BTC DEB is on the first link that begins this section you can further read here https://github.com/kallewoof/btcdeb/blob/master/doc/btcdeb.md

ECDSA Generator This tool solves for generating keys, public and private and signs them using bitcoin curve secp256k1, its friendly user interface is easy to navigate. I tried generating keys myself and it played out to be fast and responsive.

Below are some useful resources

Bitcoin Script: A reading list written by Jason Dreyzehner the developer of the above Bitauth IDE tool, focuses primarily on bitcoin scripts, list of tools, links to different useful terms like P2SH required in building bitcoin scripts, bitcoin development language etc. It's a good read for anyone that needs supports building bitcoin scripts.

Bitcoin Contracts Is an article powered by a script Bitcoin Contract Compiler that goes in details about the technical aspect and practical sample of how bitcoin contracts works. It's mainly encouraged to be used for learning purposes.

Online Bitcoin Simulator or Debugger
A stack thread where most of the tools used in debugging and simulating bitcoin scripts were shared by individual developers and users. I got most of the tools shared in this thread on the same thread, I would have simply shared the thread link instead of arranging them this way, but most of the links to tools don't work anymore, so this thread consists of the ones I found useful and still working. You are welcome to contribute.

Use Testnets to work on these tools, don't use your private keys to test on any of the tools. I feel like I've done something this morning.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1694
Merit: 8324


Bitcoin is a royal fork


View Profile WWW
August 30, 2023, 03:50:57 PM
Merited by o_e_l_e_o (4), pooya87 (3), vapourminer (1), stompix (1), ABCbits (1), DdmrDdmr (1), Cricktor (1)
 #2

Great idea to gather these tools and resources in one place.

Here's another two:
- https://bitcoin-script-debugger.visvirial.com/, for debugging Bitcoin scripts.
- https://bip32jp.github.io/english/createp2sh.html, for managing P2SH.

This one is really cool. So, basically you can write a small program in JS, and it will convert it to Bitcoin script. You can check how it does it in scripts/emitter.js, it was a fun read.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18746


View Profile
August 31, 2023, 08:05:44 AM
Merited by BlackHatCoiner (4), vapourminer (1), ABCbits (1), Cricktor (1)
 #3

I'll add another one:

https://nioctib.tech

Put in the TXID of any confirmed transaction and hit the "debug" button underneath any of the inputs, and then you can click "Next" and "Prev" as it simulates the script and shows elements being moved to the stack. You can also hit the "Raw" icon to see a color annotated breakdown of the raw transaction data.
iBaba
Sr. Member
****
Offline Offline

Activity: 574
Merit: 290


Bitcoin in Niger State💯


View Profile WWW
September 10, 2023, 07:11:05 AM
Merited by vapourminer (1)
 #4

Let me add another three for more options:

• bitcoin4s script debugger | https://github.com/h0ngcha0/bitcoin4s
• Bitcoin Script Symbolic Tracer | https://github.com/dgpv/bsst/
• cmarsh script debugger.

Enjoy!  Wink

.
DuelbitsSPORTS
▄▄▄███████▄▄▄
▄▄█████████████████▄▄
▄██████████████████████▄
██████████████████████████
███████████████████████████
██████████████████████████████
██████████████████████████████
█████████████████████████████
███████████████████████████
█████████████████████████
▀████████████████████████
▀▀███████████████████
██████████████████████████████
██
██
██
██

██
██
██
██

██
██
██
████████▄▄▄▄██▄▄▄██
███▄█▀▄▄▀███▄█████
█████████████▀▀▀██
██▀ ▀██████████████████
███▄███████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
▀█████████████████████▀
▀▀███████████████▀▀
▀▀▀▀█▀▀▀▀
OFFICIAL EUROPEAN
BETTING PARTNER OF
ASTON VILLA FC
██
██
██
██

██
██
██
██

██
██
██
10% CASHBACK
          100% MULTICHARGER
MusaMohamed
Sr. Member
****
Offline Offline

Activity: 1050
Merit: 346



View Profile
September 13, 2023, 02:07:13 AM
Merited by NotATether (3), vapourminer (1)
 #5

I am checking https://bitcoindevlist.com/ and hope that from their projects, I can find more tools to add them here.

Two websites can be helpful if they continue to list more debugging & simulating tools in future. From them, I found some tools which are already listed here.

https://cryptolinks.com/
https://github.com/igorbarinov/awesome-bitcoin

.
Duelbits
▄▄█▄▄░░▄▄█▄▄░░▄▄█▄▄
███░░░░███░░░░███
░░░░░░░░░░░░░
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░░░░███▄█░░░
░░██▌░░███░▀░░██▌
█░██░░███░░░██
█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀
.
REGIONAL
SPONSOR
███▀██▀███▀█▀▀▀▀██▀▀▀██
██░▀░██░█░███░▀██░███▄█
█▄███▄██▄████▄████▄▄▄██
██▀ ▀███▀▀░▀██▀▀▀██████
███▄███░▄▀██████▀█▀█▀▀█
████▀▀██▄▀█████▄█▀███▄█
███▄▄▄████████▄█▄▀█████
███▀▀▀████████████▄▀███
███▄░▄█▀▀▀██████▀▀▀▄███
███████▄██▄▌████▀▀█████
▀██▄█████▄█▄▄▄██▄████▀
▀▀██████████▄▄███▀▀
▀▀▀▀█▀▀▀▀
.
EUROPEAN
BETTING
PARTNER
Kruw
Full Member
***
Offline Offline

Activity: 574
Merit: 136


Make your Bitcoins anonymous - wasabiwallet.io


View Profile WWW
September 13, 2023, 02:59:40 AM
Merited by NotATether (1)
 #6

https://ide.scriptwiz.app/ is another one for your list  Smiley

Coinjoin for FREE! - Connect using
Code:
https://coinjoin.kruw.io/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!