• About
  • FAQ
  • Earn Bitcoin while Surfing the net
  • Buy & Sell Crypto on Paxful
Newsletter
Approx Foundation
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
Approx Foundation
No Result
View All Result
Home Bitcoin

transactions – MULTISIG locking script without certain order of signatures

Moussa by Moussa
April 1, 2025
in Bitcoin
0
peer discovery – how to obtain the IP addresses of nodes for mining pools?
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


I need to create and broadcast a MULTISIG transaction to the test network. OP_CHECKMULTISIG is to be used. I need a locking script that requires my public key and 1 of other 3 people’s. The order of the signatures in unlocking script should not matter.

As far as i know OP_CHECKMULTISIG requires order, so I don’t know how to deal with no order situation. Also, how am I even going to check the signature of mine with my public key if its not top of the stack at the beginning. It seems too complex, but if there’s an easier way or a certain scheme I’d gladly take the help.

Also, does this mean that only 2 signature would be given for unlocking script or more than 2 is possible? If so I made one, but it’s not using OP_CHECKMULTISIG and not sure if its valid:

 OP_CHECKSIG
OP_IF
    # If yes, second signature must be an employee's
    OP_SWAP  # [result1, sig2]
    OP_DUP  OP_CHECKSIG OP_SWAP
    OP_DUP  OP_CHECKSIG OP_SWAP
    OP_DUP  OP_CHECKSIG
    OP_ADD OP_ADD
    OP_1 OP_GREATERTHANOREQUAL  # At least 1 employee signed
OP_ELSE
    # If first is not manager's, check if it's an employee's
    OP_SWAP  # [result1, sig2]
    OP_DUP  OP_CHECKSIG OP_SWAP
    OP_DUP  OP_CHECKSIG OP_SWAP
    OP_DUP  OP_CHECKSIG
    OP_ADD OP_ADD
    OP_1 OP_GREATERTHANOREQUAL OP_IF
        # If first is an employee's, second must be manager's
         OP_CHECKSIG
    OP_ELSE
        OP_0  # Fail if first sig is neither
    OP_ENDIF
OP_ENDIF



Source link

Related articles

Zcash’s 19x Rally May Have More Room as Grayscale Eyes Bitcoin Share

Zcash’s 19x Rally May Have More Room as Grayscale Eyes Bitcoin Share

August 29, 2026

Are there documented cases of Lightning Network being used as the payment method in scams?

August 29, 2026
Share76Tweet47

Related Posts

Zcash’s 19x Rally May Have More Room as Grayscale Eyes Bitcoin Share

Zcash’s 19x Rally May Have More Room as Grayscale Eyes Bitcoin Share

by Moussa
August 29, 2026
0

Key TakeawaysZEC has risen roughly 19-fold but remains below 1% of bitcoin’s market cap.Grayscale says privacy could help Zcash capture...

Are there documented cases of Lightning Network being used as the payment method in scams?

by Moussa
August 29, 2026
0

I'm researching whether Lightning Network is used as a payment rail in social engineering crypto scams (giveaways, fake investments, recovery...

Ripple Donates $300K to Support Nepal and Tibet Flood Relief

Ripple Donates $300K to Support Nepal and Tibet Flood Relief

by Moussa
August 29, 2026
0

Key TakeawaysRipple is donating a combined $300,000 to two relief organizations.The funding will support meals, water, and sanitation assistance.More than...

Grayscale Names 3 Cryptos That Could Gain From Surging US Debt

Grayscale Names 3 Cryptos That Could Gain From Surging US Debt

by Moussa
August 29, 2026
0

Key TakeawaysGrayscale says government debt could support three cryptocurrencies.U.S. public debt exceeded $40 trillion for the first time.Treasury buybacks address...

Bitcoin Price Retreats After Warsh’s Hawkish Jackson Hole Keynote

Bitcoin Price Retreats After Warsh’s Hawkish Jackson Hole Keynote

by Moussa
August 29, 2026
0

Key TakeawaysBitcoin fell 2.5% to $77,588 after Kevin Warsh’s hawkish Jackson Hole speech.U.S. spot bitcoin ETFs snapped a 9-day inflow...

Load More

youssufi.com

sephina.com

