'How to create a custodial wallet per user on a plateform with Solidity?

I'm new in the blockchain community, and i have to realize a web 3.0 project.

In this project, we have an ERC20, and for each user who sign up on our platform, I have to create a custodial wallet attached to this user.

User A want to be able to send tokens to User B.

I didn't find something concrete on google... so I'm maybe going in the wrong direction.

My question is: Is it possible to do that type of custodial wallet with smart contract in Solidity, and can you explain me how ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source