A comprehensive blockchain-based digital inheritance and emergency planning platform built on Aptos, enabling secure transfer of digital assets, documents, and cryptocurrency to beneficiaries through automated heartbeat monitoring and witness verification.
Heirloom provides a decentralized solution for digital inheritance planning, allowing users to create emergency plans that automatically trigger asset transfers to designated beneficiaries when certain conditions are met (missed heartbeats, witness confirmation, or manual triggers).
Rentsplit/
βββ heirloom-contracts/ # Aptos Move Smart Contracts
β βββ sources/ # Smart contract source code
β βββ Move.toml # Move package configuration
β βββ README.md # Contract documentation
βββ rentsplit-frontend/ # Next.js Frontend Application
β βββ src/ # Source code
β βββ public/ # Static assets
β βββ package.json # Node.js dependencies
β βββ README.md # Frontend documentation
βββ README.md # This file
- Cryptocurrency Wallets: Store recovery phrases and private keys securely
- Important Documents: PDFs, images, legal documents via IPFS
- Passwords & Credentials: Encrypted storage of account information
- Digital Certificates: SSL certificates, API keys, domain ownership
- Personal Notes: Medical information, family messages, instructions
- Multiple Beneficiaries: Support for unlimited beneficiaries with percentage allocation
- Relationship Tracking: Define relationships (spouse, child, friend, etc.)
- Verification Requirements: Optional verification codes for enhanced security
- Emergency Contacts: Backup communication channels
- Customizable Frequency: Set heartbeat intervals (1-365 days)
- Grace Periods: Configurable grace periods before triggering
- Automatic Triggers: Plans activate when heartbeats are missed
- Status Tracking: Real-time monitoring of plan status
- Witness Verification: Trusted parties can confirm triggers
- Manual Triggers: Emergency activation by authorized witnesses
- Multi-signature Support: Enhanced security through witness consensus
- Encryption: End-to-end encryption for sensitive data
- IPFS Integration: Decentralized file storage
- Access Controls: Role-based permissions and authorization
- Audit Trail: Complete transaction and event history
- Node.js 18+ and npm/yarn
- Aptos CLI
- Git
git clone <repository-url>
cd Rentsplitcd heirloom-contracts
aptos init --profile heirloom --network testnet
aptos account fund-with-faucet --profile heirloom
aptos move compile
aptos move publish --profile heirloomcd ../rentsplit-frontend
npm install
npm run devOpen http://localhost:3000 in your browser.
- Connect Wallet: Link your Aptos wallet (Petra recommended)
- Plan Details: Set name, description, and trigger conditions
- Add Beneficiaries: Define beneficiaries with percentage allocations
- Asset Management: Upload documents, store credentials, add crypto assets
- Heartbeat Setup: Configure monitoring frequency and grace periods
- Deploy Plan: Smart contract deployment with all configurations
- Send Heartbeats: Regular check-ins to maintain plan status
- Update Assets: Modify documents, credentials, and allocations
- Monitor Status: Track heartbeat history and plan health
- Emergency Triggers: Manual activation when needed
- Notification: Automatic alerts when plans are triggered
- Verification: Complete any required verification steps
- Asset Access: Secure access to inherited digital assets
- Claim Process: Blockchain-verified inheritance claims
- Aptos Move: Smart contract development
- Aptos Framework: Blockchain infrastructure
- Event System: Real-time notifications
- Resource Management: Secure state management
- Next.js 15: React framework with App Router
- TypeScript: Type-safe development
- Tailwind CSS: Utility-first styling
- Aptos Wallet Adapter: Wallet integration
- React Hooks: State management
- IPFS: Decentralized file storage
- Aptos Testnet: Blockchain network
- Vercel: Frontend deployment
- GitHub: Version control
- Heirloom Module: Emergency plan management
- Asset Manager: Digital asset handling
- Event System: Real-time notifications
create_emergency_plan(): Deploy new inheritance planssend_heartbeat(): Maintain plan activitytrigger_emergency_plan(): Activate inheritanceclaim_inheritance(): Beneficiary asset claims
- EmergencyPlan: Complete plan configuration
- Beneficiary: Heir information and allocations
- Asset: Digital asset metadata and access
- Heartbeat: Activity monitoring records
NEXT_PUBLIC_NETWORK=testnet
NEXT_PUBLIC_CONTRACT_ADDRESS=0x...
NEXT_PUBLIC_IPFS_GATEWAY=https://ipfs.io/ipfs/- Testnet:
0xd839b90e74e58b2f362c047e40cff83771ec39c9e54023c33327dc4bda5bebc5 - Mainnet: Coming soon
cd heirloom-contracts
aptos move testcd rentsplit-frontend
npm test
npm run test:e2e- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
This is experimental software. Use at your own risk. Always:
- Test thoroughly on testnet before mainnet deployment
- Keep private keys secure and backed up
- Verify all transactions before signing
- Use strong encryption for sensitive data
- Documentation: Check the docs/ directory
- Issues: GitHub Issues for bug reports
- Discussions: GitHub Discussions for questions
- Security: Email security@heirloom.example for vulnerabilities
- β Core smart contract development
- β Basic frontend interface
- β Wallet integration
- β Emergency plan creation
- π Enhanced UI/UX
- π Mobile application
- π Advanced encryption
- π Multi-chain support
- π Legal compliance tools
- π Professional integrations
- π Insurance partnerships
- π Enterprise features
Created with β€οΈ for the future of digital inheritance and asset protection.
Note: This is a proof-of-concept implementation. Always consult with legal professionals for inheritance planning and ensure compliance with local regulations.