Author

Topic: bound to a particular address (Read 208 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
September 29, 2019, 01:45:19 PM
#5
It's impossible, unless you're on side-chain (which build on top of Bitcoin network) with richer OPCODES or smart contract.
For example, there's only OPCODE which allow you spend Bitcoin after n seconds/blocks or after n seconds/blocks and modulus operation is disabled.

You can check https://en.bitcoin.it/wiki/Script to see what you could with Bitcoin script.
legendary
Activity: 2128
Merit: 1293
There is trouble abrewing
September 28, 2019, 11:53:48 PM
#4
things that you can not do in bitcoin:
* you can't set a range for how many coins others send you. the only thing possible is creating a transaction using SIGHASH_SINGLE | ANYONECANPAY to your address (like a donation thing) and set the fixed amount you want to receive
* you can not set a range of time during which people could send you money! the only thing possible is locking outputs to only be spendable after a certain time
* you can't force where a transaction output can be sent to. as long as the person has the private key they can send the coins anywhere they like.

i am not really sure what you are really trying to achieve but it seems like your only option as it was said is using a middleman with 2of3 multisig because the conditions you are setting can not be translated into any kind of script.
legendary
Activity: 2632
Merit: 1023
September 28, 2019, 11:37:08 PM
#3
AFAIK there's no function to do that atm. You might need to build your own script to do that (and make sure others accept it). It could work but the coding part is not easy.

But, is there any reason why you give coins to Bob? If there's a possibility of him running away with money, you can either sent your funds directly to Alice, or use a multi-sig 2-of-3.

 I need BOB to make an assessment of worth of ALICE services.

Ok, so I will need to have a smart contract that BOB can only tell pre allocated amounts to Alice to shift.

I am quite interested in ALICE having the freedom to move coins after that as then ALICE is incentivised to do their best to earn the coins
legendary
Activity: 2170
Merit: 1789
September 28, 2019, 11:16:55 PM
#2
AFAIK there's no function to do that atm. You might need to build your own script to do that (and make sure others accept it). It could work but the coding part is not easy.

But, is there any reason why you give coins to Bob? If there's a possibility of him running away with money, you can either sent your funds directly to Alice, or use a multi-sig 2-of-3.
legendary
Activity: 2632
Merit: 1023
September 28, 2019, 04:53:56 PM
#1
What I want to do is have

[1] BOB be able to decide how many coins up to a coin_max can be sent to ALICE
and

[2] I want BOB to only be able to send coins to ALICE between specific times.


eg between 10 am and 12.00 pm on xx/yy/zzzz  BOB can choose to send between 0 ~ 10 coins to Alice.



how would i do this?

I feel that ALICE address must somehow be part of a  multisig for the coins so that the coins BOB has must be signed by ALICE so that only where ALICE'S signed address is included can coins be moved.

However I can't quite see how to do this.

Would I need a contract preloaded with tokens and to what address the can goto and BOB can only say yes (go) and AMT, and the contract is pre loaded with all coins for all events?


what i am trying to avoid is BOB running of with the all the coins to some other arbitrary address
Jump to: