As explained here, a smart contract is deployed on the blockchain via a transaction, with the following code:
var primaryAddress = eth.accounts[0]
var abi = [{ constant: false, inputs: { name: 'a', type: 'uint256' } }]
var MyContract = eth.contract(abi)
var contract = MyContract.new(arg1, arg2, ..., {from: primaryAddress, data: evmByteCodeFromPreviousSection})
But is it also possible to send it to someone if I know his address wallet? Because he will be the principal user of this smart contract.
Or should the smart contract send a transaction to him with its address once it is mined?
eth.sendTransaction({from:eth.accounts[0],to:eth.accounts[1],value:web3.toWei(1,"ether"),data:web3.toHex(smartcontract.address)})
In this case, can the user can have access to the smart contract since he is not the owner?
Thanks