decode static method
Decode an RLP-encoded list of items.
Implementation
static List<dynamic> decode(List<int> data) {
try {
final decoded = _decode(data, 0);
if (decoded.consumed != data.length) {
throw const ETHPluginException('invalid rpl payload bytes');
}
return decoded.result;
} on MessageException {
rethrow;
} catch (e) {
throw const ETHPluginException('cannot decode rpl payload');
}
}