<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Oladimeji Omotosho on Medium]]></title>
        <description><![CDATA[Stories by Oladimeji Omotosho on Medium]]></description>
        <link>https://medium.com/@toshmanuel?source=rss-e7242136d0f0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*W9fvXbxkNvGgcyFD</url>
            <title>Stories by Oladimeji Omotosho on Medium</title>
            <link>https://medium.com/@toshmanuel?source=rss-e7242136d0f0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:13:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@toshmanuel/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Creating a 2-of-3 multisig address using bitcoin-cli]]></title>
            <link>https://medium.com/@toshmanuel/creating-a-2-of-3-multisig-address-using-bitcoin-cli-6b9f2eb7135c?source=rss-e7242136d0f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b9f2eb7135c</guid>
            <category><![CDATA[btc]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[lightning-network]]></category>
            <dc:creator><![CDATA[Oladimeji Omotosho]]></dc:creator>
            <pubDate>Wed, 29 Jun 2022 10:53:49 GMT</pubDate>
            <atom:updated>2022-06-29T10:53:49.358Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGElibzwzjvaO_5I60xg9g.jpeg" /></figure><p>To set up a multisig wallet, you need to have a running node of Bitcoin Core on your device. For the sake of this tutorial, I would be using a regtest.</p><p>Start your bitcoin core using the following command</p><pre>bitcoind -regtest -daemon</pre><p>You can now create a wallet using the following command</p><pre>bitcoin-cli -regtest createwallet “multisig_wallet”</pre><p>Generate three different addresses that would be used to create the multisig address.</p><pre>address_1=$(bitcoin-cli -regtest getnewaddress)</pre><pre>address_2=$(bitcoin-cli -regtest getnewaddress)</pre><pre>address_3=$(bitcoin-cli -regtest getnewaddress)</pre><p>Get the address information to extract the public keys of the addresses because this is what would be used to create the multisig address as the addresses generated are just hashes of the public keys.</p><pre>bitcoin-cli -regtest -named getaddressinfo address=$address_x</pre><p>Create a 2-of-3 multisig address with public keys seen above</p><p>copy the redeem_script as it would be needed when creating and signing a transaction.</p><pre>bitcoin-cli -regtest -named createmultisig nrequired=2 \</pre><pre>keys=”[\”pub_key_1\”,\”pub_key_2\”, \”pub_key_3\”]”</pre><p>Fund the address that has just been generated.</p><pre>bitcoin-cli -regtest -named sendtoaddress address=”multi_sig_address_generated” amount=1 fee_rate=1</pre><blockquote>We need to find our funds. If we type the following command bitcoin-cli -regtest -named getreceivedbyaddress address=multi_sig_address_generated, it will generate an error — Address not found in wallet, and this is because our wallet does not recognize the address yet. So, we need to notify bitcoind with the following command.</blockquote><pre>bitcoin-cli -regtest -named importaddress address=multi_sig_address_generated</pre><p>We can check if everything is working properly by checking the received bitcoin by address.</p><pre>bitcoin-cli -regtest -named getreceivedbyaddress address=multi_sig_address_generated</pre><p>Now, I suppose all is working to this point. Let’s try to get all the information that would be needed for our creating our transaction. To do this, we need to watch out for the txid, vout, amount, hex, and scriptPubKey provided by the command below.</p><pre>bitcoin-cli -regtest -named listunspent addresses=”[\”multi_sig_address_generated\”]”</pre><p>It is time to create our transaction.</p><pre>raw_transaction_hex=$(bitcoin-cli -regtest -named createrawtransaction inputs=’’’[{ “txid”: “‘$txid’”, “vout”: ‘$vout’, “scriptPubKey”:”’$script_pubkey’”, “redeemScript”: “‘$redeem_script’”, “amount”: ‘$amount’}]’’’ outputs=’’’{ “‘$recipient’”: 0.5}’’’)</pre><blockquote>The recipient is the address that wants to receive the funds. We can specify multiple addresses here, including a change address.</blockquote><p>Once the transaction is created successfully, we can now sign the transaction with two of the three private keys we have. To do this, we first need to get the private keys of the addresses generated earlier so we can sign the transaction with them.</p><pre>bitcoin-cli -regtest -named dumpprivkey address=$address_1</pre><p>We can now use the private key generated to sign this transaction.</p><pre>bitcoin-cli -regtest -named signrawtransactionwithkey hexstring=$raw_transaction_hex privkeys=’[“private_key_generated”]’</pre><p>After, we can send this command output to another signer to sign the transaction with their private keys.</p><blockquote>For the next transaction, the hexstring would be the hex generated from the first transaction signed by the first signer.</blockquote><pre>bitcoin-cli -regtest -named dumpprivkey address=$address_2</pre><pre>bitcoin-cli -regtest -named signrawtransactionwithkey hexstring=$new_raw_transaction_hex prevtxs=’’’[ { “txid”: “‘$utxo_txid’”, “vout”: ‘$utxo_vout’, “scriptPubKey”: “‘$utxo_script_pubkey’”, “redeemScript”: “‘$redeem_script’”, “amount” : ‘$amount’ } ]’’’ privkeys=’[“private_key__2generated”]’</pre><p>Finally, we can send the transaction.</p><pre>bitcoin-cli -regtest -named sendrawtransaction hexstring=$second_signed_trans_hex</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b9f2eb7135c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A dive into Multisig Addresses]]></title>
            <link>https://medium.com/coinmonks/a-dive-into-multisig-addresses-6dc9cba9ef34?source=rss-e7242136d0f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dc9cba9ef34</guid>
            <category><![CDATA[btc]]></category>
            <category><![CDATA[multisig]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[bitcoin-lightning]]></category>
            <category><![CDATA[finanace]]></category>
            <dc:creator><![CDATA[Oladimeji Omotosho]]></dc:creator>
            <pubDate>Sun, 26 Jun 2022 09:37:36 GMT</pubDate>
            <atom:updated>2022-06-27T10:26:38.155Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ABRmZKv6clC4LeWG1FMV2w.jpeg" /></figure><h3>Introduction</h3><p>Multi-signature addresses in simple term are addresses that requires more than one cryptographic key to spend from those addresses. The concept of multi-signature has been utilized in numerous ideologies, ethnicities, races, and/or enterprises for thousands of years. Multi-signature, as an example, has been utilized to protect the safety of crypts housing the most expensive relics of saints. A monastery’s superior would only give monks 1/2 the keys to special relics. As a result, no single monk could get access to and seize the relics.</p><p>The term “key person risk” in conventional business refers to when a company depends too heavily on one individual to thrive. When handling funds, many firms aside cryptocurrency firms are prone to this risk. Fortunately, multisignature Bitcoin addresses provides a mechanism for managing this kind of risk by not placing the sole responsibility of managing funds to the hands of an individual.</p><h3>What are multisig addresses?</h3><p>Multi-signature addresses are a kind of Bitcoin address that permits you to regulate funds as a group. This happens once you require two or more persons, along with your cryptographic signatures, to release the funds that are contained within them. A transaction is formed and signed once you wish to send money from your wallet. By digitally signing the transaction, you’re claiming ownership of the funds therein wallet. To sign a transaction, single signature (AKA “basic”) Bitcoin wallets require just one signature.</p><p>Multisig is an abbreviation for multi-signature, and as the name implies, this kind of wallet requires one or more signatures to sign a transaction. A multisig wallet is one that’s shared by two or more copayers. The amount of signatures necessary to sign a transaction are going to be less than or same as the amount of copayers, which this depends on the type of wallet. As an example, a 2-of-2 multisig wallet that’s shared between two copayers would force two signatures to sign a transaction. And in a 2-of-3 multisig wallet that’s shared among three copayers, at least two of the three keys from the copayers would be required to sign a transaction.</p><h3>Genesis of multisig addresses</h3><p>There are three core addresses format in Bitcoin: P2PKH, P2SH, and bech32. The P2SH is regarded as the originator of multisig addresses. Gavin Andresen proposed the P2SH addresses. They may also be used as multi-signature addresses, among other things. The concept was introduced in March 2012 via the BIP16. P2SH addresses were added to Bitcoin a month after BIP16 was published, in April 2012.</p><p>Before then, bitcoin P2SH were not in use but this does not imply that it was impossible to generate multi-signature addresses prior to the introduction of P2SH addresses. It was doable, but it had to be done extremely simply, and there was no conventional, accepted procedure.</p><p>For the first time in history, a transaction was received at a multi-signature address in block 170052 (March 7, 2012).<a href="https://mempool.space/address/342ftSRCvFHfCeFFBuz4xwbeqnDw6BGUey"> 342ftSRCvFHfCeFFBuz4xwbeqnDw6BGUey</a>. However, the transaction was created without adhering to the BIP16 standard, but it did adhere to the BIP13 standard (beginning with “3”).</p><h3>How does a multisig address work?</h3><p>Let’s imagine we have a vault that requires more than one key to open and spend the funds in it. This is a simple illustration of how multisig addresses work. In the case of multisig addresses, you can decide the numbers of keys that are required to open the vault (spend funds). For example, there could be a 2-of-3 multisig, where the two keys are always required to spend the funds in the address. We could also have an n-of-m multisig address, where n keys out of m are required to sign a transaction before funds can be spent at the address. Examples include a 2-of-2, 2-of-3, 3-of-5, 5-of-7, etc.</p><p>How do they work then? Using a 2-of-3 multisig for instance, which is set up with Bob, Alice, and Carol keys. Two of the three parties would be required to send a transaction. To make a payment, Bob can create a transaction and sign it with his key. This is called a transaction request. He can then send this transaction to either Alice or Carol for either of them to sign with their keys. Once signed, either of them sends the signed transaction back to Bob to finalize the transaction.</p><h3>Why use a multisig address?</h3><p>The funds and transactions in the wallet are visible to all copayers. To transfer funds from the wallet, one or more copayers must sign a transaction. This function increases the safety of your fund.</p><p>In the event of a medical emergency that makes you incapacitated, your loved ones will be unable to access cash that may be required in such circumstances. Additionally, millions of dollars in bitcoin have been lost as a result of people failing to plan for the worst-case situation. A multisig wallet could guarantees that your funds may be accessed even if you are not present or available, although this depends (it might seem impossible in a 2-of-2 multisig wallet.</p><p>We can also use multisig addresses for crowdfunding where the projects need finance to start. In this case, the multisig address can be used in escrow services which the service holds one of the keys, and the project holds the last key in a 2-of-2 multisig. When the project initiates a transaction, the service can provide the second key if the project meets certain requirements and/or milestones. Here, there would be a check and balance, and everyone that contributed to the course of the project can monitor the project progress.</p><h3>Conclusion</h3><p>We live in a world where trust has become a fallacy, and everyone is always looking for a way to provide a trust system for their own benefit. People would rather not do business together because of the fear of one of the partners disappearing with the business gain, and couples prefer to have separate accounts to manage their funds because of scrupulous spouses. This does not mean that multisig addresses totally solve this problem, but it helps to mitigate some of these problems by bringing transparency and better management of funds between different parties that may or may not trust each other.</p><p>In my next post, I will be discussing how to create multisig addresses using bitcoin-cli</p><h3>References</h3><ol><li><a href="https://en.bitcoin.it/wiki/Multi-signature">https://en.bitcoin.it/wiki/Multi-signature#:~:text=Multi%2Dsignature%20(multisig)%20refers,of%20bitcoins%20among%20multiple%20people.</a></li><li><a href="https://www.quora.com/How-does-a-multisig-wallet-work">https://www.quora.com/How-does-a-multisig-wallet-work</a></li><li><a href="https://www.bitcoin.com/get-started/shared-multisig-bitcoin-wallet/">https://www.bitcoin.com/get-started/shared-multisig-bitcoin-wallet/</a></li></ol><blockquote>Join Coinmonks<a href="https://t.me/coincodecap"> Telegram Channel</a> and<a href="https://www.youtube.com/c/coinmonks/videos"> Youtube Channel</a> learn about crypto trading and investing</blockquote><h3>Also, Read</h3><ul><li><a href="https://coincodecap.com/uphold-card-review">Uphold Card Review</a> |<a href="https://coincodecap.com/trust-wallet-vs-metamask"> Trust Wallet vs MetaMask</a></li><li><a href="https://coincodecap.com/exness-review">Exness Review</a> |<a href="https://coincodecap.com/bingbon-vs-bitget-vs-moonxbt"> MoonXBT Vs Bitget Vs Bingbon</a></li><li><a href="https://coincodecap.com/passive-income-crypto-lending">How to Start Earning Passive Income With Crypto Lending</a></li><li><a href="https://medium.com/coinmonks/bigone-exchange-review-64705d85a1d4">BigONE Exchange Review</a> |<a href="https://coincodecap.com/grid-trading"> Grid Trading Bot</a></li><li><a href="https://coincodecap.com/anny-trade-review">Anny Trade Review</a> |<a href="https://coincodecap.com/coinspot-review"> CoinSpot Review</a></li><li><a href="https://coincodecap.com/crypto-exchange-in-singapore">10 Best Crypto Exchange in Singapore</a> |<a href="https://coincodecap.com/buy-axs-token"> Buy AXS</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dc9cba9ef34" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/a-dive-into-multisig-addresses-6dc9cba9ef34">A dive into Multisig Addresses</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>