• 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

Solana Lawsuit Shifts the Spotlight Back to Ethereum: Up Next $5,000?

STRK Holders Weigh Starknet’s Post-Quantum Future

October 15, 2026
Bitcoin’s Volatility Has Fallen To S&P 500 Ranks: Grayscale

Bitcoin’s Volatility Has Fallen To S&P 500 Ranks: Grayscale

October 15, 2026
Share76Tweet47

Related Posts

Solana Lawsuit Shifts the Spotlight Back to Ethereum: Up Next $5,000?

STRK Holders Weigh Starknet’s Post-Quantum Future

by Moussa
October 15, 2026
0

Starknet asked STRK holders, through a community pool, whether the network should explore becoming an independent post-quantum Layer 1 (L1);...

Bitcoin’s Volatility Has Fallen To S&P 500 Ranks: Grayscale

Bitcoin’s Volatility Has Fallen To S&P 500 Ranks: Grayscale

by Moussa
October 15, 2026
0

Stocks and shares are a safer bet than buying bitcoin? Not so fast.  According to research from crypto asset manager...

Solana’s Alpenglow Upgrade Arrives Oct. 21 With a Major Speed Boost – Bitcoin News

Solana’s Alpenglow Upgrade Arrives Oct. 21 With a Major Speed Boost – Bitcoin News

by Moussa
October 15, 2026
0

Key TakeawaysSolana’s biggest consensus overhaul is set for Oct. 21, with Alpenglow promising to cut transaction finality from 12.8 seconds...

How can I repair corrupted undo data (rev*.dat checksum mismatch) without a full reindex?

by Moussa
October 15, 2026
0

My node is synced and validating new blocks normally, but a few old blocks can't be read back. getblockstats fails...

Ten Validators Put KR1’s Ethereum Staking Plan Into Practice

Ten Validators Put KR1’s Ethereum Staking Plan Into Practice

by Moussa
October 15, 2026
0

The latest Ethereum news comes from London, where KR1 launched 10 dedicated Ethereum validators on 15 October 2026. The move...

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