An open API service indexing awesome lists of open source software.

https://github.com/alexisbalayre/enigma

OnlineETH 2023 - Secret NFTs
https://github.com/alexisbalayre/enigma

blockchain nft privacy web3

Last synced: about 2 months ago
JSON representation

OnlineETH 2023 - Secret NFTs

Awesome Lists containing this project

README

          

# Enigma

## Concept of Secret NFTs:
Imagine each NFT as a book. The public side is the cover that everyone sees, but the private content, the pages within, remain exclusive just for you. Imagine the hype that could be generated by collections of secret NFTs, where only the buyers would know the contents: art, photo, video, gif, music, pdf, personal data, …

A public URI, visible in plain text to everyone.
Here is an example of public URI (used for OpenSea for example):
```
{
"description": "",
"external_url": "”,
"image": ”",
"name": "",
"author": "l",
}
```

A private URI, accessible to everyone but encrypted.
Here is an example of private URI:
```
{
"pseudo": "",
"email": "",
"discord": "",
"twitter": "",
"referral_code": "",
"country": "",
"language": "",
"wallet_address": "",
"preferred_currency": "",
"preferred_theme": "",
"preferred_language": "",
"preferred_chain": "",
"accept_cookies": false,
"profile_picture": "",
"beneficiaries": [
{
"wallet_address": "",
"wallet_public_key": "",
}
]
}
```
## Some Use Cases
### Exclusive Digital Collectibles:
Digital art and collectibles have taken the world by storm. Imagine an NFT where the public URI showcases a beautifully rendered artwork, while the private URI unlocks hidden layers, animations, or artist commentaries, accessible only to the owner. Such exclusivity not only adds layers of depth and interaction to the artwork but also elevates its value and appeal in the collector's world.

### Access Control to Events & Content:
Secret NFTs can redefine exclusivity. Envision an NFT serving as a concert ticket: the public URI validates the ticket ownership, displaying basic event details. Meanwhile, the private URI could hide surprises: backstage passes, VIP access, or even special virtual links for online events. This layered approach provides a unique experience for attendees and can be adapted for webinars, exclusive online content, or members-only virtual gatherings.

### Intellectual Property Protection:
For creatives, protecting intellectual property is crucial. Secret NFTs offer a novel solution. The public URI can display the creation or invention's title, providing recognition. Simultaneously, the private URI can encrypt early drafts, original sketches, or prototype details, ensuring that the creative journey remains confidential and protected. This safeguards the creator's rights while allowing them to showcase their achievements.

### Personal Data Vaults:
In a data-driven world, privacy is a pressing concern. Secret NFTs can serve as personal data vaults. While the public URI acts as a generic label, perhaps indicating "Personal Vault", the private URI can store encrypted personal data—preferences, diaries, or even crucial documents. Users get a decentralized, secure space, ensuring that their sensitive data remains under their control and accessible only to them.

## Summary
A DApp that lets someone encrypt a file (art, photo, video, gif, music, pdf, personal data, ..) and store it in a secret NFT. It would then be possible to transfer this NFT to anyone, and only that person would be able to decrypt the private content and view it. All in a secure, user-friendly (both for web2 and web3 users) and decentralised way. The idea, of course, is to include as many solutions as possible from the event's sponsors (for prizes).

## Smart Contracts

### Scroll Sepolia

- **Secret NFT:** [0x4E4692F47B04c027414C371e2f2Cb757F9D4A218](https://sepolia.scrollscan.com/address/0x4E4692F47B04c027414C371e2f2Cb757F9D4A218)
- **Factory:** [0x326abc5ac2d262965a244cf3c36c76bad76cbd49](https://sepolia.scrollscan.com/address/0x326abc5ac2d262965a244cf3c36c76bad76cbd49)
- **Access Manager:** [0x0fa2CB7A48942B127E82C267Da49936b8DA78Ae1](https://sepolia.scrollscan.com/address/0x0fa2CB7A48942B127E82C267Da49936b8DA78Ae1)
- **Bridge:** [0xdb34dfcd80a13a54773b87cbc4437070898d4bc5](https://sepolia.scrollscan.com/address/0xdb34dfcd80a13a54773b87cbc4437070898d4bc5)

### Polygon Mumbai

- **Secret NFT:** [0xf903c66d94adccc6dfa888742c2490a272ebdfb1](https://mumbai.polygonscan.com/address/0xf903c66d94adccc6dfa888742c2490a272ebdfb1)
- **Factory:** [0x326abc5ac2d262965a244cf3c36c76bad76cbd49](https://mumbai.polygonscan.com/address/0x326abc5ac2d262965a244cf3c36c76bad76cbd49)
- **Access Manager:** [0x0fa2cb7a48942b127e82c267da49936b8da78ae1](https://mumbai.polygonscan.com/address/0x0fa2cb7a48942b127e82c267da49936b8da78ae1)
- **Bridge:** [0x755bff58017aa5f62e9f071ca507509eba7a591d](https://mumbai.polygonscan.com/address/0x755bff58017aa5f62e9f071ca507509eba7a591d)

### Scroll Alpha

- **SecretNFT:** `0xe8E618A02773f0a217FCe6FdcBE467Fd9BBE940d`
- **AccessManager:** `0x5777D06998E0b666dE68C1F742656337F05C4181`
- **Factory:** `0xa59F33C2936D0F6535cB8A0d895727eC2D541648`
- **Bridge:** `0xACfD9F38b282cae022Cd71b8Fbaa93B7c419610E`

### Mantle Testnet

- **SecretNFT:** `0xe8E618A02773f0a217FCe6FdcBE467Fd9BBE940d`
- **AccessManager:** `0x5777D06998E0b666dE68C1F742656337F05C4181`
- **Factory:** `0xa59F33C2936D0F6535cB8A0d895727eC2D541648`
- **Bridge:** `0xACfD9F38b282cae022Cd71b8Fbaa93B7c419610E`

### Sepolia

- **SecretNFT:** `0xe8E618A02773f0a217FCe6FdcBE467Fd9BBE940d`
- **AccessManager:** `0x5777D06998E0b666dE68C1F742656337F05C4181`
- **Factory:** `0xa59F33C2936D0F6535cB8A0d895727eC2D541648`
- **Bridge:** `0xACfD9F38b282cae022Cd71b8Fbaa93B7c419610E`

To build:
```
yarn install
```
To deploy contracts:
```
yarn deploy --newtork
```
To Run the front end:
```
yarn start
```

Tech stack:

Encryption/Decryption - Lit
Cross-chain - Hyperlane
deployed chains - scroll, mantle, polygon, sepolia