keypo

decentralized encryption and access control

Visit

About

## Wave 1 submission

The design document and product architecture for phase 1 submission can be found in the github link in the application.

## Wave 2 submission

## Updates in this Wave

We completed a proof of concept for integrating Keypo's ACL SDK with the Synapse SDK, allowing user's to upload private data to filecoin onchain cloud and the architecture to enable secure file sharing in waves 3 and 4.

The proof of concept is a CLI tool with all the current Synapse SDK functionality (uploading data, downloading data, depositing FIL/USDFC, listing datasets) plus the ability to encrypt data before uploading and decrypting data after downloading.

This submission is with the end-goal in mind that this will all be bundled into a synapse SDK plugin.

## How It Works

npm run upload -- path-to-file --encrypt: Encrypts file and uploads encrypted file to filecoin onchain cloud. Only the user who uploaded the file is able to decrypt it.

npm run upload path-to-file: Uploads unencrypted file to filecoin onchain cloud.

npm run download file-cid: Downloads file from filecoin onchain cloud and detects if the file is encrypted, and if so, attempts to decrypt the file.

## Core Features

  • A CLI implementation of the Synapse SDK based on this demo: https://github.com/FIL-Builders/fs-upload-dapp.
  • Complete encryption/decryption flow using Lit Protocol v8 SDK (currently in beta) with smart contract access control.
  • Custom smart contract permission registry for fine-grained access control.
  • Automatic NFT minting for file ownership verification.
  • All access control features are gasless transactions via ZeroDev account smart wallet (EIP-7702) integration.

## External Tools Used

- Lit Protocol v8 SDK

- Zerodev smart wallet SDK

## Smart Contract ACL Logic

### Encryption

- Each encrypted file receives a unique identifier that's registered with the permissions registry smart contract. - A dedicated smart contract is deployed to manage access control for that specific file (this demo uses NFT ownership for access control, but any logic that can be implemented as a smart contract will work).

### Decryption

- When a user requests file decryption, the system calls the "checkPermission" function in the permissions registry contract, passing the file identifier and the user's wallet address. - The permissions registry contract locates the appropriate access control contract for that file and calls its checkPermission function to verify authorization.

## Relevant Links

  • Permissions Registry Smart Contract: https://sepolia.basescan.org/address/0x8370eE1a51B5F31cc10E2f4d786Ff20198B10BBE
  • ACL smart contract template: https://sepolia.basescan.org/address/0x35ADB6b999AbcD5C9CdF2262c7190C7b96ABcE4C
  • Github Repo for proof of concept: https://github.com/decentralized-storage/filecoin-alphacohort-phase2
  • Demo video: youtube.com/watch?v=_jRLVyjvzA8&feature=youtu.be

## Wave 3 submission

Building on our Phase 2 foundation, we've expanded our CLI tool's capabilities to provide comprehensive data indexing, sharing, and lifecycle management for files.

Key Achievements:

  • Unified Encryption Architecture

We've streamlined our approach by encrypting ALL data (both public and private) using the Keypo protocol. Public files use permissive access control logic allowing anyone to decrypt, while private files require NFT ownership. This unified approach simplifies indexing and provides consistent security guarantees across all file types. In the future, this architecture will allow users to seamlessly switch data between public and private without touching the data (we are planning to explore this feature beyond Phase 4).

  • Blockchain-Based File Indexing

We deployed a subgraph that indexes events from our Keypo registry smart contract, creating a single source of truth for all file metadata: - Smart Contract: https://sepolia.basescan.org/address/0x8370eE1a51B5F31cc10E2f4d786Ff20198B10BBE - Subgraph: https://thegraph.com/explorer/subgraphs/Bj73BUdgidV5M8NJRe6QdFvhw1LS2ePRaF5PSza34rTa?view=Query&chain=arbitrum-one - API Gateway: Hosted at api.keypo.io with full source code and self-hosting documentation available in the Keypo GitHub repo (https://github.com/decentralized-storage/filecoin-alphacohort-phase2/blob/main/LOCAL_API_SERVER.md)

3. Enhanced File Discovery

- list: View all encrypted files in your wallet with detailed metadata - list --detailed: Access comprehensive file information including upload timestamps, contract addresses, and access permissions - list-public: Discover all publicly accessible files across the entire network, enabling content discovery and collaboration

  • Granular Access Control

Users can now share private files by minting access NFTs to specific wallet addresses. Recipients gain decryption rights without needing to re-encrypt the original data.

  • Secure File Deletion

Our delete functionality revokes on-chain access permissions, making files permanently undecryptable—even public files.

Resources

  • GitHub Repository: https://github.com/decentralized-storage/filecoin-alphacohort-phase2 (yes the repo name has "phase 2" in it but we are using this repo for phase 3, 4 and subsequent updates).
  • Video Demo: https://youtu.be/uUnGAFN5jdA
  • API Documentation: Available in LOCAL_API_SERVER.md for self-hosting

Next Steps

Phase 4 will focus on migrating this CLI functionality into a production-ready Synapse SDK plugin.

## Wave 4 submission

Completed v1 of the SDK, which let's you upload and manage private data on filecoin onchain cloud. SDK uses Synapse as a devdependency. You can load it into your project:

npm i @keypo/synapse-storage-sdk

You can also view the library here: https://www.npmjs.com/package/@keypo/synapse-storage-sdk. It includes example scripts for how to use the SDK.

Github can be found here: https://github.com/decentralized-storage/keypo-sdk-v2

And you can find a demo of how to use the SDK here: https://www.youtube.com/watch?v=ghnQiWqHhP0

Prizes

  • Wave 1 grant · 573.71 USDFC
  • Wave 2 grant · 896.5 USDFC
  • Wave 3 grant · 586.05 USDFC
  • Wave 4 grant · 441.88 USDFC

From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

No public repo linked, so we can't tell.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.