sbor

Crates.iosbor
lib.rssbor
version1.2.0
sourcesrc
created_at2024-03-20 09:02:24.147277
updated_at2024-05-17 13:39:07.835165
descriptionReference implementation of the SBOR binary data format, from the Radix DLT project.
homepage
repositoryhttps://github.com/radixdlt/radixdlt-scrypto
max_upload_size
id1180220
size486,593
(radixbot)

documentation

README

Scrypto Binary Object Representation

Scrypto Binary Object Representation (SBOR) is an open, efficient and Rust-native data format used by Scrypto and Radix Engine V2.

Why Another Data Format?

Data serialization and deserialization are required for Scrypto in many places, e.g. system function calls and component interactions. We need a framework that supports efficient data encoding, decoding and describing.

Serde and its supported data formats have been a good start, but didn't meet all our requirements.

  • Bincode is performant but require data schema for decoding;
  • JSON is self-descriptive but is slow because of its text-based representation;
  • Neither supports schema generation.

Design Objectives

  • Rust Native: It should support most, if not all, Rust types.
  • Schemaless: It should support schemaless data encoding and encoding.
  • Fully Specified: It should come with full specification.
  • Fast: It should be fast.
Commit count: 17412

cargo fmt