MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / decodeRlp

Function decodeRlp

lib.commonjs/utils/rlp-decode.js:76–81  ·  view source on GitHub ↗

* Decodes %%data%% into the structured data it represents.

(_data)

Source from the content-addressed store, hash-verified

74 * Decodes %%data%% into the structured data it represents.
75 */
76function decodeRlp(_data) {
77 const data = (0, data_js_2.getBytes)(_data, "data");
78 const decoded = _decode(data, 0);
79 (0, errors_js_1.assertArgument)(decoded.consumed === data.length, "unexpected junk after rlp payload", "data", _data);
80 return decoded.result;
81}
82exports.decodeRlp = decodeRlp;
83//# sourceMappingURL=rlp-decode.js.map

Callers

nothing calls this directly

Calls 1

_decodeFunction · 0.70

Tested by

no test coverage detected