Bitcoin Forum
April 27, 2024, 08:32:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Resources and Tools for debugging and simulating Bitcoin Scripts  (Read 257 times)
Accardo (OP)
Hero Member
*****
Offline Offline

Activity: 1064
Merit: 509


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..
1714249921
Hero Member
*
Offline Offline

Posts: 1714249921

View Profile Personal Message (Offline)

Ignore
1714249921
Reply with quote  #2

1714249921
Report to moderator
1714249921
Hero Member
*
Offline Offline

Posts: 1714249921

View Profile Personal Message (Offline)

Ignore
1714249921
Reply with quote  #2

1714249921
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714249921
Hero Member
*
Offline Offline

Posts: 1714249921

View Profile Personal Message (Offline)

Ignore
1714249921
Reply with quote  #2

1714249921
Report to moderator
1714249921
Hero Member
*
Offline Offline

Posts: 1714249921

View Profile Personal Message (Offline)

Ignore
1714249921
Reply with quote  #2

1714249921
Report to moderator
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1498
Merit: 7294


Farewell, Leo


View Profile
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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18507


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
Full Member
***
Online Online

Activity: 378
Merit: 230


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

MusaMohamed
Sr. Member
****
Offline Offline

Activity: 882
Merit: 290



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

R


▀▀▀▀▀▀▀██████▄▄
████████████████
▀▀▀▀█████▀▀▀█████
████████▌███▐████
▄▄▄▄█████▄▄▄█████
████████████████
▄▄▄▄▄▄▄██████▀▀
LLBITCRYPTO
FUTURES
[
1,000x
LEVERAGE
][
.
COMPETITIVE
FEES
][
INSTANT
EXECUTION
]██████
██
██
██
██
██
██
██
██
██
██
██
██████
████████████████████████████████████████████████████████
.
TRADE NOW
.
████████████████████████████████████████████████████████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
Kruw
Member
**
Offline Offline

Activity: 378
Merit: 93

assumevalid=0 and mempoolfullrbf=1


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

You can use Bitcoin privately without giving up custody: https://mempool.space/tx/d465033214fd2309dcce5a90c45fcaa788aa4394ee36debe07aad8d8a37907d2
^ Participate in coinjoin transactions like this with Wasabi Wallet ^
Nostr: npub1pww7030g95nv9ptfpgfu69jpfxj6pm33xxueztsupwekce45wx4sm6en60
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!