<?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 Apisit Toompakdee on Medium]]></title>
        <description><![CDATA[Stories by Apisit Toompakdee on Medium]]></description>
        <link>https://medium.com/@apisit.toompakdee?source=rss-8be0aa1ace8e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZK0sKSJ_NHBstIRF5-LrYQ.jpeg</url>
            <title>Stories by Apisit Toompakdee on Medium</title>
            <link>https://medium.com/@apisit.toompakdee?source=rss-8be0aa1ace8e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:53:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@apisit.toompakdee/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[NEO Legacy and N3 — what’s the difference?]]></title>
            <link>https://medium.com/@apisit.toompakdee/neo-legacy-and-n3-whats-the-difference-4b498d276ce7?source=rss-8be0aa1ace8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b498d276ce7</guid>
            <category><![CDATA[neo-blockchain]]></category>
            <dc:creator><![CDATA[Apisit Toompakdee]]></dc:creator>
            <pubDate>Mon, 13 Sep 2021 15:18:59 GMT</pubDate>
            <atom:updated>2021-09-13T15:18:59.837Z</atom:updated>
            <content:encoded><![CDATA[<h3>NEO Legacy and N3 — what’s the difference?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tTz39aOJzUMVzfcrndoeOw.jpeg" /></figure><p>If you are like me who haven’t followed much closely about NEO 3 (N3) but you are quite familiar with NEO (Legacy), You might find yourself trying to find more information about N3 and wanting to see what’s the difference, what has changed. I have gone through the process and summarized what I find from both the developer perspective and the consumer(Crypto Investor) perspective. Start with the basic questions such as does the number of NEO or GAS change? Is NEO divisible now in N3?, Is it still free to make a transaction? etc.</p><p>It will be an ongoing list so I just created a new repository for it so anybody can contribute. Feel free to create an issue if you see something wrong, or add new information that you think might be helpful for other people.</p><p>I hope it helps you get a better understanding of what N3 offers and answer some of the questions you might have.</p><p>Visit this link here → <a href="https://github.com/apisit/neo-legacy-vs-n3">https://github.com/apisit/neo-legacy-vs-n3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b498d276ce7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing a neo-cli node? Ain’t nobody got time for that.]]></title>
            <link>https://medium.com/o3-labs/managing-a-neo-cli-node-aint-nobody-got-time-for-that-7361adf1cf5e?source=rss-8be0aa1ace8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7361adf1cf5e</guid>
            <category><![CDATA[neo]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Apisit Toompakdee]]></dc:creator>
            <pubDate>Wed, 12 Jun 2019 02:26:17 GMT</pubDate>
            <atom:updated>2019-06-12T02:26:17.265Z</atom:updated>
            <content:encoded><![CDATA[<p>If you have ever developed a decentralized application on the NEO network, you have most likely experienced having to wait all day for your node to sync. Building a decentralized application is hard, and it’s 3x harder when you also have to manage your own node infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*J-1MC3QGbIuwq4tb-yr-iA.png" /><figcaption><a href="https://xkcd.com/303/">Replace compiling with syncing</a></figcaption></figure><p>Over the past year at o3, we have been building and refining our platform to serve our growing user base. Our backend is currently serving roughly 3 million requests per day feeding data into several traditional and decentralized applications. We build great stuff, and we want to make things easier for other developers like ourselves. Our dAPI proposal was the first step towards making it easier for others to move faster when developing an application that relies on blockchain. We aim to make it so that blockchain developers can focus more on building the actual product, rather than knowing the ins and outs of blockchain technology. The dAPI allows developers to drastically reduce time-to-market by not having to worry about how to manage a user’s private key.</p><p>So the dAPI allows your client-side app to easily interact with your users, but how about the blockchain data that you need on your backend? Sometimes, you just want to fetch data from the NEO network. Today you have two options for this:</p><ol><li>Find a reliable public node to connect to</li><li>Manage your own node</li></ol><p>Public nodes have no guarantees for uptime or data consistency, and managing your own can require long syncs, reboots, logging, and monitoring… Ain’t nobody got time for that.</p><p>Luckily we’ve now got a solution.</p><p>Introducing <strong>neod network</strong> <a href="https://neod.network/"><strong>https://neod.network</strong></a> — a secure, fast, reliable and scalable gateway to the NEO network. Focus your effort on building the actual product, no need to waste your time managing the infrastructure. Connect to a provided TLS-enabled endpoint and you are all set. It works just like connecting to a neo-cli node with neon-js or the dAPI. neod supports NEO mainnet, testnet, and you can even spin up your private network for your local development. We will be adding support to NEO 3.0 Preview when it launches.</p><p>For more information please visit <a href="https://neod.network/">https://neod.network</a></p><p>If this is something you are interested in make sure to signup to get notified first about our official launch. If you have any questions or would like to receive more detailed information please don’t hesitate to contact us at <a href="/service/mailto:business@o3.network">business@o3.network</a></p><p>O3 Wallet is available on iOS, Android, MacOS, Windows and Linux. Download it today from <a href="http://o3.network/">https://o3.network</a></p><p><strong>Need a NEO block explorer? Check out <br></strong><a href="https://explorer.o3.network/">https://explorer.o3.network</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7361adf1cf5e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/o3-labs/managing-a-neo-cli-node-aint-nobody-got-time-for-that-7361adf1cf5e">Managing a neo-cli node? Ain’t nobody got time for that.</a> was originally published in <a href="https://medium.com/o3-labs">O3 Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Encrypted messaging on the NEO blockchain]]></title>
            <link>https://medium.com/@apisit.toompakdee/encrypted-messaging-on-the-neo-blockchain-631bbfcf99f6?source=rss-8be0aa1ace8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/631bbfcf99f6</guid>
            <category><![CDATA[neo]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Apisit Toompakdee]]></dc:creator>
            <pubDate>Fri, 29 Dec 2017 08:50:00 GMT</pubDate>
            <atom:updated>2018-06-13T09:44:42.908Z</atom:updated>
            <content:encoded><![CDATA[<p>As you may know, transactions made on most blockchains are publicly available to everyone. Either by querying a NEO node directly via RPC, or by using a user friendly block explorer like NEOTracker or NEOScan allow you to browse transactions, balances, smart contracts and any other piece of data on the blockchain. However, sometimes privacy is a must have feature in certain applications. One example of this is messaging. If you want to send a message to someone then you would obviously not want someone else to be able to read your message log which could expose sensitive information. In this article I’ll show you the basics of how to perform encrypted messaging on the NEO blockchain.</p><p>First lets look again at the anatomy of a transaction on the NEO blockchain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*0u8wRju5F1x-LfYB5z5pZA.png" /><figcaption>NEO Transaction</figcaption></figure><p>This is the basic memory structure of a transaction. When you send GAS or NEO on chain your wallet client will create this data packet and broadcast it to the network. If you are interested in reading more detail about creating a light client or transaction structure in general. Check out Andrei’s post. <a href="https://steemit.com/neo/@saltyskip/creating-a-light-client-for-neo-a-blockchain-developer-s-gateway-drug">Creating a Light Client for Neo, a Blockchain Developer’s Gateway Drug — Steemit</a></p><p>For messaging we only care about the metadata following immediately after the input data. A relatively unknown feature of NEO transactions is that you can attach <strong>transaction attributes</strong> to any transaction. A transaction attribute is broad term that basically means additional data. So when you send any amount of NEO or any amount of GAS you can attach a message in the transaction attribute.</p><p>So I can send 0.0000001 GAS to my friend and attach the message “Hello”. Although this seems like a trivial example, this message is something permanently store on the blockchain and will never be deleted. However as mentioned before, it’s not very useful if everybody can read it. So how do we prevent this?</p><p>So to recap we want to accomplish this.</p><p>In theory this seems pretty simple. I could create a secret password to encrypt a message and tell my firiend that secret password so you can use it to decrypt a message.</p><p>However, what If I want to send to 10 other friends or even a 100? I would have to keep track of all the secret passwords that I created because if I used the same password then everyone would be able to decrypt each others secret messages. Furthermore, how do I securely send a secret password I created for you in the first place?</p><p>So to recap in order to send an encrypted message on the blockchain we need to of the following</p><p>1. Generate a secret password<br>2. Share the secret with our friend so that they can decrypt the password<br>3. Encrypt a message using the secret password<br>4. Send the encrypted message in the transaction attribute field of a NEO transaction</p><p>Whenever you create a new wallet you are given four key elements, a public key, private key, NEO address and a WIF.</p><p>With the WIF or private key, you can generate the other elements but <strong>not vice versa</strong>. We will see how we can use these elements in order to generate our password.</p><p>Here comes classic actors in cryptographic examples: <strong>Alice</strong> and <strong>Bob</strong><br>Alice wants to send Bob an encrypted message that only both of them can read. What we need is a <strong>shared secret</strong> between Alice and Bob. This will perform steps 1 and 2 at the same time.</p><p>First, We get Alice and Bob a pair of keys.</p><p>Alice and Bob exchanged their public keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*zMz9folWlUucIM4pANDwcQ.png" /><figcaption>Alice and Bob exchanging public key</figcaption></figure><p>After this exchange the shared secret can be generating using a common technique called <a href="https://en.wikipedia.org/wiki/Elliptic-curve_Diffie%E2%80%93Hellman">Elliptic-curve Diffie–Hellman — Wikipedia</a></p><p>ECDH for short, is an anonymous key agreement protocol which is used to generate a <strong>shared secret</strong> from a key pair suitable for elliptic curve cryptography.</p><p>Now we have all the things we need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*ckJTcVxfCWC5-_HMVrSZjQ.png" /><figcaption>Generating shared secret with public key and private key.</figcaption></figure><p>I won’t go into all the math about how the shared secret is generated, but please read more about ECDH from the link above.</p><p>I wrote a small Go program to demonstrate the result. The output is below (private key is redacted)</p><blockquote>Alice’s NEO adress = AQpkhLEdcvmBbBb1TAb7BeVyLTweHSfTe5<br>Bob’s NEO address = AH6Wd2j3d6BQhSDSSyGPjDKTgii2gxHLPW<br>Alice’s public key = 03c8cbdc902fc302329132c56a8c9535f9c86952ddf539679fc1ba29091aaaf2da<br>Bob’s public key = 03c075742edf955c47700586a849b453b21ee5a50129546576b673579600aef557<br>Alice’s shared secret (Bob’s public key + Alice’s private key) = 2e29b2afffecec017e3dd11e2061cae2a77957d9cc364cf7c837c8efc95f94d5<br>Bob’s shared secret (Alice’s public key + Bob’s private key) = 2e29b2afffecec017e3dd11e2061cae2a77957d9cc364cf7c837c8efc95f94d5</blockquote><p>As you can see from the result above. Alice and Bob shared secret are <strong>identical</strong> which is why it is called <strong>shared secret.</strong></p><p>Now Alice and Bob can use derived shared secret to encrypt a message using <a href="https://en.wikipedia.org/wiki/Symmetric-key_algorithm">Symmetric-key algorithm — Wikipedia</a> like AES (<a href="https://en.wikipedia.org/wiki/Advanced_Encryption_Standard">Advanced Encryption Standard — Wikipedia</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*pgRBM0GUa9o08YhPIPPupA.png" /><figcaption>Encrypting a message with shared secret</figcaption></figure><p>And here you go the secured message is ready to be sent, we insert the encrypted in the transaction attribute of the NEO transaction and get a result that looks like this.</p><blockquote>Alice sent QcwFUOqIaUY1heZi3eutnTMQUMy4EwrLyA== to Bob<br>Bob sent pZWXtZeg6-pTHlk2deInSDcL9NaVzZm-xUEUA8d__g== to Alice</blockquote><p>As you can see no one will able to know what the conversation between Alice and Bob is without first decrypting the message, and they won’t be able to do this without the shared secret.</p><p>Luckily Alice and Bob both have access to the shared secret because they shared public keys earlier. So using the shared secret they decrypt each others messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*4wzmnwVS1m9hxygRd8IHww.png" /><figcaption>Decrypting a message with shared secret</figcaption></figure><p>That’s it. That’s how to encrypt/decrypt a message with ECDH.</p><p>So to recap Alice and Bob shared public keys, which allowed them to generate an identical <strong>shared secret</strong>. They used this shared secret to encrypt and decrypt their respective messages. This is a basic rundown of ECDH so how can we incorporate this into NEO, for encrypted blockchain messaging?</p><p>Bob can initiate a communication by sending Alice a fraction of gas 0.00000001GAS with his public key in transaction attribute field <strong>0x02</strong> or <strong>0x03</strong></p><p>Because Alice knows Bob’s address and there is a transaction coming from Bob. The application should be able to get Bob’s public key from the transaction attribute in the transaction data.</p><p>On Alice side, An application uses Bob’s public key and Alice’s private key to generate a shared secret. Encrypt a message with derived shared secret and then put an encrypted message into transaction attribute field <strong>0xf0</strong> and Alice’s public key into a <strong>0x02</strong> field.</p><p>After Bob received the transaction. The application can grab Alice’s public key and encrypted message from transaction attributes in received transaction data then begin the process or decrypting.</p><p>Check out <a href="http://docs.neo.org/en-us/node/network-protocol.html">NEO network protocol document</a> for transaction attribute usage</p><p>Here is a visual diagram of the process described above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*O4u2qkePANqha913J6bMfw.png" /></figure><p>Of course, This does not mean we can make a <strong>real-time</strong> messaging application on NEO blockchain but more about the idea of secure messaging.</p><p>One cool side effect of all of this is that it allows for an economic use case for GAS. The minimum unit of GAS is now the cost of sending an encrypted message on the blockchain.</p><p>That’s totally it. Hope you get a better understanding of what <em>crypto</em> in cryptocurrency actually is. If you have any question. you can ping me on twitter <a href="http://twitter.com/imapisit">@imapisit</a> or email <a href="/service/mailto:apisit@o3.network">apisit@o3.network</a></p><p>Big thanks to Andrei for proofreading and editing.</p><p>— a</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=631bbfcf99f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>