<?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 lambeta on Medium]]></title>
        <description><![CDATA[Stories by lambeta on Medium]]></description>
        <link>https://medium.com/@lambetax?source=rss-abde93691019------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wEdCtMh8O1gGhGhp.jpg</url>
            <title>Stories by lambeta on Medium</title>
            <link>https://medium.com/@lambetax?source=rss-abde93691019------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 13:31:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lambetax/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[The contradiction that the decentralized identity try to solve]]></title>
            <link>https://lambetax.medium.com/the-contradiction-that-the-decentralized-identity-try-to-solve-c90838d357d8?source=rss-abde93691019------2</link>
            <guid isPermaLink="false">https://medium.com/p/c90838d357d8</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[did]]></category>
            <dc:creator><![CDATA[lambeta]]></dc:creator>
            <pubDate>Wed, 27 May 2020 08:28:02 GMT</pubDate>
            <atom:updated>2021-07-06T09:10:42.491Z</atom:updated>
            <content:encoded><![CDATA[<h3>Self-Sovereign Identity — The Equilibrium Point of the Personal Identity Information Game</h3><p><strong>1 Personal identity protection is a major challenge facing companies</strong></p><p>User privacy breaches are widely seen across the Internet. Be it a voluntary behavior (such as Facebook authorizing Cambridge Analytica to access the personal information of its 50 million users) or a passive breach (such as the exposure of 147 million users’ personal information due to Equifax was hacked), user rights, including data processing right, right to know, data security commitment, and right to be forgotten, are infringed. User privacy data breaches not only affect individuals, but also result in huge fines to companies, and even spread the consequences into the entire society.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*kltQ9cm-cZT0b2Wq" /><figcaption>Figure 1 User privacy breaches</figcaption></figure><p>In his book <em>Smart Age: Big Data and Intelligent Revolution Redefine the Future</em>, Dr. Wu Jun and futurist Kevin Kelly conducted surveys on social network users in Silicon Valley to find out whether they care about their privacy or look for more convenience. The results showed that users managed to maintain a balance between privacy and convenience in the mental aspect, while in terms of physical behaviors, they gave up privacy in exchange for convenience, as shown in the figure below. Upon that, they made assessments of the various APPs and social network products on these two aspects, and the results showed a surprising coincidence with users’ physical choices — privacy for convenience. According to Wu, the possible reasons for such a behavior of the public lie in that, firstly, they do not know their privacy would be infringed in a technological way; secondly, they believe they are lucky enough to get away from data breaches; and thirdly, they think privacy exposure would do no harm to themselves. However, the truth is that one can be easily compromised when his/her private data is exposed, for example, the big data-based price discrimination. To deal with that, apart from applying data preprocessing, two-way surveillance, and related technologies, the best way is to restrict the rights of the other party, for which, the best way is to exercise the rights of one’s own. Therefore, as the very first step, companies or institutions should return identity control to users, because identities in the digital world are the key to the vault of personal information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WQUcoqqNdU9EkMzW" /><figcaption>Figure 2 Users’ perception of privacy protection — mental vs. physical</figcaption></figure><p>At the very beginning, companies or institutions wanted user data, and users wanted free services. They easily hit it off. However, such a co-opetition relationship changed over time and evolved into a game of private data — users requesting their data to be properly maintained and not to be used without consent; on the other hand, companies or institutions looking to minimize the cost of user data access while mitigating risks, hence the conflict in between. To resolve the conflict, there must be equal rights and responsibilities, that is, users must assume partial responsibilities of safeguarding their data, while companies and institutions must offer certain data access conveniences so that the two parties achieve a stable balance.</p><p>According to the common Internet practice, systems assign credentials (username and password) to users while keeping the keys under their control. They can freeze or revoke the credentials at their discretion. The practice of returning identity control rights will naturally cause certain inconveniences to companies or institutions, but such inconveniences are the price paid for users to assume liabilities for their personal identity information in exchange of transferred rights. For users, controlling their identity information does add a lot of burdens, such as safeguarding their identity keys. Correspondingly, they gain identity freedom and are no longer restricted by others nor worried about identity-related information being abused.</p><p>In what ways can users be allowed to control their identities? A number of attempts have been made on the Internet. Take OpenID Connect for example. It helps us to get away from the restriction of registering every single application. With the design, users can easily log in to any other application through a third-party ID provider, which optimizes the user experience to a large extent. For example, the design of third-party login to WeChat, Alipay, Twitter, or Facebook allows users to have a sense of control over their identities because users need to personally authorize every single login. This is the inevitable result of superimposed evolution, however, it is sad to say such an approach is still one step away from users having real control over their identities because user identities are still provided by a third party. The potential risks lie in that third-party identity providers make no commitments to the exposed information; they even decide what kind of information will be exposed. That is to say, either applications or users have no control at fine-grained levels at all. Moreover, user identity information gradually and inevitably aggregate on a few platforms, forming a data monopoly. What’s more, in the case of an attack on ID providers, the blast radius will be fairly large, because attackers can operate on any platform using other’s identities. Such a malicious attack is more challenging to centralized ID providers. Therefore, it is necessary to deploy the identity information in a distributed way, in which self-sovereign identity (SSI) comes into play.</p><p><strong>2 Advantages of SSI systems in privacy protection</strong></p><p>The main part that constitutes SSI is the decentralized identifier system, that is, decentralized identifiers (DIDs). DID is the unique ID of an individual in the digital world and cannot be revoked by any person or organization other than the individual. It is the key for the user to control his/her identity. However, an identifier alone has no practical use. It needs to be complemented by another technology, verifiable credentials. Verifiable credentials are personal information statements associated with DIDs, which have been verified by a trusted third party to be authentic and valid, and can be verified in a digital way. For privacy purposes, verifiable credentials abide by the principle of minimal data disclosure, for example, a verifiable claim can only contain a “yes or no” assertion. If one wants to go to a bar, there is no need for him/her to show the full personal identity information to the janitor. Instead, he/she presents a verifiable credential containing the assertion of “18 years old and above”, the janitor can determine whether to admit him/her after verifying its validity. With verifiable credentials, personal profiles created on DIDs can be gradually improved, and the power of SSI can be properly unleashed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S9CsY4voX77pMlMJ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8UE0KyZSvEwvlVsM" /><figcaption>Figure 3 The roles SSI and verifiable credentials play in protecting personal privacy</figcaption></figure><p>In the past, we would also present certain credentials, such as ID cards and student IDs, when accessing certain special venues. While justifying who we are, such credentials expose certain personal information unnecessarily. In China under the COVID-19 impact, health codes (indicating the level of health risks, with green being low risk, yellow being medium risk, and red being high risk) have become the credentials we use for general access. Because of the system isolation between different areas, personal identity information is repeatedly collected. Some of the information may not be useful to the health code system, but we have no other ways to get our identity information under control.</p><p>The SSI technology exactly fits in here — users may apply for health credentials from institutions responsible for verifying their health conditions. Such credentials only contain a statement of the user’s health condition. Once the application is successful, the credential is stored on the user’s device. At access check, the user may choose to present this credential which bears the information of “yes” or “no” only. Other information of the user is not disclosed, and the authenticity of this credential is verifiable so that nobody can sneak through with fake credentials. More importantly, there is no need for us to submit personal information repeatedly! The SSI technology not only allows users to control their identities but also helps users control the level of privacy disclosure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*Lfe6afEFTBFj-r-G" /><figcaption>Figure 4 The interaction between DIDs and verifiable credentials</figcaption></figure><p><strong>3 Extended application scenarios of SSI</strong></p><p>Verifiable credentials of U.S. medical practitioners</p><p>The privacy security and reliability of medical practitioners’ credentials in the existing medical system of the United States have long been denounced. Many innovative companies, such as Axuall and Truu, are proactively exploring solutions using SSI and verifiable credentials.</p><p><strong>Current situation:</strong></p><p>The registration of medical practitioners in the United States takes 2 to 6 months, and a re-registration is mandated in the cases of practicing institution change, region change, or update of practicing certificates. Meanwhile, credential data is exposed to leakage and embezzlement in the registration process. According to the data from Bitglass, in 2020, healthcare data breaches in the United States increased by more than 55% from the previous year, reaching 599 in total, with more than 26.4 million people being affected.</p><p><strong>With the application of SSI and verifiable credentials:</strong></p><p>Based on the distributed ledger of trusted identity and credential sources, medical practitioners may apply for and manage credentials by themselves, avoiding the risk of third-party leakage during the process. When registration verification is required, multiple credentials may be consolidated for timely verification, and information disclosure in the process can be minimized.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*8MXt07XUC_NxQrlV" /><figcaption>Figure 4 Medical application of self-sovereign identity (SSI)</figcaption></figure><p><strong>Cyber Trusted Identity of Chinese citizens</strong></p><p>In 2017, the Chinese government started the exploration of digital identities, that is, Cyber Trusted Identity (CTID) and the corresponding trusted network credential (NC) of citizens.</p><p><strong>Current situation:</strong></p><p>Currently, personal ID cards and electronic credentials are being exposed to the risks of privacy leakage, errors or omissions, data abuse and profiting, embezzlement, and technical security breaches. A number of privacy data breaches were reported in 2020, including the private data exposure of Sina Weibo’s 500 million users, China Construction Bank employees profiting from more than 50,000 customer’s information, and the personal information leakage of more than 6,000 patients in Qingdao Jiaozhou Central Hospital.</p><p><strong>With the application of CTID:</strong></p><p>CTID associates DIDs after PID with the corresponding NC, providing the underlying identity support for the blockchain applications in the various fields. It enables trusted identity authentication online without revealing the identity information, making the identity verifiable but invisible. It provides the possibilities of personal privacy security protection, unified verification standards, and self-sovereign data ownership in the identity layer while eliminating the high-risk intermediate layer in the identity verification scenario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*JZvu4eSQuRgl23Vv" /><figcaption>Figure 5 Social application of SSI</figcaption></figure><p><strong>4 Conclusions</strong></p><p>A silent war is ongoing between users and companies over the control of data. They are having a pig and piglet game. If the user does not assume any responsibility but can enjoy the free service, all the costs are borne by the company, then it is easy to produce a free-rider problem. On the other hand, Companies using users’ personal data without restriction can seriously infringe their rights. So, we need to shift the strategy to drive the company and the user to bear a certain cost, which is just like putting the trough closer in the game. In this manner, a blockchain-based SSI system can help users to control their identity, and also enables companies to get the least available personal data on demand, so the game between users and companies does not need to change the strategy unilaterally, which reaches the Nash equilibrium point.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c90838d357d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The nil in Clojure]]></title>
            <link>https://lambetax.medium.com/the-nil-in-clojure-add6ad451df9?source=rss-abde93691019------2</link>
            <guid isPermaLink="false">https://medium.com/p/add6ad451df9</guid>
            <dc:creator><![CDATA[lambeta]]></dc:creator>
            <pubDate>Tue, 14 Jun 2016 13:12:49 GMT</pubDate>
            <atom:updated>2016-06-14T13:12:49.239Z</atom:updated>
            <content:encoded><![CDATA[<p>Java中null不是原生类型（如：int），也不是任何引用类型（如：Object）。它是没有名字（nameless）的类型，所以我们没法直接声明这样的变量（如：Null foo = null）。但是比较奇葩的设计是Java允许将null赋给任意的引用类型。</p><p>这样null在OO的世界成为一种奇怪的东西：它不是对象。它算是一种虚无的存在（又虚无又存在，悖论哈），指示了对象未诞生时的状态，一旦对象生成，null就被抹去了。所以Martin Fowler才会建议使用Null Object来表达这种临时状态在OO中的模样。所谓的Null Object就是这样一种对象 — — 啥事不干的对象。听起来很神奇，其实说得过去，你想啊，Null Object只是表征了有值就返回值，没值就什么什么不做这种选择（Optional）的一个特例。</p><p>这又引出了Optional的概念。 Haskell使用了 Maybe Monad 来包装了这种可选的状态（这就是一组表示可选的计算）Java 8中也使用Optional这个类实现了类似的功能（提供了flatmap、of以及map等方法，活脱脱的一个monad嘛）。</p><p>回到Clojure中，nil显然有别于Java中的null。首先nil是数据也是类型（为哈？ nil可以extend protocol啊），它可不是Clojure中的异类，它是一等公民！其次，nil在不同的上下文中具有不一样的意义，比如(:key nil) ;=&gt; nil, (first ‘()) ;=&gt; nil, (str nil) ;=&gt; “”，这里它表示了nothing、空数组、空字符串，当然还有false了。</p><p>所以你无法将nil对应到OO中的Null Object、也无法对应到Pure FP中Maybe Monad，它是Clojure中一支双关语<a href="http://www.lispcast.com/nil-punning">nil-punning</a>，用得好则通体舒畅，用得不好也会很头疼。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=add6ad451df9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>