CryptoSafeSend: A Blockchain-Based Secure Transaction Mediator for Decentralized Finance
Abstract
In decentralized finance (DeFi), accidental cryptocurrency transfers to incorrect wallet addresses are a large usability and security issue, frequently causing permanent loss of funds. We present CryptoSafeSend, a smart contract-based safety protocol for transactions featuring a cryptographically secure passcode verification scheme supporting conditional transfers. This work addresses higher-level security issues by introducing a PBKDF2-based key derivation function, which generates strong encryption keys based on Firebase's Firebase Unique Identifier. Secret passcodes are encrypted in Advanced Encryption Standard operating in Galois/Counter Mode functions deployed underneath the Web Crypto API, and the initialization vector and ciphertext are Base64 encoded for off-chain reliable storage and Firebase Firestore-based messaging. The protocol prevents unauthorized exploitation by safely binding off-chain passcode transmission to a matching on-chain verification, reinforcing user trust without undermining decentralization. Also, to ensure recoverability, CryptoSafeSend integrates a 7-day on-chain escrow lock, after which unclaimed funds become permissionlessly refundable to the sender, preserving decentralization while eliminating reliance on trusted intermediaries. Testing on an Ethereum testnet confirms negligible gas overhead, immunity against double claims, and strong security guarantees, qualifying CryptoSafeSend as a valuable constituent in next-generation secure digital asset protocols.
Community
0 commentsNo discussion yet
Be the first to share a question or observation.