hashgraph / hashgraph/pbj

Add XDR serialization format

Open
#772 0 comments 0 reactions 1 assignee Claimed by @jasperpotts View on GitHub
Dominant language
Java
Stars
44
Forks
15
Avg merge
1d 15h
Merged PRs (30d)
12

Description

### 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](https://en.wikipedia.org/wiki/Sun_Microsystems), and first widely published in 1987. XDR became an [Internet Engineering Task Force](https://en.wikipedia.org/wiki/Internet_Engineering_Task_Force) (IETF) [Internet Standard](https://en.wikipedia.org/wiki/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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.