Skip to content

Add XDR serialization format #772

Open

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

Activity

  1. self-assigned this
    on Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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