Ownership
Memory content in MemWal is stored on Walrus and cryptographically owned by a user identified by their private key. When you pass akey to the SDK, it is translated into a Sui wallet address — this address is the owner.
Delegates
A delegate is simply a keypair (private key) that gets translated into a Sui wallet address — just like the owner. The difference is that a delegate’s access is granted by the owner rather than being inherent. This enables two key use cases:- Shared access — users (human or AI agents) can grant other users access to their memories. An agent could share its knowledge base with another agent, or a user could give a service read access to specific data.
- Service delegation — users can delegate privileges to services that act on their behalf, such as paying for transaction fees or storage costs, without handing over ownership.
Access Control Enforcement
The relationship between owners and delegates is enforced on chain by the Sui smart contract system — not by application logic or database permissions.- The owner’s wallet address is the root authority over a MemWal account
- Delegate keys are registered onchain and verified on every request
- The relayer checks delegate authorization against the contract before executing any operation