Rlp.decode | (bytes: Uint8Array, stream?: boolean) => { data: BrandedRlp; remainder: Uint8Array } | Decode RLP stream; rejects trailing bytes unless stream = true |
Rlp.decodeValue | (bytes: Uint8Array) => BrandedRlp | Decode single complete RLP value |
Rlp.decodeArray | (bytes: Uint8Array) => BrandedRlp[] | Decode top-level RLP list |
Rlp.decodeObject | (bytes: Uint8Array) => Record<string, Uint8Array> | Decode RLP-encoded key-value map |
Rlp.decodeBatch | (items: readonly Uint8Array[]) => BrandedRlp[] | Batch decode byte arrays |
Rlp.validate | (bytes: Uint8Array) => boolean | Check whether bytes are valid canonical RLP |
Rlp.isCanonical | (bytes: Uint8Array) => boolean | Verify minimal length prefixing and zero-free lengths |
Rlp.getLength | (bytes: Uint8Array) => number | Read total encoded byte length from prefix |
Rlp.isList / Rlp.isString | (bytes: Uint8Array) => boolean | Inspect prefix byte category |
Rlp.isData / Rlp.isBytesData / Rlp.isListData | (value: unknown) => boolean | Type guards for BrandedRlp |
Rlp.flatten | (data: BrandedRlp) => BrandedRlp[] | Flatten nested list into leaf byte nodes |
Rlp.equals | (a: BrandedRlp, b: BrandedRlp) => boolean | Deep structural equality |
Rlp.toRaw / Rlp.toJSON / Rlp.fromJSON | Convert between BrandedRlp, raw nested arrays, and JSON | |