Closed sorpaas closed 6 years ago
I managed to get application/vnd.ecip.rlp registered in IANA's Media Types database. See https://www.iana.org/assignments/media-types/media-types.xhtml
So now this media type can be used without worrying about conflicts, I would suggest to merge this.
I'm fine with this since it simply allows clients to return RLP data but does not define a structure.
That being said a standard structure/endpoints for RESTful HTTP data from a client should be defined in another ECIP and may be best finalized in tandem with this ECIP to help avoid client software creating different implementations.
Making RLP a media type sounds fine. I am guessing that the code in this case would be RPC and IPC requests for RLP data would have an additional return type: the media header wrapped around the RLP.
(Rendered)
Abstract
Recursive Length Prefix (see Yellow Paper Appendix B) is the data type used for all common Ethereum Classic structures including blocks, raw transactions, receipts and accounts. Defining a media type for Recursive Length Prefix (RLP) would allow a RESTful HTTP server to return raw RLP information directly.