Skip to content

Add XDR serialization format #772

@jasperpotts

Description

@jasperpotts

Problem

Protobuf is very expensive to parse in EVM Smart contracts so we need an alternative option. The best standard format we could find that will be easy/cheap GAS to parse is External Data Representation (XDR). XDR was developed in the mid 1980s at Sun Microsystems, and first widely published in 1987. XDR became an Internet Engineering Task Force (IETF) Internet Standard in 1995.

Solution

Implement a new code generation to generate Codecs for XDR format form objects. Stretch goal is to also add code generation of Solidity lib for reading and writing XDR format PBJ data.

Alternatives

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions