Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions spec/CodeChain-Virtual-Machine.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Leading zeros must be truncated. Note that it is allowed to decode a value with
1. Pop n values, which are distinct public keys.
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.
1. Pop m values, which are distinct signatures. The signature scheme is the same as CHKSIG.
1. Pop the tag value.
1. Pop the tag value.
1. Verify the signatures over the transaction message filtered by the tag. The signatures must be ordered the same way as the public keys.
1. Push true on success, false otherwise.
The specification about the tag is [here](Tag-encoding.md)
Expand All @@ -98,9 +98,6 @@ The specification about the tag is [here](Tag-encoding.md)
* KECCAK256(0x93): Pop one value from the stack, and push the keccak-256 hash of it.
* 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.

## Environment
* 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.

## Timelock
* CHKTIMELOCK(0xb0)
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.
Expand Down