WIP: RFC 5 : New Scalable Blockchain Protocol
Compare changes
rfc/0005 Duniter Protocol Rework.md
0 → 100644
+ 509
− 0
| `181` | `0xb5` | `Eval` | `script hash` | *special* | Evaluate `script` as if it was in-place. The script must have a Merkle Root equals to `hash`. If not, **transaction is invalid**. If the script *panic* (says the transaction is invalid), the **transaction is invalid**. The script hashing algorithm is described later in this document.
| `194` | `0xc2` | `FetchTargetSigTime` | *nothing* | `timestamp blockid` | Returns the timestamp and blockid corresponding to the blockstamp of the spending transaction document (signature time). One of the 2 dates can be discarded with `Drop` or `Nip` opcodes. It can be used to prevent using a source based on the date of the spending transaction.
| `195` | `0xc3` | `FetchTargetBlockTime` | *nothing* | `timestamp blockid` | Returns the timestamp and blockid corresponding to the block in which the spending transaction document appears. One of the 2 dates can be discarded with `Drop` or `Nip` opcodes. It can be used to prevent using a source based on the date of the spending transaction.
| `196` | `0xc4` | `FetchDeltaSigTime` | *nothing* | `delta_timestamp delta_blockid` | Returns the difference of timestamp and blockid between the signature time of the source and spending transaction. One of the 2 durations can be discarded with `Drop` or `Nip` opcodes. It can be used to prevent using a source based on the duration before spending.
| `197` | `0xc5` | `FetchDeltaBlockTime` | *nothing* | `delta_timestamp delta_blockid` | eturns the difference of timestamp and blockid between the block in which the spending transaction document appears and the spending transaction.One of the 2 durations can be discarded with `Drop` or `Nip` opcodes. It can be used to prevent using a source based on the duration before spending.