ethereumproject / ECIPs

The Ethereum Classic Improvement Proposal
55 stars 47 forks source link

ECIP-1031: Recursive Length Prefix Media Type #74

Closed sorpaas closed 6 years ago

sorpaas commented 6 years ago

(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.

sorpaas commented 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.

pyskell commented 6 years ago

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.

RorschachRev commented 6 years ago

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.

sorpaas commented 6 years ago

See comment https://github.com/ethereumproject/ECIPs/pull/82#issuecomment-346282918