Table of contents
Open Table of contents
What it is
Sometimes it’s necessary to get data signed by a third party so that the signed data can be used in another context.
The simplest way to achieve this is to send over the data to the third party such that it gets signed. This however breaks privacy as the signer has access to the plaintext message.
Is there a way to mask the data so that it can still be signed by a third party without it knowing what gets signed?
As it turns out, this is possible via a primitive called “Blind Signature”.
How it works
The following Blind Signature is based on BLS Signatures. It’s therefore useful to have a basic understanding of Elliptic Curve Pairings and BLS Signatures before reading on.
We’ll be working with an Elliptic Curve that is of order and has a generator . All calculations are done if not stated otherwise.
There’s also a hash function as well as an Elliptic Curve Pairing:
Here, is the pairing that maps two Elliptic Curve points and to an element in a finite field .
As a quick reminder, a BLS Signature is created by hashing the message and interpreting the result as a point on the Elliptic Curve. Once done, the signature is created by multiplying the hashed message with the private key :
In the following example Alice wants to get a signature on her message from Bob without Bob knowing what the content of her message is.
The first step is for Bob to generate his private key that will later be used by him to generate a signature for Alice’s masked messaged. The private key is chosen by sampling a random value from :
Bob then derives his public key by multiplying the private key with the generator :
The public key can then be shared with Alice.
Next up, Alice generates a “nonce” (number used once) by randomly sampling an element from :
She’ll then derive the nonce’s public key by multiplying with the generator :
The tuple can be interpreted as an ephemeral key pair.
Once done, she hashes the message she wants to get signed by Bob using the hash function . She also adds to the hashed value which results in the masked message :
The masked message is sent to Bob for signing.
Bob creates an “almost signature” by multiplying with his private key which he then sends back to Alice.
Alice can recover the real signature by computing:
This signature can be verified using the BLS Signature verification check:
Why it works
Evaluating the expression we can see that the result is a valid BLS Signature:
Furthermore, thanks to the nonce Alice is using to mask the message and the fact that is sampled randomly, Bob can’t distinguish the masked message from random noise which protects the original message from being seen in the clear.