Bitcoin Forum
March 19, 2024, 02:11:34 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Lock multisig output to a set of addresses  (Read 1406 times)
antonimasso (OP)
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
November 07, 2015, 07:57:38 PM
 #1

Hello,

Is it possible to lock the output addresses of a Multisig address?

Thanks
1710814294
Hero Member
*
Offline Offline

Posts: 1710814294

View Profile Personal Message (Offline)

Ignore
1710814294
Reply with quote  #2

1710814294
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1710814294
Hero Member
*
Offline Offline

Posts: 1710814294

View Profile Personal Message (Offline)

Ignore
1710814294
Reply with quote  #2

1710814294
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3332
Merit: 6433


Just writing some code


View Profile WWW
November 07, 2015, 08:13:20 PM
 #2

What do you mean by locking the output addresses? A transaction be l by default is locked to the output addresses.

antonimasso (OP)
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
November 07, 2015, 08:16:43 PM
 #3

Lock the the payment to a set of addresses. For example address 3jhGu... Can only spend its bitcoins to pay addresses 1huyt... & 1PLo2...
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3332
Merit: 6433


Just writing some code


View Profile WWW
November 07, 2015, 08:18:22 PM
 #4

Lock the the payment to a set of addresses. For example address 3jhGu... Can only spend its bitcoins to pay addresses 1huyt... & 1PLo2...
No, it is not possible to set any address to only be able to send a payment to only a specific set of addresses.

antonimasso (OP)
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
November 07, 2015, 08:32:02 PM
 #5

Ok, thanks.
omarabid
Full Member
***
Offline Offline

Activity: 133
Merit: 100


View Profile
November 08, 2015, 09:36:09 AM
 #6

It's interesting if it is possible though...
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1087


View Profile
November 08, 2015, 04:53:10 PM
 #7

tell what you're trying to do, not how you're  trying to do it

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
luv2drnkbr
Hero Member
*****
Offline Offline

Activity: 793
Merit: 1016



View Profile
November 09, 2015, 02:52:04 PM
 #8

That would be pretty interesting though.  Something like a OP code for having in the redeem script "X% of this input must be spent to this address in output number 0 of the spending transaction, otherwise invalid"

fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 265


View Profile
November 09, 2015, 11:55:12 PM
 #9

A simple version is a script that allows funds to be redeemed by one of two parties, but only if 2 of the 3 participants agree. It could be extended to handle more values, but this demonstrates it well enough.

It's important to note, party1-pubkey and party2-pubkey can't be in the list of pubkeys for the multisig. Otherwise signatures produces by those parties could be pushed again to pass the code in the conditionals.

Code:
2 [3 x pubkeys] 3 OP_CHECKSIG
OP_IF
   OP_DUP OP_HASH160 [party1-pubkey-hash] OP_EQUALVERIFY OP_CHECKSIG
OP_ELSE
   OP_DUP OP_HASH160 [party2-pubkey-hash] OP_EQUALVERIFY OP_CHECKSIG

To release a UTXO on the P2SH address, your scriptSig would be:
Code:
1 [party1-sig] [party1-pubkey] OP_0 [2 x multisig sig] [serializedScript]

To release them to the second address, trigger the second address by pushing a 'false' value like the number '0'.

Bitwasp Developer.
amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
November 10, 2015, 02:55:49 PM
 #10

Lock the the payment to a set of addresses. For example address 3jhGu... Can only spend its bitcoins to pay addresses 1huyt... & 1PLo2...

Why not to create 1-of-2 msig address with pubkeys of your 1huyt... & 1PLo2...
So, this is your goal - only the owners of 1huyt... & 1PLo2... can transfer funds.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3332
Merit: 6433


Just writing some code


View Profile WWW
November 10, 2015, 08:18:09 PM
Last edit: November 10, 2015, 08:39:29 PM by knightdk
 #11

Lock the the payment to a set of addresses. For example address 3jhGu... Can only spend its bitcoins to pay addresses 1huyt... & 1PLo2...

Why not to create 1-of-2 msig address with pubkeys of your 1huyt... & 1PLo2...
So, this is your goal - only the owners of 1huyt... & 1PLo2... can transfer funds.
You misunderstand OP. He wants to be able to only SEND funds to 1huyt... and 1PLo2... The address can only spend TO those addresses and not to anyone else at all. He does not want to spend from those addresses.

amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
November 10, 2015, 08:31:53 PM
 #12

You misunderstand OP. He wants to be able to only SEND funds to 1huyt... and 1PLo2...
The address can only spend TO those addresses, not from those.
No difference.
He wants funds can be transferred only to personA or to personB.
Multisig 1-of-2 solves this.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3332
Merit: 6433


Just writing some code


View Profile WWW
November 10, 2015, 08:41:42 PM
 #13

You misunderstand OP. He wants to be able to only SEND funds to 1huyt... and 1PLo2...
The address can only spend TO those addresses, not from those.
No difference.
He wants funds can be transferred only to personA or to personB.
Multisig 1-of-2 solves this.
No it does not. He wants himself to be able to send the funds to personA or personB. Your idea means that he sends funds to a special address where only personA or personB can go retrieve it (from what I understand). This means that personA could steal funds meant for personB or vice versa. This also does not make a address that can only spend to specific addresses.

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!