Bitcoin Forum
April 25, 2024, 01:08:23 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bound to a particular address  (Read 183 times)
jubalix (OP)
Legendary
*
Offline Offline

Activity: 2618
Merit: 1022


View Profile WWW
September 28, 2019, 09:53:56 PM
Last edit: September 29, 2019, 02:46:38 AM by jubalix
 #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

Admitted Practicing Lawyer::BTC/Crypto Specialist. B.Engineering/B.Laws

https://www.binance.com/?ref=10062065
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714050503
Hero Member
*
Offline Offline

Posts: 1714050503

View Profile Personal Message (Offline)

Ignore
1714050503
Reply with quote  #2

1714050503
Report to moderator
joniboini
Legendary
*
Offline Offline

Activity: 2170
Merit: 1789



View Profile WWW
September 29, 2019, 04:16:55 AM
 #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.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
jubalix (OP)
Legendary
*
Offline Offline

Activity: 2618
Merit: 1022


View Profile WWW
September 29, 2019, 04:37:08 AM
 #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

Admitted Practicing Lawyer::BTC/Crypto Specialist. B.Engineering/B.Laws

https://www.binance.com/?ref=10062065
BrewMaster
Legendary
*
Offline Offline

Activity: 2114
Merit: 1292


There is trouble abrewing


View Profile
September 29, 2019, 04:53:48 AM
 #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.

There is a FOMO brewing...
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!