This pull request contains several changes which were needed to use NBitcoin with PKT Cash. The actual network details are currently implemented in a private repository as this is still incomplete. This PR is primarily for comparison and to suggest some improvements, it does not need to be accepted as-is.
The filter data of a cfilter payload is a var_str or CompactSize followed by a variable number of bytes, not a zero-size buffer: https://en.bitcoin.it/wiki/BIP_0157#cfilter
The unknown payload data was not correctly deserialized because it would read a zero-size buffer
The witness marker is specified as two bytes (0001), using an empty TxInList seems excessive and hides the actual purpose
Some coins need different transaction validation rules, in our case the maximum supply (hardcoded in MAX_MONEY) is different
This pull request contains several changes which were needed to use NBitcoin with PKT Cash. The actual network details are currently implemented in a private repository as this is still incomplete. This PR is primarily for comparison and to suggest some improvements, it does not need to be accepted as-is.