decodeRLPCheck function

RLPItem decodeRLPCheck(
  1. Uint8List input
)

Implementation

RLPItem decodeRLPCheck(Uint8List input) {
  final (item, consumed) = decodeRLP(input);
  if (consumed != input.length) {
    throw RLPException("Invalid RLP: input is longer than specified length");
  }
  return item;
}