SafeTrust is a decentralized platform designed to revolutionize P2P transactions, providing secure deposits and payments powered by blockchain and trustless technologies. πβ¨ Experience transparency and reliability in every cryptocurrency transaction. πΈπ
π Trustless Technology: Secure and block deposits without intermediaries.
πΎ Blockchain-Powered Transparency: Immutable, auditable, and verifiable transactions.
π± Crypto-Payment Support: Manage cryptocurrency payments safely and efficiently.
β
Automated Refunds: Streamlined processes ensure refunds and payment releases happen automatically.
π οΈ Trustless Escrow:
Funds are securely held in blockchain-based escrow accounts until all terms are met.
π Blockchain Transparency:
Every transaction is logged on the blockchain for full visibility and accountability. π
π° Crypto Payments:
Supports irreversible and secure cryptocurrency payments while reducing risks of fraud or disputes.
π Trustline Process:
Verified trustlines between parties add an extra layer of transaction security. π
π€ Automated Refund System:
Ensures funds are automatically released based on the terms of the agreement, with no manual intervention required.
- Create Escrow: The renter creates a secure escrow account. ποΈ
- Fund Escrow: The deposit is funded by the renter. π΅
- Rental Agreement: Terms are agreed upon and stored on the blockchain. π
- Completion or Cancellation: Funds are released based on contract outcomes. π―
- Install Docker and Docker Compose
- Download the Hasura global binary. See steps here
- Run
docker compose up -d
- Connect with database. For this run
hasura console
and follow this guide
Connect using an environment variable and just type PG_DATABASE_URL
Name your database as safetrust
(instead of default) when prompted to do so.
Now, run the migrations.
hasura migrate apply --admin-secret myadminsecretkey
- Adding migrations.
You can add migrations either with the hasura console or by the command:
hasura migrate create [enable_postgis] --admin-secret myadminsecretkey
where enable_postgis
is the name of the migration. Please make sure to use descriptive names with verbs about what the migration is doing!
Then to apply them:
hasura migrate apply --admin-secret myadminsecretkey
If you wanna use the hasura web console and access it on http://localhost:9695/
:
hasura console --admin-secret myadminsecretkey
And you should be good to go to start and work on this.
Error Running Docker Compose
Rosetta error: Rosetta is only intended to run on Apple Silicon with a macOS host using Virtualization.framework with Rosetta mode enabled
- Run
docker compose up -d
. - If the Backend postgres-1 module can't start and shows the error above:
- This is due to an issue with Rosetta settings on Apple Silicon devices.
- β
Solution:
- Go to Docker Settings and disable the:
Use Rosetta for x86_64/amd64 emulation on Apple Silicon
selection button. - π Restart Docker.
- π It should now run great!
- Go to Docker Settings and disable the: