Parse the witness type from the first 4 bytes.
If the first 4 bytes as a little-endian uint32 is greater than or equal to MinWitnessLayoutTag, it will be parsed as WitnessLayout. Otherwise it is considered as WitnessArgs.
"WitnessArgs" for WitnessArgs, or a variant name of WitnessLayout.
Error if the witness is neither WitnessArgs nor WitnessLayout buffer.
tryParseWitness
Generated using TypeDoc
Parse the witness type from the first 4 bytes.
If the first 4 bytes as a little-endian uint32 is greater than or equal to MinWitnessLayoutTag, it will be parsed as WitnessLayout. Otherwise it is considered as WitnessArgs.