-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schnorr signatures for privacy and storage improvements #7315
Comments
/cc @aaronc , @clevinson -- this could be very useful for many use cases. |
I mean we have Ed25519, which is ~basically Shnorr signatures restricted to one curve (some differences in how you hash things from the original Shnorr paper, but doesn't affect anything I'd see being used here). Aggregation techniques explicitly for Ed25519 look ~the same as for Shnorr, and have been specified for several years now. All usecases you listed can be done using Ed25519. I don't see the benefit of adding direct Shnorr signatures, unless you explicitly want Shnorr secp256k1 for taproot compatability.
All elliptic curves for use in cryptography are parameterized such that the MOV attack is infeasible. In the case of a pairing based curve, this (well really tower NFS attacks) is the central thing you parameterize security against. |
The idea is to implement the BIP-340 for compatibility with secp256k1 keys AND appropriate aggregation schema. As you noticed, Ed25519 doesn't specify aggregation schema. Many SDK users are using secp256k1. IFAICT, today there is no full support for ed25519 in SDK. |
BTW, it seams that Tendermint is using Ed25519 directly. Does it implement measures against small-cofactor problems?
|
See tendermint/spec#144. We are working on this. |
Note: sr25519 is supported in tendermint's crypto package. And is being used by a sdk based chain. |
Zcash Schnorr construction that enables concurrent signing. Maybe too early for our consideration, but linking anyway https://www.zfnd.org/blog/frost-update/ |
It seams that Bitcoin research is advancing as well. Recently they published MuSig2. MuSig2 doesn't need interaction between the signers any more, which was a common hurdle in MuSig1 discussions. |
What is the status here? There isn't anything blocking this, right? |
#5694/ADR 028 is blocking, but hopefully we can resolve that soon. |
WEN schnorr? 😄 |
when ready :D |
Added Two-Round Threshold Schnorr Signatures with FROST to alternatives |
I haven't seen concrete points made on what this buys us from a user perspective? I can only assume the main benefit is for multi-sigs, but apart from that, what else? |
Updated the description by making it more explicit, added Advantages of advanced Schnorr signatures section. |
Something up your alley and interests @elias-orijtech |
no need to work on this right now. Zondax is working on some cryptography things |
Are there any details about it? Could you share a link? |
We (@zondax) started working on this implementation following these specs https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki , we are also preparing a plan for improving the whole crypto module as well, once we have a draft we will be sharing it so we can all discuss it :) |
I was thinking of usiing Kyber package implementation of schnor algorithm since it is a well known repository from a university, taking a look at the code, seems it satisfies the implementation. Any concerns with this approach? |
Closing this issue since We are putting our efforts on enabling ed25519, working over this issue |
i dont quite follow, why not add schnoor as an alternative here? |
I second @tac0turtle . The goal of using Schnorr is to:
Let's reopen. |
It was an assumption on my side that since ed25519 is an efficient variant of schnorr it wouldn't make sense to implement something less performant. After the discussion we had in the call, I realized that I was not having other aspects in mind as the ones both of you mentioned |
with the account module users are free to design custom accounts with different keys or authorisations |
Summary
Schnorr Signatures is are extremely well researched improve the privacy of users whilst also helping with issues of scaling at the same time.
Currently, Cosmos SDK supports only ECDSA signatures. We started a work for adding
ed25519
. However it's not specified and lacking in depth analysis for batch verification, aggregation and specification for strickness for validation rules intended for consensus-critical contexts (--> tendermint issue for fixing it to provide guaranteess for cross-implementation consensus)Background
Many Bitcoin derived blockchains use ECDSA for digital signatures. Schnorr Signatures algorithm patent was about to expire by the time Bitcoin paper was released. Now Schnorr is coming back to Bitocin with the MuSig update allowing better privacy and efficiency.
Problem Definition
ECDSA has a number of downsides compared to Schnorr signatures:
Advantages of advanced Schnorr signatures
Proposal
Support Schnorr signatures for every use-case:
Schnorr is extremely powerful for the privacy because we can make complex multi-sig transactions and even complex coinjoin transactions look like everyday normal transactions. This makes it difficult for chain analysis companies to analyse the transaction flows. In genera, aggregated signature scheme like Schnorr MuSig allows users to make a multisig output look like a standard user’s single sig output. This is a huge improvement compared to a normal multisig, where the users need to broadcast all of their public keys and signatures (requiring blockchain to validate and store it indefinitely. Instead, with a this proposal, the users do the enforcement themselves by constructing signatures between themselves resulting in a single final signature.
Benefits:
Drawbacks:
How (proposal)
Alternative:
Notes:
Note about BLS
BLS is another elegant solution for private signatures and aggregation. It's more optimal for scenarios where we need to aggregate thousands than signatures (for smaller use-cases Schnorr is faster). The Achilles' heel of BLS is pairing function are complicated, and it can become our foe if we are not careful enough.
There is an attack on elliptic curve crypto systems, called MOV attack (named after Menezes, Okamoto, and Vanstone), that allows to reduce security of the system by using pairing functions.
TL;DR: if not needed, it's safer to use well researched Schnorr Signatures rather than BLS.
For Admin Use
The text was updated successfully, but these errors were encountered: