ethers.js/src.ts/utils/rlp.ts

16 lines
392 B
TypeScript
Raw Normal View History

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>;