<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Python on Decentralized meta-learning</title>
    <link>https://blog.costan.ro/tags/python/</link>
    <description>Recent content in Python on Decentralized meta-learning</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 15 Jun 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.costan.ro/tags/python/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Schnorr and taproot by hand</title>
      <link>https://blog.costan.ro/post/taproot-by-hand/</link>
      <pubDate>Wed, 15 Jun 2022 00:00:00 +0000</pubDate>
      <guid>https://blog.costan.ro/post/taproot-by-hand/</guid>
      <description>&lt;div id=&#34;outline-container-headline-1&#34; class=&#34;outline-2&#34;&gt;&#xA;&lt;h2 id=&#34;headline-1&#34;&gt;&#xA;References&#xA;&lt;/h2&gt;&#xA;&lt;div id=&#34;outline-text-headline-1&#34; class=&#34;outline-text-2&#34;&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.youtube.com/watch?v=YSUVRj8iznU&amp;amp;list=WL&amp;amp;index=69&amp;amp;t=25s&#34;&gt;https://www.youtube.com/watch?v=YSUVRj8iznU&amp;amp;list=WL&amp;amp;index=69&amp;amp;t=25s&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://aboutbitcoin.io/bitcoin-taproot-explained/&#34;&gt;https://aboutbitcoin.io/bitcoin-taproot-explained/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://bitcoinmagazine.com/technical/taproot-coming-what-it-and-how-it-will-benefit-bitcoin&#34;&gt;https://bitcoinmagazine.com/technical/taproot-coming-what-it-and-how-it-will-benefit-bitcoin&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://bitcoinops.org/en/preparing-for-taproot/&#34;&gt;https://bitcoinops.org/en/preparing-for-taproot/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://bitcoinops.org/en/schorr-taproot-workshop/&#34;&gt;https://bitcoinops.org/en/schorr-taproot-workshop/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://reyify.com/blog/the-soundness-of-musig&#34;&gt;https://reyify.com/blog/the-soundness-of-musig&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://bitcoinops.org/en/topics/taproot/&#34;&gt;https://bitcoinops.org/en/topics/taproot/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.youtube.com/watch?v=YSUVRj8iznU&#34;&gt;https://www.youtube.com/watch?v=YSUVRj8iznU&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-January/015614.html&#34;&gt;https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-January/015614.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://bitcoin.stackexchange.com/questions/108006/how-to-make-a-taproot-transaction-with-bitcoin-cli&#34;&gt;https://bitcoin.stackexchange.com/questions/108006/how-to-make-a-taproot-transaction-with-bitcoin-cli&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://bitcoin.stackexchange.com/questions/107452/how-can-i-spend-from-a-p2tr-address-on-signet-with-the-bitcoin-core-wallet-in-22&#34;&gt;https://bitcoin.stackexchange.com/questions/107452/how-can-i-spend-from-a-p2tr-address-on-signet-with-the-bitcoin-core-wallet-in-22&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/tree/708ce10bbc3c3be6d4293b50f56a1cae23c8b358/bip-0340&#34;&gt;https://github.com/bitcoin/bips/tree/708ce10bbc3c3be6d4293b50f56a1cae23c8b358/bip-0340&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2021-October/019543.html&#34;&gt;https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2021-October/019543.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;outline-container-headline-2&#34; class=&#34;outline-2&#34;&gt;&#xA;&lt;h2 id=&#34;headline-2&#34;&gt;&#xA;BIPs&#xA;&lt;/h2&gt;&#xA;&lt;div id=&#34;outline-text-headline-2&#34; class=&#34;outline-text-2&#34;&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0342.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0342.mediawiki&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0343.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0343.mediawiki&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0114.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0114.mediawiki&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0116.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0116.mediawiki&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0117.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0117.mediawiki&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0086.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0086.mediawiki&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/bitcoin/bips/blob/master/bip-0008.mediawiki&#34;&gt;https://github.com/bitcoin/bips/blob/master/bip-0008.mediawiki&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Black-Scholes formula</title>
      <link>https://blog.costan.ro/post/2021-01-28-black-scholes-formula/</link>
      <pubDate>Thu, 28 Jan 2021 00:00:00 +0000</pubDate>
      <guid>https://blog.costan.ro/post/2021-01-28-black-scholes-formula/</guid>
      <description>&lt;p&gt;&#xA;Black-Scholes formula… maybe not as important and well-known as &lt;a href=&#34;https://blog.costan.ro/post/2020-11-24-interest-rate/&#34;&gt;compounding interest-rate&lt;/a&gt; but still the most famous formula among options traders. Here are the formulas that you will find in financial books.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Generate IOTA address</title>
      <link>https://blog.costan.ro/post/2020-12-28-generate-iota-address/</link>
      <pubDate>Mon, 28 Dec 2020 00:00:00 +0000</pubDate>
      <guid>https://blog.costan.ro/post/2020-12-28-generate-iota-address/</guid>
      <description>&lt;p&gt;&#xA;Generate IOTA address using plain old Python, starting with random seed, derive private key, and finally the checksum and address.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Generate Ethereum Address</title>
      <link>https://blog.costan.ro/post/2020-10-27-generate-ethereum-address/</link>
      <pubDate>Tue, 27 Oct 2020 00:00:00 +0000</pubDate>
      <guid>https://blog.costan.ro/post/2020-10-27-generate-ethereum-address/</guid>
      <description>&lt;p&gt;&#xA;  Generate Ethereum address from private key using plain old Python3, Elliptic Curve multiplication from &lt;a href=&#34;https://www.sagemath.org/&#34;&gt;SageMath&lt;/a&gt; and of course &lt;em&gt;Keccak&lt;/em&gt; hash function.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Generate Monero address</title>
      <link>https://blog.costan.ro/post/2020-07-18-generate-monero-address/</link>
      <pubDate>Sat, 18 Jul 2020 00:00:00 +0000</pubDate>
      <guid>https://blog.costan.ro/post/2020-07-18-generate-monero-address/</guid>
      <description>&lt;p&gt;&#xA;Generate Monero address from the root private key using plain old Python, Edwards curve&amp;#39;s &lt;a href=&#34;https://ed25519.cr.yp.to/python/ed25519.py&#34;&gt;ed25519&lt;/a&gt; implementation, &lt;a href=&#34;https://github.com/tiran/pysha3&#34;&gt;Keccak-256&lt;/a&gt; hashing and Monero&amp;#39;s &lt;a href=&#34;https://github.com/bigreddmachine/MoneroPy/blob/master/moneropy/base58.py&#34;&gt;Base58&lt;/a&gt; encoding.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Elliptic curves</title>
      <link>https://blog.costan.ro/post/2019-09-25-elliptic-curves/</link>
      <pubDate>Wed, 25 Sep 2019 00:00:00 +0000</pubDate>
      <guid>https://blog.costan.ro/post/2019-09-25-elliptic-curves/</guid>
      <description>&lt;p&gt;The easiest way to understand Elliptic Curve (EC), point addition, scalar multiplication and trapdoor function; explained with simple graphs and animations.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Zero-knowledge proofs</title>
      <link>https://blog.costan.ro/post/2019-08-26-zero-knowledge-proofs/</link>
      <pubDate>Mon, 26 Aug 2019 00:00:00 +0000</pubDate>
      <guid>https://blog.costan.ro/post/2019-08-26-zero-knowledge-proofs/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://en.wikipedia.org/wiki/Zero-knowledge_proof&#34;&gt;Zero-knowledge&lt;/a&gt; is a method to prove that you know a secret ``x`` (e.g. a password, private key, piece of knowledge, etc) without revealing that secret.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Zero-knowledge proofs</title>
      <link>https://blog.costan.ro/zero-knowledge-proofs/</link>
      <pubDate>Mon, 26 Aug 2019 00:00:00 +0000</pubDate>
      <guid>https://blog.costan.ro/zero-knowledge-proofs/</guid>
      <description>&lt;p&gt;—&#xA;layout: post&#xA;title:  &amp;#34;Zero-knowledge proofs&amp;#34;&#xA;subtitle: Cryptography&#xA;date:   2019-08-26&#xA;tags: [&amp;#34;cryptography&amp;#34;, &amp;#34;zero-knowledge-proof&amp;#34;, &amp;#34;math&amp;#34;, &amp;#34;python&amp;#34;, &amp;#34;zcash&amp;#34;]&#xA;—&lt;/p&gt;</description>
    </item>
    <item>
      <title>EC-Schnorr</title>
      <link>https://blog.costan.ro/post/2019-06-25-ec-schnorr/</link>
      <pubDate>Tue, 25 Jun 2019 00:00:00 +0000</pubDate>
      <guid>https://blog.costan.ro/post/2019-06-25-ec-schnorr/</guid>
      <description>&lt;div id=&#34;outline-container-headline-1&#34; class=&#34;outline-2&#34;&gt;&#xA;&lt;h2 id=&#34;headline-1&#34;&gt;&#xA;Overview&#xA;&lt;/h2&gt;&#xA;&lt;div id=&#34;outline-text-headline-1&#34; class=&#34;outline-text-2&#34;&gt;&#xA;&lt;p&gt;&#xA;EC-Schnorr, as the name suggests, is a Schnorr-type digital signature scheme over elliptic curve, it&amp;#39;s &lt;a href=&#34;https://blog.costan.ro/post/2019-04-09-ecdsa&#34;&gt;ECDSA&lt;/a&gt;&amp;#39;s little sister and &lt;a href=&#34;https://blog.costan.ro/post/2019-06-19-schnorr&#34;&gt;Schnorr&lt;/a&gt;&amp;#39;s big brother implemented in the upcoming &lt;a href=&#34;https://blockstream.com/2018/01/23/en-musig-key-aggregation-schnorr-signatures/&#34;&gt;MuSig&lt;/a&gt; in Bitcoin.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ECDSA</title>
      <link>https://blog.costan.ro/post/2019-04-09-ecdsa/</link>
      <pubDate>Tue, 09 Apr 2019 00:00:00 +0000</pubDate>
      <guid>https://blog.costan.ro/post/2019-04-09-ecdsa/</guid>
      <description>&lt;p&gt;Elliptic curve cryptography (&lt;a href=&#34;https://en.wikipedia.org/wiki/Elliptic-curve_cryptography&#34;&gt;ECC&lt;/a&gt;) and digital signature algorithm (&lt;a href=&#34;https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm&#34;&gt;ECDSA&lt;/a&gt;) are more complex than RSA or ElGamal but I will try my best to hide the hairy math and the implementation details.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ElGamal</title>
      <link>https://blog.costan.ro/post/2019-03-26-elgamal/</link>
      <pubDate>Tue, 26 Mar 2019 00:00:00 +0000</pubDate>
      <guid>https://blog.costan.ro/post/2019-03-26-elgamal/</guid>
      <description>&lt;p&gt;ElGamal is a public key cryptosystem that is used in &lt;a href=&#34;https://en.wikipedia.org/wiki/ElGamal_encryption&#34;&gt;encryption&lt;/a&gt; , &lt;a href=&#34;https://en.wikipedia.org/wiki/ElGamal_signature_scheme&#34;&gt;digital signature&lt;/a&gt; and homomorphic cryptography.&lt;/p&gt;&#xA;&lt;p&gt;Here is my take in 12 lines of Python code:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
