Skip to content

Instantly share code, notes, and snippets.

View bernardoaraujor's full-sized avatar

bernardo bernardoaraujor

View GitHub Profile
@niklasad1
niklasad1 / Dockerfile
Last active February 28, 2022 15:15 — forked from pepyakin/Dockerfile
Polkadot Raspberry PI cross-compile build
# Put this file in the root of substrate / polkadot directory and build the image using
# the following command
#
# docker build -t <container id> .
#
# you can pick <container id> yourself. For example: `johndoe/rpi-cross`.
#
FROM rust:latest
@kchristidis
kchristidis / protobuf-serialization.md
Last active June 27, 2025 14:10
Notes on protocol buffers and deterministic serialization (or lack thereof)

There doesn't seem to be a good resource online describing the issues with protocol buffers and deterministic serialization (or lack thereof). This is a collection of links on the subject.

Protocol Buffers v3.0.0. release notes:

The deterministic serialization is, however, NOT canonical across languages; it is also unstable across different builds with schema changes due to unknown fields.

Maps documentation:

Wire format ordering and map iteration ordering of map values is undefined, so you cannot rely on your map items being in a particular order.