Research Article
IoT-Based Autonomous Pay-As-You-Go Payment System with the Contract Wallet
Input: user EOA, company EOA, and user signature | Output: none | (1) | Generate a hash (keccak256) of the company EOA | (2) | Decrypt the public key and EOA of the signer from the hash and user signature using ECDSA | (3) | if decrypted EOA = = user EOA then | (4) | Add company EOA to the whitelist | (5) | Emit the event | (6) | else | (7) | Error handling | (8) | end if |
|