FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rust-bitcoin-script-stack/examples/debugging.rs at main · BitVM/rust-bitcoin-script-stack · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
BitVM
/
rust-bitcoin-script-stack
Public
forked from
FairgateLabs/rust-bitcoin-script-stack
Notifications
You must be signed in to change notification settings
Fork
3
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
rust-bitcoin-script-stack
/
examples
/
debugging.rs
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (12 loc) · 420 Bytes
Breadcrumbs
rust-bitcoin-script-stack
/
examples
/
debugging.rs
Copy path
File metadata and controls
19 lines (12 loc) · 420 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use
bitcoin_script_stack
::
stack
::
StackTracker
;
pub
fn
main
(
)
{
let
mut
stack =
StackTracker
::
new
(
)
;
let
var1 = stack
.
number
(
1
)
;
let
var2 = stack
.
number
(
10
)
;
let
_ = stack
.
copy_var
(
var1
)
;
stack
.
debug
(
)
;
stack
.
move_var
(
var2
)
;
stack
.
drop
(
var2
)
;
stack
.
op_equalverify
(
)
;
stack
.
op_true
(
)
;
}
Back
|
FazBrowse Home
|
New Git URL