Skip to content

Commit ff2833e

Browse files
author
MarcoFalke
committed
Update bip-0325.mediawiki
It just happens that an empty byte vector is serialized identical to an empty vector of any other type, but it takes the reader an extra step. Thus, the minor fixup suggestion.
1 parent 9d44e59 commit ff2833e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bip-0325.mediawiki

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Testnet is a great place to try out new things without risking real money, but i
2121

2222
A new type of test network would be more suitable for integration testing by organizations such as exchanges, or testing of next generation Layer-2 protocols like Eltoo or sidechain pegs. The goal is not to be perfectly reliable but rather to have a predictable amount of unreliability. You want a test network to behave like mainnet (i.e. no thousands of block reorgs) while also making it easier to trigger expected but rare events like a 6-block reorg. Regtest is not suitable for longer-term scenarios involving multiple independent parties because creating blocks costs nothing, so any party can completely control the test network.
2323

24-
2524
== Specification ==
2625

2726
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.
@@ -33,7 +32,7 @@ The witness commitment of the coinbase transaction is extended to include a seco
3332
x bytes - scriptSig
3433
y bytes - scriptWitness
3534
36-
The scriptSig is serialized by first encoding its length as CompactSize. If the scriptWitness is empty, it is encoded as 0 bytes, otherwise it is encoded in the usual way (see BIP 141 "witness" encoding).
35+
The scriptSig is serialized by first encoding its length as CompactSize. The scriptWitness stack is serialized as described in BIP 141.
3736

3837
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.
3938

0 commit comments

Comments
 (0)