All Projects → iqlusioninc → veriform

iqlusioninc / veriform

Licence: Apache-2.0 license
Security-oriented protobuf-like serialization format with "Merkleized" content hashing support

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to veriform

Kotlinx.serialization
Kotlin multiplatform / multi-format serialization
Stars: ✭ 3,550 (+3014.04%)
Mutual labels:  serialization, protobuf
Protobuf Convert
Macros for convenient serialization of Rust data structures into/from Protocol Buffers 3
Stars: ✭ 22 (-80.7%)
Mutual labels:  serialization, protobuf
Flatbuffers
FlatBuffers: Memory Efficient Serialization Library
Stars: ✭ 17,180 (+14970.18%)
Mutual labels:  serialization, protobuf
nimpb
Protocol Buffers for Nim
Stars: ✭ 29 (-74.56%)
Mutual labels:  serialization, protobuf
Protostuff
Java serialization library, proto compiler, code generator
Stars: ✭ 1,730 (+1417.54%)
Mutual labels:  serialization, protobuf
ocaml-pb-plugin
A protoc plugin for generating OCaml code from protobuf (.proto) files.
Stars: ✭ 18 (-84.21%)
Mutual labels:  serialization, protobuf
Cpp Serializers
Benchmark comparing various data serialization libraries (thrift, protobuf etc.) for C++
Stars: ✭ 533 (+367.54%)
Mutual labels:  serialization, protobuf
protoc-plugin
A protoc compiler plugin for Clojure applications
Stars: ✭ 28 (-75.44%)
Mutual labels:  serialization, protobuf
Rust Protobuf
Rust implementation of Google protocol buffers
Stars: ✭ 1,797 (+1476.32%)
Mutual labels:  serialization, protobuf
Protobuf
Protocol Buffers - Google's data interchange format
Stars: ✭ 52,305 (+45781.58%)
Mutual labels:  serialization, protobuf
CppSerialization
Performance comparison of the most popular C++ serialization protocols such as Cap'n'Proto, FastBinaryEncoding, Flatbuffers, Protobuf, JSON
Stars: ✭ 89 (-21.93%)
Mutual labels:  serialization, protobuf
edap
No description or website provided.
Stars: ✭ 22 (-80.7%)
Mutual labels:  serialization, protobuf
javascript-serialization-benchmark
Comparison and benchmark of JavaScript serialization libraries (Protocol Buffer, Avro, BSON, etc.)
Stars: ✭ 54 (-52.63%)
Mutual labels:  serialization, protobuf
Shineframe
高性能超轻量级C++开发库及服务器编程框架
Stars: ✭ 274 (+140.35%)
Mutual labels:  serialization, protobuf
protobuf-d
Protocol Buffers Compiler Plugin and Support Library for D
Stars: ✭ 32 (-71.93%)
Mutual labels:  serialization, protobuf
Protobuf
A pure Elixir implementation of Google Protobuf
Stars: ✭ 442 (+287.72%)
Mutual labels:  serialization, protobuf
elm-protobuf
protobuf plugin for elm
Stars: ✭ 93 (-18.42%)
Mutual labels:  serialization, protobuf
kafka-protobuf-serde
Serializer/Deserializer for Kafka to serialize/deserialize Protocol Buffers messages
Stars: ✭ 52 (-54.39%)
Mutual labels:  serialization, protobuf
Protobuf Nim
Protobuf implementation in pure Nim that leverages the power of the macro system to not depend on any external tools
Stars: ✭ 90 (-21.05%)
Mutual labels:  serialization, protobuf
Ocaml Protoc
A Protobuf Compiler for OCaml
Stars: ✭ 129 (+13.16%)
Mutual labels:  serialization, protobuf

Veriform

Build Status Apache 2.0 licensed

Veriform is a cryptographically verifiable data serialization format inspired by Protocol Buffers, useful for things like credentials, transparency logs, and "blockchain" applications.

Specification

Rationale (a.k.a. "Oh no! Not another serialization format!")

If you look at another engineer's work and think, "That's dumb. Why don't you just..." Take a breath. Find out why the problem is hard. Adrienne Porter Felt

Obligatory xkcd

Veriform is similar in design to Protocol Buffers, which is at its core a schema-driven format. It also includes a small amount of information which makes it partly self-describing, "wire types", however they are too limited to comprehend serialized messages in absence of a schema.

Without a fully self-describing wire format, it isn't possible to implement Veriform's primary distinguishing feature: "Merkleized" content hashing which functions even if some of the fields in a message aren't known by the schema. This means that the sender and receiver of a message don't need to be working with the same version of a schema to agree on a message hash, which enables schema evolution.

Veriform is not intended to be a general purpose serialization format: for that we recommend something like Protocol Buffers or Cap'n Proto. While it's fine to use Veriform for general purpose serialization if it fits your needs, it's lacking many features such as an associated RPC protocol. Instead, Veriform is the sort of thing you might use for the credentials passed as part of an RPC protocol.

Another interesting use case for Veriform is Certificate Transparency or otherwise "blockchain"-like systems that heavily rely on cryptographic integrity and Merkle proofs.

Veriform's data model is isomorphic with a subset of TJSON, a microformat which extends JSON with richer types. All Veriform documents can be bidirectionally transcoded to/from TJSON with no data loss. Furthermore, TJSON documents can be authenticated with the same Merkleized hashing scheme as Veriform, meaning signatures for one encoding will validate in the other.

Comparison with other serialization formats

The table below compares Veriform to the other formats:

Name Schemas Self-Describing Integers Authentication Standardization
Veriform 💚 💚 vint64 Structured Hashing None
ASN.1 DER 💔 💛 Fixed-Width Canonicalization ITU/IETF
Cap'n Proto 💚 💚 Fixed-Width Canonicalization None
CBOR 💔 💚 Fixed-Width Canonicalization IETF
csexp 💔 💚 Fixed-Width Canonicalization IETF
MessagePack 💔 💚 Fixed-Width None None
Protobuf 💚 💔 LEB128 Canonicalization None
XDR 💚 💔 Fixed-Width None IETF

†NOTE: Coming soon!

Status

Veriform does not yet provide the minimum viable functionality it needs to be useful. The table below covers the current implementation state:

Status Feature Notes
🚧 Message Decoding In progress
Message Encoding Not started
🚧 Structured Hashing In progress
Schemas Not started
🚧 TJSON Transcoding In progress

NOTE: Veriform is a multi-language monorepo: all implementations in all languages within the repo are intended to implement the spec in its current state and share a consistent feature set. The progress above applies equally to all language implementations currently within the repo.

Copyright

Copyright © 2017-2020 Tony Arcieri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].