Background

ODIS currently provides a rate-limited PRF service with the primary use case of supporting rate-limited discovery of Celo addresses from a user's phone number. In order to support secure password hardening and future use cases, granular rate limits are invaluable. Applying rate limits on a per-user basis (e.g. restricting the number of guesses on a user's password to a constant number) ODIS's OPRF scheme must be extended to support domain separation between users in a way that that is visible to the service to inform rate limiting rules. In ia.cr/2018/733, a construction that satisfies this need is described as a partially oblivious pseudo-random function (POPRF)

ODIS currently exists as a decentralized verifiable OPRF service based on blind threshold BLS signatures. Building upon this foundation, we aim to create a decentralized and verifiable POPRF service. Doing so enables users to apply the core primitive of ODIS, a rate limited PRF service, to new applications with the same trust assumptions rooted in the collective honesty of the ODIS operators.

Phone Number Privacy

Password Hashing with the current ODIS OPRF

Because the requests to ODIS are encoded as blinded curve points, the service is able to support requests for passphrase hashing without modification. (In fact, it is impossible for the service to distinguish a phone number hashing request from a passphrase hashing request)

At the client layer, a function function could be created to assemble and send an ODIS requests with a passphrase hashing specific prefix, such as pbkdf:, to replace the phone number prefix tel:.

Required passphrase entropy

The challenge with this approach is that ODIS can only currently support a "global" rate limit, which would apply to all requests of any type, against any secret (e.g. phone number or passphrase). As a result, the passphrase will need a minimum amount of entropy to be secure in this approach.

As an estimated lower bound, each ODIS query costs 0.00001 CELO, based on the cost of sending a native transfer paid in CELO. As a result, the required entropy to generate a sufficient expected cost is at least 26-bits, which is estimated to require 640 CELO and 50 hours to exhaustively search. This would correspond to the user selecting uniformly at random from a list of 67 million possible passphrases.

Unfortunately, naive application of entropy estimates to passphrases is not an appropriate way to gauge passphrase strength. As discussed in "On the Economics of Offline Password Cracking", it is likely that passphrases follow a Zipf's law distribution, rather than a uniform distribution. Some passphrases (e.g. p@ssw0rd) are used far more commonly than others, and an attacker will be able to guess the most common passphrases first, leaving vulnerable the accounts of users with weak passphrases, even if users with stronger passphrases remain unharmed. Application of password filtering, as recommend by NIST 800-63 can help reduce the number of users with weak passwords, but cannot guarantee the chosen password is resistant to attack.

Another option on this front is to generate the secret for the user. A 40-bit (est. 10M CELO to break) secret can be, for example, be encoded as 12 digits. It's also possible to use 3 BIP39 words, which is 32-bits of entropy (est. 40k CELO to break). Our initial discussion of this problem has mostly ruled out generated passphrases.

Related projects

Drand is an excellent example of a randomness beacon running in production which uses similar threshold cryptography. Many security concerns are shared between drand and ODIS.

Security model

Interface design

Check out CIP-40 for more information about the ODIS interface proposed for this application.

celo-proposals/cip-0040.md at master · celo-org/celo-proposals

Rate Limiting

Rate limiting is enforced by the ODIS operators, but the rate limiting parameters will be specified by clients. These rate limiting parameters will be included in the tag input to the POPRF function, making them “cryptographically bound” to the output (i.e. changing the parameters will change the output and provide no information about the output under the original set of parameters).

The ODIS API and rate limiting structure are defined in CIP-40 and related extension CIPs.