unlock-protocol / locked.fyi

A basic notes application where notes are stored on IPFS and only visible by members of a lock
https://locked.fyi/
MIT License
21 stars 7 forks source link

Saving IPFS hashes as part of the lock metadata #8

Closed julien51 closed 4 years ago

julien51 commented 4 years ago

We will store the IPFS hashes in the lock's metadata using the approach implemented there.

We should also let the lock owner delete hashes if needed.

julien51 commented 4 years ago

I have deployed a lock at 0x5B4e0F9B657a194Bb6C092D4951e264237FAEF97 to which I have added a note as visible ona key metadata: https://locksmith.unlock-protocol.com/api/key/0x5b4e0f9b657a194bb6c092d4951e264237faef97/1 :

{"name":"Julien's notes","description":"Notes by Julien on locked.fyi","image":"http://icon-library.com/images/fyi-icon/fyi-icon-19.jpg","notes":["QmRtR5UvG8J3Yc83PgBGT1vQbWWCBphPohiZT9KiXzGNXm"],"attributes":[{"trait_type":"Expiration","value":1581911964,"display_type":"date"}]}
julien51 commented 4 years ago

Actually, there is a better way!