flâneur — a map of the web's best reading

celestiaorg/protobuf3-solidity: Protobuf3 plugin for Solidity

github.com · 594 words · saved by 1 readers

A protobuf3 code generator plugin for Solidity. Decode and encode protobuf messages in your Solidity contract! Leverages the protobuf3-solidity-lib codec library. Serialization rules are stricter than default protobuf3 rules, and are specified in ADR-027. The resulting serialization is bijective (one-to-one), rather than the usual non-deterministic and malleable serialization used in most protobuf parsers. This makes it suitable for canonical serialization in blockchain applications. Use as a protoc plugin: Examples: The below protobuf file shows all supported features of this plugin. Rules to keep in mind: Currently unsupported features: Unsupported features: Requires Go >= 1.14. Build: Test (requires a protoc binary in PATH): Protobuf3 plugin for Solidity

protobuf3-solidity A protobuf3 code generator plugin for Solidity . Decode and encode protobuf messages in your Solidity contract! Leverages the protobuf3-solidity-lib codec library. Serialization rules are stricter than default protobuf3 rules, and are specified in ADR-027 . The resulting serialization is bijective (one-to-one), rather than the usual non-deterministic and malleable serialization used in most protobuf parsers. This makes it suitable for canonical serialization in blockchain applications. Usage Use as a protoc plugin: protoc \ --plugin protoc-gen-sol \ --sol_out [license =< lic

Explore this link on the map →

related reading