Identity-Based Encryption (IBE)
Explore encryption tied to specific identities and conditions.
Identity-Based Encryption (IBE) is a revolutionary cryptographic approach where encryption is tied to a specific identity or condition, such as an email address, block number, or timestamp. This eliminates the need for traditional public key infrastructure and enables time-locked or condition-based encryption.
Current Block
995
Encrypted Message
Identity: "block-1000"
The message can only be decrypted when block 1000 is reached
In IBE, any string can serve as a public key - an email address, a date, a block number, or any identifier. The corresponding private key is generated by a trusted authority only when certain conditions are met. This creates powerful use cases for conditional decryption.
A master authority holds a master secret key. When you want to encrypt data for a specific identity (like 'block 1000'), you use that identity as the public key. The authority can generate the corresponding private key only when that condition is met, allowing decryption at the right time.
// IBE Example
const identity = "block-1000"
// Encrypt data using identity as public key
const encrypted = encryptIBE(data, identity, masterPublicKey)
// Private key can only be generated at block 1000
if (currentBlock >= 1000) {
const privateKey = generateIBEKey(identity, masterSecretKey)
const decrypted = decryptIBE(encrypted, privateKey)
}One powerful application of IBE is time-locked encryption. You can encrypt data that can only be decrypted after a specific time or block height. This is useful for sealed-bid auctions, scheduled reveals, and future-dated messages.
IBE enables sophisticated blockchain features: sealed-bid auctions where bids are encrypted until the auction ends, scheduled token releases, time-locked wills and inheritance, and MEV protection by hiding transaction details until execution.
- IBE ties encryption to identities or conditions, not traditional key pairs
- Any string can serve as a public key in IBE
- Private keys are generated by a trusted authority when conditions are met
- Enables time-locked and condition-based encryption
- Useful for auctions, scheduled reveals, and MEV protection