Comments (3)
https://app.diagrams.net/#G1ZNDLPwCfZSW7Af_RpVIc5ry6ediC1z5e
from cryptone.
問題点:
IPFS上の暗号化された楽曲データとコントラクト上のトークンが、お互いに保存先の情報を持つ必要がある。
- Lit Protocolで指定するアクセス条件に、コントラクト上のトークンIDが必要
- コントラクト上のトークンには、楽曲データのCIDを含むメタデータのuriが必要
そのため現状では、まずメタデータのuriを含まずにmint(?)してトークンIDを取得、トークンIDを利用して暗号化しIPFSに保存、最後にメタデータのuriをコントラクト側に保存するようにしている。
ただ、この方法はトランザクションが2回発生してしまう。
その他の方法検討:
- トークンのlengthから事前にトークンIDを割り出す案。この方法ではlengthの取得からトークンの投稿までに、他のトークンが投稿された場合に不整合が発生すると考えられる。
- ProfileNFTを想定すると、楽曲IDについては自分だけが投稿できるリストとなるため不整合は発生しない。一方で、ProfileNFT自体のIDについて不整合が発生する可能性がある。楽曲の投稿より前にProfileNFTを生成する手順を挟むのはどうか?
from cryptone.
手順
- zipAndEncryptFiles('rowAudio.mp3') -> { encryptedAudioFile, symmetricKey }
- uploadIPFS(encryptedAudioFile) -> CID
- createNFT(NFTMetadata, CID) -> { contractAddress, tokenId }
- accessControlConditions := { contractAddress, tokenId }
- saveEncryptionKey(accessControlConditions, symmetricKey)
from cryptone.
Related Issues (20)
- design the inherit NFT generation page
- decorate the altar with music jackets HOT 1
- play music at the altar
- study Lens Protocol
- study Lens Protocol
- share the altar
- implement GUI of minting
- implement metamask login
- design web ui
- design api endpoints
- design data model (ER Diagram) HOT 1
- design web url HOT 1
- use next/link for a tag (no-html-link-for-pages)
- implement function to post data to IPFS
- problem with gltf loading 404
- play music at the NFT list page
- prepare staging postgres
- implement profile page
- Create new Audio-NFT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cryptone.