Skip to content

Commit c847c74

Browse files
committed
Remove BLKNUM from the CCVM spec
1 parent 2e49013 commit c847c74

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spec/CodeChain-Virtual-Machine.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Leading zeros must be truncated. Note that it is allowed to decode a value with
8585
1. Pop n values, which are distinct public keys.
8686
1. Pop one value, the value is m in the m-of-n Multisig. The value must be less than or equal to the value n.
8787
1. Pop m values, which are distinct signatures. The signature scheme is the same as CHKSIG.
88-
1. Pop the tag value.
88+
1. Pop the tag value.
8989
1. Verify the signatures over the transaction message filtered by the tag. The signatures must be ordered the same way as the public keys.
9090
1. Push true on success, false otherwise.
9191
The specification about the tag is [here](Tag-encoding.md)
@@ -98,9 +98,6 @@ The specification about the tag is [here](Tag-encoding.md)
9898
* KECCAK256(0x93): Pop one value from the stack, and push the keccak-256 hash of it.
9999
* BLAKE160(0x94): Pop one value from the stack, and push the blake-160 hash of it. Blake-160 here refers to blake2b with a 20 byte output.
100100

101-
## Environment
102-
* BLKNUM(0xa0): Push the block number specified in the transaction to the stack as an integer. If there's no specified block number, the machine must fail immediately.
103-
104101
## Timelock
105102
* CHKTIMELOCK(0xb0)
106103
1. Read the next script byte which is the encoded number for the 4 types of timelock. It must be between 1 and 4. The script will fail otherwise.

0 commit comments

Comments
 (0)