Skip to content

Commit 471ec4a

Browse files
committed
Merge remote-tracking branch 'origin-pull/976/head'
2 parents d701794 + 6d7d301 commit 471ec4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bip-0325.mediawiki

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ A new type of test network would be more suitable for integration testing by org
2525

2626
A new type of network ("signet"), which takes an additional consensus parameter called the challenge (scriptPubKey). The challenge can be a simple pubkey (P2PKH style), or a k-of-n multisig, or any other script you would want.
2727

28-
The witness commitment of the coinbase transaction is extended to include a secondary commitment (the signature/solution) of either:
28+
Signet requires all blocks to have a BIP 141 commitment in the coinbase transaction. In order to provide a non-empty solution to the block challenge the block's BIP 141 commitment's optional data must include an additional commitment of the signature/solution for the block:
2929

3030
1-5 bytes - Push the following (4 + x + y) bytes
3131
4 bytes - Signet header (0xecc7daa2)
3232
x bytes - scriptSig
3333
y bytes - scriptWitness
3434
35+
In the special case where an empty solution is valid (ie scriptSig and scriptWitness are both empty) this additional commitment can optionally be left out. This special case is to allow non-signet-aware block generation code to be used to test a custom signet chain where the challenge is trivially true.
36+
3537
The scriptSig is serialized by first encoding its length as CompactSize. The scriptWitness stack is serialized as described in BIP 141.
3638

3739
Any push operations that do not start with the 4 byte Signet header are ignored. Multiple push operations with the 4 byte Signet header are ignored except for the first instance of the header.

0 commit comments

Comments
 (0)