
Medusa
simple web3 access control using threshold cryptography
Medusa lets you build dapps that unlock private data in a secure way
// Prepare encryptedData and encryptedKey
const buff = new TextEncoder().encode("My secret")
const encryption = await medusa.encrypt(buff, myDapp.contractAddress)
const { encryptedData, encryptedKey } = encryption
const b64EncryptedData = Base64.fromUint8Array(encryptedData)
// Store encryptedData on IPFS / Filecoin / Arweave / AWS S3
storeEncryptedData(b64EncryptedData)
// Control access to data with your smart contract
myDapp.createPrivateData(encryptedKey)