Ventimore Ltd
 
  HOME   DOCS    
 
The BSV Editor

User Guide

The BSV editor is intended to make it easier for developers to develop complex non-standard transactions including smart contracts.

Repository

The BSV editor stores transactions, scripts, spends (matching lock and unlocking scripts) and high-level scripts on the local file system.

You are advised to specify a local repository to hold all your stored objects. The advantage of dong so is that the BSV editor will be able to automatically resolve links to objects stored in the repository.

Transactions

Transactions represent both a store of value and the transfer of value from other transactions. The reader is referred to the excelent book 'Mastering Bitcoin' for further details. Note that BSV retains the original Bitcoin transaction format (pre Segregated Witness).

Transactions can be loaded into BSV Editor using the following menu options: Transactions > Load.
Transactions objects can be identified by the the .txn file extension.

Transaction fields can be edited by clicking on the field and directly typing or pasting in new values.

Creating Transactions

Linking Scripts to Transactions

Scripts

A script consist of a sequence of opcodes and data. Scripts are used by Bitcoin to lock and unlock transaction outputs.

Scripts can be loaded into BSV Editor using the following menu options: Scripts > Load.
Script objects can be identified by the the .script file extension.

The Script Debugger

The script debugger can be invoked by pressing F5.

Once invoked, the debugger can be single-stepped through the script by pressing F10, or allowed to run until the end of the end of the script or a breakpoint is hit by pressing F5 again.

A breakpoint at the current script position can be toggled by pressing F9, and is identified by the presence of a red dot to the right of the opcode.

The stacks are displayed to the right of the code window and updated when an opcode is executed.

Spends

Spends consist of 2 scripts - a locking script + unlocking script. A spend object refers to existing script objects.

Spends can be loaded into BSV Editor using the following menu options: Scripts > Load Spend.
Spend objects can be identified by the the .spend file extension.

High Level Language

The BSV editor can run scripts written in high-level languages provided the relevant language module is installed.

The current version (0.9) comes with the Hello language module pre-installed.

 

Copyright (c) Ventimore Ltd (UK), 2011, 2012, 2017, 2018.