D
D
drveb12020-08-01 07:41:30
blockchain
drveb1, 2020-08-01 07:41:30

Can an Ethereum contract create wallets on its own?

Hello!
Can an Ethereum contract itself create Ethereum wallets and transfer money to them?

If so, where will the access information for these wallets be stored?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vicky, 2020-08-01
_

An Ethereum contract can create other contracts, but even then it will not own the private key of the new address. If you need a private key as for a regular wallet, then it will not work. But in principle, you can create wallet contracts with configured access and manage funds on such a wallet

F
Format-X22, 2020-09-18
@Format-X22

A wallet is essentially a pair of private and public keys. The fact is that everything inside the contract is visible to the outside, which means that generating a private key on the fly is meaningless, since everyone will know it and anyone will get access to the money.
If you need to generate wallets, do it outside the blockchain. The generated wallets, namely public keys, you can already safely store in the blockchain and transfer money to them, including adding and removing wallets on the fly with admin access to the contract.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question