Try to parse the witness as WitnessLayout or WitnessArgs.
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.
The witness bytes
Unpacked WitnessArgs or WitnessLayout
Error if the witness is neither WitnessArgs nor WitnessLayout buffer.
parseWitnessType
Generated using TypeDoc
Try to parse the witness as WitnessLayout or WitnessArgs.
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.