All Projects → bitcoin-core → Btcdeb

bitcoin-core / Btcdeb

Licence: mit
Bitcoin Script Debugger

Projects that are alternatives of or similar to Btcdeb

Bitcoin Php
Bitcoin implementation in PHP
Stars: ✭ 878 (+228.84%)
Mutual labels:  bitcoin, transaction
Coinbin
Javascript Bitcoin Wallet. Supports Multisig, Stealth, HD, SegWit, Bech32, Time Locked Addresses, RBF and more!
Stars: ✭ 694 (+159.93%)
Mutual labels:  bitcoin, transaction
Ethereum Graph Debugger
Ethereum solidity graph plain debugger. To have the whole picture when debugging.
Stars: ✭ 177 (-33.71%)
Mutual labels:  transaction, debugger
Blockvotes
An e-voting system based on blockchain using ring signature
Stars: ✭ 182 (-31.84%)
Mutual labels:  bitcoin, transaction
Bitcoin in a nutshell
Книга о том, как действительно работает Bitcoin
Stars: ✭ 98 (-63.3%)
Mutual labels:  bitcoin, transaction
Bitsend
BitSend Master (Live Version)
Stars: ✭ 39 (-85.39%)
Mutual labels:  bitcoin, transaction
Basic Blockchain Programming
Sample code from my blog series "Basic blockchain programming".
Stars: ✭ 282 (+5.62%)
Mutual labels:  bitcoin, transaction
Cointrol
฿ Bitcoin trading bot with a real-time dashboard for Bitstamp.
Stars: ✭ 1,351 (+405.99%)
Mutual labels:  bitcoin, transaction
Learning Bitcoin From The Command Line
A complete course for learning Bitcoin programming and usage from the command
Stars: ✭ 2,010 (+652.81%)
Mutual labels:  bitcoin, transaction
Btcpy
A Python3 SegWit-compliant library which provides tools to handle Bitcoin data structures in a simple fashion.
Stars: ✭ 225 (-15.73%)
Mutual labels:  bitcoin, transaction
esewa pnp
Unofficial esewa plugin for flutter application.
Stars: ✭ 38 (-85.77%)
Mutual labels:  transaction
KDBG
The windows kernel debugger consists of two parts, KMOD which is the kernel driver handling ring3 request and KCLI; the command line interface for the driver. It originated due to insufficient useability with CheatEngine's DBVM driver while debugging games running under certain AntiCheat software.
Stars: ✭ 28 (-89.51%)
Mutual labels:  debugger
Web Wallet
Stars: ✭ 261 (-2.25%)
Mutual labels:  transaction
Cryptocurrency Analysis
Analysis and visualisation of the cryptocurrency market
Stars: ✭ 264 (-1.12%)
Mutual labels:  bitcoin
nvim-dap-python
An extension for nvim-dap, providing default configurations for python and methods to debug individual test methods or classes.
Stars: ✭ 70 (-73.78%)
Mutual labels:  debugger
Quantbot
数字货币量化交易学习框架
Stars: ✭ 257 (-3.75%)
Mutual labels:  bitcoin
pugdebug
pugdebug is a standalone debugging client for PHP applications that uses XDebug as the debugging engine.
Stars: ✭ 72 (-73.03%)
Mutual labels:  debugger
ETH-transactions-storage
Indexer for Ethereum to get transaction list by ETH address
Stars: ✭ 155 (-41.95%)
Mutual labels:  transaction
VisualDebugger
The most elegant and easiest way to visual you data in playground
Stars: ✭ 22 (-91.76%)
Mutual labels:  debugger
Lionshare Api
Realtime cryptocurrency API
Stars: ✭ 266 (-0.37%)
Mutual labels:  bitcoin

btcdeb

Bitcoin Script debugging utilities.

This is a set of tools used to debug or construct scripts for use in Bitcoin.

Build Status

Preparation

Mac users need the macOS command line tools:

xcode-select --install

And Homebrew.

Dependencies

btcdeb depends on the following:

  • libtool
  • libssl
  • automake/autoconf
  • pkg-config

Ubuntu/debian users can do: apt-get install libtool libssl-dev autoconf (with sudo prepended if necessary)

Mac users can do: brew install libtool automake pkg-config

Installation

On linux or mac, grab the source code and do:

$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

If any of those give an error, please file an issue and I'll take a look. It could be a dependency that I forgot about.

Emscripten

You can compile btcdeb tools into JavaScript using emscripten.

After installing the SDK, compile btcdeb tools with the following commands:

$ make clean
$ emconfigure ./configure
$ emmake make
$ for i in btcdeb btcc tap; do mv $i $i.bc && emcc -O2 $i.bc libbitcoin.a -o $i.js; done

and then instead of doing ./btcdeb you do node btcdeb.js (or mastify.js, etc).

The last part is done because emscripten's emcc expects the input bytecode file to have the .bc extension, whereas the makefile generates files with no extension.

Note: most things work, but the console in btcdeb does not. You can work around this by doing echo -n -e "step\n\n\n" (with sufficient \ns).

Script debugger

The btcdeb command can step through a Bitcoin Script and show stack content and operations on a per op level. See doc/btcdeb.md for details on usage.

Script compiler

The btcc command can interpret a script in its human readable form and will return a corresponding Bitcoin Script.

$ btcc OP_DUP OP_HASH160 897c81ac37ae36f7bc5b91356cfb0138bfacb3c1 OP_EQUALVERIFY OP_CHECKSIG
76a914897c81ac37ae36f7bc5b91356cfb0138bfacb3c188ac

The above is the script pub key for a transaction in Bitcoin in human readable format turned into its hexadecimal representation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].