[vc_row full_width="stretch_row" parallax="content-moving" vc_row_background="" background_repeat="no-repeat" background_position="center center" footer_scheme="dark" css=".vc_custom_1517813231908{padding-top: 60px !important;padding-bottom: 30px !important;background-color: #191818 !important;background-position: center;background-repeat: no-repeat !important;background-size: cover !important;}" footer_widget_title_color="#fcbf46" footer_button_bg="#fcb11e"][vc_column width="1/4"]

We bring you the latest in Crypto News

[/vc_column][vc_column width="1/4"][vc_wp_categories]
[/vc_column][vc_column width="1/4"][vc_wp_tagcloud taxonomy="post_tag"][/vc_column][vc_column width="1/4"]

Newsletter

[vc_raw_html]JTNDcCUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIydG5wJTIwdG5wLXN1YnNjcmlwdGlvbiUyMiUzRSUwQSUzQ2Zvcm0lMjBtZXRob2QlM0QlMjJwb3N0JTIyJTIwYWN0aW9uJTNEJTIyaHR0cHMlM0ElMkYlMkZhcHByb3gub3JnJTJGJTNGbmElM0RzJTIyJTNFJTBBJTBBJTNDaW5wdXQlMjB0eXBlJTNEJTIyaGlkZGVuJTIyJTIwbmFtZSUzRCUyMm5sYW5nJTIyJTIwdmFsdWUlM0QlMjIlMjIlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1maXJzdG5hbWUlMjIlM0UlM0NsYWJlbCUyMGZvciUzRCUyMnRucC0xJTIyJTNFRmlyc3QlMjBuYW1lJTIwb3IlMjBmdWxsJTIwbmFtZSUzQyUyRmxhYmVsJTNFJTBBJTNDaW5wdXQlMjBjbGFzcyUzRCUyMnRucC1uYW1lJTIyJTIwdHlwZSUzRCUyMnRleHQlMjIlMjBuYW1lJTNEJTIybm4lMjIlMjBpZCUzRCUyMnRucC0xJTIyJTIwdmFsdWUlM0QlMjIlMjIlM0UlM0MlMkZkaXYlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1lbWFpbCUyMiUzRSUzQ2xhYmVsJTIwZm9yJTNEJTIydG5wLTIlMjIlM0VFbWFpbCUzQyUyRmxhYmVsJTNFJTBBJTNDaW5wdXQlMjBjbGFzcyUzRCUyMnRucC1lbWFpbCUyMiUyMHR5cGUlM0QlMjJlbWFpbCUyMiUyMG5hbWUlM0QlMjJuZSUyMiUyMGlkJTNEJTIydG5wLTIlMjIlMjB2YWx1ZSUzRCUyMiUyMiUyMHJlcXVpcmVkJTNFJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJ0bnAtZmllbGQlMjB0bnAtcHJpdmFjeS1maWVsZCUyMiUzRSUzQ2xhYmVsJTNFJTNDaW5wdXQlMjB0eXBlJTNEJTIyY2hlY2tib3glMjIlMjBuYW1lJTNEJTIybnklMjIlMjByZXF1aXJlZCUyMGNsYXNzJTNEJTIydG5wLXByaXZhY3klMjIlM0UlQzIlQTBCeSUyMGNvbnRpbnVpbmclMkMlMjB5b3UlMjBhY2NlcHQlMjB0aGUlMjBwcml2YWN5JTIwcG9saWN5JTNDJTJGbGFiZWwlM0UlM0MlMkZkaXYlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1idXR0b24lMjIlM0UlM0NpbnB1dCUyMGNsYXNzJTNEJTIydG5wLXN1Ym1pdCUyMiUyMHR5cGUlM0QlMjJzdWJtaXQlMjIlMjB2YWx1ZSUzRCUyMlN1YnNjcmliZSUyMiUyMCUzRSUwQSUzQyUyRmRpdiUzRSUwQSUzQyUyRmZvcm0lM0UlMEElM0MlMkZkaXYlM0UlM0NiciUyRiUzRSUzQyUyRnAlM0U=[/vc_raw_html][/vc_column][/vc_row]
No Result
View All Result
  • Contact Us
  • Homepages
  • Business
  • Guide

© 2024 APPROX FOUNDATION - The Crypto Currency News