1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-26 09:58:22 +00:00

Edited ch07_authorization-authentication.adoc with Atlas code editor

This commit is contained in:
clenser 2023-10-19 10:51:47 +00:00
parent 01f2a6b55b
commit 1e5895a1a2

View File

@ -134,7 +134,7 @@ image::images/mbc3_0701.png["input_and_output_scripts"]
===== The script execution stack ===== The script execution stack
Bitcoin's scripting language is called a stack-based language because it Bitcoin's ((("scripts", "stack", id="script-stack")))((("stack", id="stack")))scripting language is called a stack-based language because it
uses a data structure called a _stack_. A stack is a very simple data uses a data structure called a _stack_. A stack is a very simple data
structure that can be visualized as a stack of cards. A stack has two structure that can be visualized as a stack of cards. A stack has two
base operations: push and pop. Push adds an item on top of the stack. Pop base operations: push and pop. Push adds an item on top of the stack. Pop
@ -152,7 +152,7 @@ of +TRUE+ or +FALSE+. For example, +OP_EQUAL+ pops two items from the stack
and pushes +TRUE+ (+TRUE+ is represented by the number 1) if they are equal and pushes +TRUE+ (+TRUE+ is represented by the number 1) if they are equal
or +FALSE+ (represented by zero) if they are not equal. Bitcoin or +FALSE+ (represented by zero) if they are not equal. Bitcoin
transaction scripts usually contain a conditional operator, so that they transaction scripts usually contain a conditional operator, so that they
can produce the +TRUE+ result that signifies a valid transaction. can produce the +TRUE+ result that signifies a valid ((("scripts", "stack", startref="script-stack")))((("stack", startref="stack")))transaction.
===== A simple script ===== A simple script