2022-11-28 05:50:34 +03:00
|
|
|
/**
|
|
|
|
* The [[link-rlp]] (RLP) encoding is used throughout Ethereum
|
|
|
|
* to serialize nested structures of Arrays and data.
|
|
|
|
*
|
2022-12-03 05:23:13 +03:00
|
|
|
* @_subsection api/utils:Recursive-Length Prefix [about-rlp]
|
2022-11-28 05:50:34 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
export { decodeRlp } from "./rlp-decode.js";
|
|
|
|
export { encodeRlp } from "./rlp-encode.js";
|
2022-09-05 23:14:43 +03:00
|
|
|
|
2022-09-09 10:37:38 +03:00
|
|
|
/**
|
|
|
|
* An RLP-encoded structure.
|
|
|
|
*/
|
2022-09-05 23:14:43 +03:00
|
|
|
export type RlpStructuredData = string | Array<RlpStructuredData>;
|
|
|
|
|
2023-10-10 01:35:44 +03:00
|
|
|
/**
|
|
|
|
* An RLP-encoded structure, which allows Uint8Array.
|
|
|
|
*/
|
|
|
|
export type RlpStructuredDataish = string | Uint8Array | Array<RlpStructuredDataish>;
|
|
|
|
|