Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
/ bitcoin-script-vm Public archive

Implemention of bitcoin script stackmachine written by Rust

Notifications You must be signed in to change notification settings

onokatio/bitcoin-script-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Constants

FOSSA Status

  • OP_FALSE OP_0
  • push bytes
  • OP_PUSHDATA1
  • OP_PUSHDATA2
  • OP_PUSHDATA4
  • OP_1NEGATE
  • OP_TRUE OP_1 ~ OP_16

Flow control

  • OP_NOP
  • OP_IF OP_ELSE OP_ENDIF
  • OP_VERIFY
  • OP_RETURN

Stack

  • OP_TOALTSTACK
  • OP_FROMALTSTACK
  • OP_IFDUP
  • OP_DEPTH
  • OP_DROP
  • OP_DUP
  • OP_NIP
  • OP_OVER
  • OP_PICK
  • OP_ROLL
  • OP_ROT
  • OP_SWAP
  • OP_TUCK
  • OP_2DROP
  • OP_2DUP
  • OP_3DUP
  • OP_2OVER
  • OP_2ROT
  • OP_2SWAP

Splice

  • OP_SIZE

Bitwise logic

  • OP_EQUAL
  • OP_EQUALVERIFY

Arithmetic

  • OP_1ADD
  • OP_1SUB
  • OP_NEGATE
  • OP_ABS
  • OP_NOT
  • OP_0NOTEQUAL
  • OP_ADD
  • OP_SUB
  • OP_BOOLAND
  • OP_BOOLOR
  • OP_NUMEQUAL
  • OP_NUMEQUALVERIFY
  • OP_NUMNOTEQUAL
  • OP_LESSTHAN
  • OP_GREATERTHAN
  • OP_LESSTHANOREQUAL
  • OP_GREATERTHANOREQUAL
  • OP_MIN
  • OP_MAX
  • OP_WITHIN

Crypto

  • OP_RIPEMD160
  • OP_SHA1
  • OP_SHA256
  • OP_HASH160
  • OP_HASH256
  • OP_CODESEPARATOR
  • OP_CHECKSIG
  • OP_CHECKSIGVERIFY
  • OP_CHECKMULTISIG
  • OP_CHECKMULTISIGVERIFY
  • OP_NOP2 / OP_CHECKLOCKTIMEVERIFY
  • OP_NOP3 / OP_CHECKSEQUENCEVERIFY

Pseudo-words

  • OP_PUBKEYHASH
  • OP_PUBKEY
  • OP_INVALIDOPCODE

License

FOSSA Status

About

Implemention of bitcoin script stackmachine written by Rust

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages