Tangem Wallet Pack of 2 - Secure Crypto Wallet - Trusted Cold Storage for Bitcoin, Ethereum, NFT's &

Tangem Wallet Pack of 2 - Secure Crypto Wallet - Trusted Cold Storage for Bitcoin, Ethereum, NFT's &
Key item features Ultimate Security: Generates a private key that remains on the card, safeguarding crypto and NFTs from hackers with EAL6+ certification and audited firmware. Versatile Compatibility: Manages over 13,000 tokens across 70+ blockchains, supporting DeFi, NFTs, and DeEx without wires, Bluetooth, or USB. Effortless Operation: Utilizes NFC for secure transactions via a mobile device and the Tangem app, enabling buying and selling crypto with various payment methods. Smart Backup: Features a second Tangem Wallet as a backup, eliminating the need for paper, pictures, or seed phrases for recovery. Durable Design: Boasts IP68 protection against environmental conditions, ensuring longevity and robust physical security. Comprehensive Support: Compatible with Bitcoin, Ethereum, Solana, XRP, USDT, and over 6,000 cryptocurrencies, integrating with dApps and WalletConnect.

LBANK

MULTISIG locking script without certain order of signatures

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:

<manager_pubkey> OP_CHECKSIG
OP_IF
    # If yes, second signature must be an employee's
    OP_SWAP  # [result1, sig2]
    OP_DUP <emp1_pubkey> OP_CHECKSIG OP_SWAP
    OP_DUP <emp2_pubkey> OP_CHECKSIG OP_SWAP
    OP_DUP <emp3_pubkey> 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 <emp1_pubkey> OP_CHECKSIG OP_SWAP
    OP_DUP <emp2_pubkey> OP_CHECKSIG OP_SWAP
    OP_DUP <emp3_pubkey> OP_CHECKSIG
    OP_ADD OP_ADD
    OP_1 OP_GREATERTHANOREQUAL OP_IF
        # If first is an employee's, second must be manager's
        <manager_pubkey> OP_CHECKSIG
    OP_ELSE
        OP_0  # Fail if first sig is neither
    OP_ENDIF
OP_ENDIF


from Recent Questions - Bitcoin Stack Exchange https://ift.tt/PZMvGFY
via IFTTT

Popular posts from this blog

Crypto Exec Warns Tokenization Is Moving Faster Than Expected

Bitcoin Mining Could Be Strengthening The Ruble, Russian Central Bank Says

Nigerian SEC Partners With Police To Tackle Crypto Ponzi Schemes – Details