0xProject / ZEIPs

0x Improvement Proposals
Apache License 2.0
91 stars 15 forks source link

multihash/multiformat message format #10

Closed willwarren89 closed 4 years ago

willwarren89 commented 6 years ago

Summary

Add a layer of abstraction within 0x message format that removes dependence on specific hashing / cryptographic functions.

Motivation

0x protocol v1.0 relies upon use of the keccak256 hashing function and the secp256k1 elliptic curve for ECDSA. Ethereum will soon support new hashing functions (Blake2b) and cryptographic primitives (ed25519, Lamport, EC used in secure hardware enclaves, zk-snarks, threshold signatures, ...) that could allow for interesting new functionality within 0x protocol if supported. Multihash/multiformat support in 0x message format is the first step that we can take towards generalizing and future-proofing 0x protocol.

Specification

...

Rationale

...

Notes

...

whyrusleeping commented 6 years ago

👋 If you guys have any questions about multiformats feel free to let me or anyone on the ipfs team know

recmo commented 6 years ago

@whyrusleeping I noticed that at the moment there is no multiformat for cryptographic signatures. Is this correct?

I'm currently working on generalized signature verification for version 2 (PR). The current implementation is similar to a multiformat, but rather Ethereum specific.

willwarren89 commented 6 years ago

A reference worth looking at: IPFS Multihash for Solidity.

whyrusleeping commented 6 years ago

@Recmo That is correct, there is currently no multiformat for signatures. Its something thats needed as we move towards more interesting peer to peer apps.

cc @lgierth who has most of the context on multiformats research