Skip to content

₿ : Fun with BTC , BTC VM, ZK-STARK Provable BTC VM (coming soon......)

Notifications You must be signed in to change notification settings

ocdbytes/btcxvm-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BIT_FUN

Fun with BTC nothing to see here.....

OR

  • OPCODES
  • BASIC SCRIPTS
  • STACK OPS
  • CRYPTO OPS
  • TIME LOCK OPS
# To read the stack

STACK = TOP_OF_STACK-->[ 0x10 0x20 0x30 ]
STACK.top = 0x10

VM

To run

cd btc-vm
cargo build
cargo run '1 4 OP_ADD'

VM inputs

opcode vm input
OP_ADD OP_ADD
OP_SUB OP_SUB
OP_0 - OP-16 0 - 16

Current VM state

$ cargo run '1 2 OP_ADD'

======================================================
BTC VM Simulator
======================================================

>>>>> OPERATIONS : ["1", "2", "OP_ADD"]

>>>> Processing code : "1"
STACK : []
>>>> Processing code : "2"
STACK : ["1"]
>>>> Processing code : "OP_ADD"
STACK : ["1", "2"]

--------------------STACK (final) : ["3"]

About

₿ : Fun with BTC , BTC VM, ZK-STARK Provable BTC VM (coming soon......)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages