Skip to content

Commit

Permalink
docs: Move OP_EQUAL up, clarify hash of hash
Browse files Browse the repository at this point in the history
  • Loading branch information
kilrau authored and gitbook-bot committed Dec 19, 2023
1 parent 76bd4d4 commit 60b3d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/dont-trust.-verify.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ Boltz API returns a redeem script and a derived chain address when creating swap
Although the output script of the P2SH nested P2WSH addresses is the same as the one of plain P2SH addresses, other data is hashed. Here, not the plain redeem script is hashed, but a P2WSH output script is constructed and hashed first with SHA256 and then with RIPEMD-160 as if it was the redeem script. The output script will look like this:

```
OP_HASH160
<RIPEMD-160 hash of the P2WSH output script>
OP_EQUAL
OP_HASH160
<RIPEMD-160 hash of the SHA256 hash of the P2WSH output script>
```

#### P2WSH
Expand Down

0 comments on commit 60b3d6e

Please sign in to comment.