{{short description|Cryptocurrency pioneer}}
{{Infobox person
| name = Wei Dai
| image =
| caption =
| birth_date =
| birth_place =
| death_date =
| death_place =
| nationality =
| citizenship =
| occupation = Computer engineer
| education = [[University of Washington]]
| known_for = [[#b-money|b-money]], [[Crypto++]], [[VMAC]]
| awards =
| website = {{URL|http://www.weidai.com/}}
| signature =
| footnotes =
}}
'''Wei Dai''' ({{lang-zh|c=戴维}}[{{cite web |title=Ask A LessWronger Anything|url=https://www.lesswrong.com/posts/YdfpDyRpNyypivgdu/aalwa-ask-any-lesswronger-anything?commentId=8areHq9CdmRzHE8xQ|date=2014-03-18|author=Wei Dai}}]) is a [[computer engineer]] known for contributions to cryptography and cryptocurrencies. He developed the [[Crypto++]] cryptographic library, proposed the b-money cryptocurrency system, and co-proposed the [[VMAC]] message authentication algorithm.
==Education and career==
Dai graduated from the [[University of Washington]] with a degree in computer science, just before proposing b-money in 1998.[{{cite web|url=https://spectrum.ieee.org/bitcoin-the-cryptoanarchists-answer-to-cash|title=Bitcoin: The Cryptoanarchists' Answer to Cash|author=Morgen E. Peck|date=May 30, 2012|work=IEEE Spectrum}}]
In 2015, ''[[The New York Times]]'' described Dai as an "intensely private computer engineer".[{{cite news|url=https://www.nytimes.com/2015/05/17/business/decoding-the-enigma-of-satoshi-nakamoto-and-the-birth-of-bitcoin.html|title=Decoding the Enigma of Satoshi Nakamoto and the Birth of Bitcoin|last1=Popper|first1=Nathaniel|date=May 15, 2015|work=New York Times|access-date=31 August 2015}}] Wei Dai was a member of the [[Cypherpunk]]s and [[Extropianism|Extropians]] mailing lists in the 1990s, and later SL4. On SL4 he exchanged with people such as [[Eliezer Yudkowsky]], [[Robin Hanson]], [[Nick Bostrom]], [[Aubrey de Grey]], [[Anders Sandberg]], and others in a nascent [[rationalist community]].[{{Cite book|last=Chivers|first=Tom|title=The AI Does Not Hate You: Superintelligence, Rationality and the Race to Save the World|publisher=Weidenfeld & Nicolson|year=2019|isbn=978-1-4746-0877-0|location=United Kingdom}}]
Dai has contributed to the field of [[cryptography]] and identified a [[Block cipher mode of operation|cipher block chaining]] (CBC) vulnerability in SSH2[{{cite web|url=http://eprint.iacr.org/2013/151.pdf|title=Some Fixes To SSH|last1=ZiJie|first1=Xu|website=International Association for Cryptologic Research|access-date=16 September 2015}}]; his work also informed the browser [[Exploit (computer security)|exploit]] against [[Transport Layer Security|SSL/TLS]] known as [[BEAST (computer security)|BEAST]] (Browser Exploit Against SSL/TLS), developed by Juliano Rizzo and Thai Duong in 2011.[{{cite news|url=https://www.theregister.co.uk/2011/09/21/google_chrome_patch_for_beast/|title=Google preps Chrome fix to slay SSL-attacking BEAST|last1=Goodin|first1=Dan|date=Sep 21, 2011|work=The Register|access-date=16 September 2015}}][{{cite web|title=A Challenging but Feasible Blockwise-Adaptive Chosen-Plaintext Attack on SSL|last1=Bard|first1=Gregory V.|year=2006 |pages=7–10 |url=https://eprint.iacr.org/2006/136.pdf |access-date=11 August 2026}}]
Dai said that he had declined an invitation to invest in [[Anthropic]]'s initial funding round because he did not want to contribute to [[existential risk from artificial intelligence]] or signal approval of Anthropic's approach to AI safety.[{{cite web |last=Dai |first=Wei |title=Comment on "Open Global Investment as a Governance Model for AGI" |url=https://www.lesswrong.com/posts/LtT24cCAazQp4NYc5/open-global-investment-as-a-governance-model-for-agi|website=LessWrong |date=28 August 2025 |access-date=12 September 2026}}]
=== Crypto++ ===
[[Crypto++]] is an open-source [[C++]] [[Library (computing)|library]] that provides implementations of cryptographic algorithms. It was originally written by Dai and first released in 1995.[{{Cite web |title=weidai11 / cryptopp |url=https://github.com/weidai11/cryptopp |website=GitHub}}][{{Cite web |title=Crypto++ Library {{!}} All Downloads |url=https://cryptopp.com/downloads.html |access-date=2024-07-14 |website=cryptopp.com}}] In June 2015 Dai stepped away from the Crypto++ project to work on other projects, with the Crypto++ community continuing to maintain the project.[{{cite web |date=November 20, 2015 |title=Crypto++ 5.6.3 Release Notes |url=https://cryptopp.com/release563.html |access-date=June 1, 2021}}]
===b-money===
In 1998, Dai helped to spark interest in [[Cryptocurrency|cryptocurrencies]] with the publication of "b-money, an anonymous, distributed electronic cash system".[{{Cite web |last=Dai |first=Wei |title=B-Money |url=http://weidai.com/bmoney.txt |archive-url=https://web.archive.org/web/20180328204908/http://www.weidai.com/bmoney.txt |archive-date=March 28, 2018}}][{{cite web |last=Dai |first=Wei |title=b-money, monetary exchange and contract enforcement for digital pseudonyms |url=http://www.eskimo.com/~weidai/bmoney.txt |archive-url=https://web.archive.org/web/19990219124653/http://www.eskimo.com/~weidai/bmoney.txt |archive-date=February 19, 1999}}] In the paper, Dai outlines the basic properties of his proposed system: "...a scheme for a group of untraceable digital pseudonyms to pay each other with money and to enforce contracts amongst themselves without outside help".[{{cite web |author=Wei Dai |year=1998 |title=B-Money |url=http://www.weidai.com/bmoney.txt}}][{{cite web |author=Wei Dai |year=1998 |title=b-money, monetary exchange and contract enforcement for digital pseudonyms |url=http://www.eskimo.com/~weidai/bmoney.txt}}]
The paper describes two protocols: one in which all participants maintain account balances, and another in which a subset of servers maintains them.
=== VMAC ===
[[VMAC]] is a block cipher-based [[Message authentication code|message authentication code (MAC)]] algorithm using a universal hash proposed by Ted Krovetz and Wei Dai in April 2007. The algorithm was designed for high performance backed by a formal analysis.[{{Cite report |url=https://datatracker.ietf.org/doc/draft-krovetz-vmac/01/ |title=VMAC: Message Authentication Code using Universal Hashing |last1=Dai |first1=Wei |last2=Krovetz |first2=Ted |date=2007-04-23 |publisher=Internet Engineering Task Force |issue=draft-krovetz-vmac-01}}][{{Cite journal |last=Dai |first=Wei |last2=Krovetz |first2=Ted |date=2007-08-29 |title=VHASH Security |url=https://eprint.iacr.org/2007/338 |url-status=live |journal=[[International Association for Cryptologic Research]] |archive-url=https://web.archive.org/web/20160817085046/http://eprint.iacr.org/2007/338 |archive-date=2016-08-17}}]
==Influence on the development of Bitcoin==
Described as "money which is impossible to regulate",[{{cite news|url=https://www.engadget.com/2013/05/08/engadget-primed-bitcoin/|title=The rise (and rise?) of Bitcoin|author=Daniel Cooper|date=May 8, 2013|work=Engadget}}] Dai's '''b-money''' described some concepts later implemented in [[Bitcoin]][{{cite journal|author=DuPont, Quinn|year=2014|title=The politics of cryptography: Bitcoin and the ordering machines.|volume=1|issue=4|journal=Journal of Peer Production}}] and other cryptocurrencies. The proposal included:
* Creating money requires a specified amount of computational work (aka [[Proof of work]]).
* The work done is verified by participants who update separate account records.
* The worker is awarded funds for their effort.
* Exchange of funds is accomplished by collective bookkeeping and authenticated with digital signatures.
* Contracts provide for collateral and an agreed arbitrator; parties broadcast their digital signatures based on [[Public-key cryptography|public key cryptography]].
===Relationship with Satoshi Nakamoto===
Wei Dai and [[Adam Back]] were the first two people contacted by [[Satoshi Nakamoto]] as he was developing Bitcoin in 2008 and the b-money paper was referenced in the subsequent Bitcoin whitepaper.[{{cite web|url=https://bitcoin.org/bitcoin.pdf|title=Bitcoin: A Peer-to-Peer Electronic Cash System|author=Satoshi Nakamoto|author-link=Satoshi Nakamoto}}]
In a May 2011 article, cryptographer [[Nick Szabo]] stated:{{quote|text=Myself, Wei Dai, and [[Hal Finney (computer scientist)|Hal Finney]] were the only people I know of who liked the idea (or in Dai's case his related idea) enough to pursue it to any significant extent until Nakamoto (assuming Nakamoto is not really Finney or Dai).[{{cite news|author=Nick Szabo |url=http://unenumerated.blogspot.com/2011/05/bitcoin-what-took-ye-so-long.html | title=Bitcoin, what took ye so long?|date=2011-05-28 |access-date=2014-03-12|work=Unenumerated}}]}}
However, Dai questions b-money's influence on Bitcoin:
{{quote|text=...my understanding is that the creator of Bitcoin, who goes by the name Satoshi Nakamoto, didn't even read my article before reinventing the idea himself. He learned about it afterward and credited me in his paper. So my connection with the project is quite limited.[{{Cite web |date=February 2011 |title=Making money with Bitcoin? |url=https://www.lesswrong.com/posts/ijr8rsyvJci2edxot/making-money-with-bitcoin#hbEu9ue9eymNzaF2J |website=LessWrong}}]}}
There has been much speculation as to the identity of Satoshi Nakamoto, with candidates including Wei Dai himself, Nick Szabo, and Hal Finney, all of whom have denied the putative identification.[{{cite news|url=https://www.thetimes.com/sunday-times-100-tech/hardware-profile/article/desperately-seeking-satoshi-zmhl0dx896q|title=Desperately seeking Satoshi|work=The Sunday Times|date=2 March 2014|last=Smith|first=Andrew|page=16}}][{{cite news|last=Wile|first=Rob|date=16 April 2014|title=The Hunt For The Creator Of Bitcoin Keeps Coming Back To One Guy — And He May Be Hiding In Plain Sight|url=https://www.businessinsider.com/nick-szabo-bitcoin-2014-4|work=Business Insider}}][{{cite web|url=http://www.businessinsider.com/did-shinichi-mochizuki-invent-bitcoin-2013-5|title=Here's The Problem With The New Theory That A Japanese Math Professor Is The Inventor Of Bitcoin|last=Weisenthal|first=Joe|date=19 May 2013|access-date=19 May 2013|archive-url=https://web.archive.org/web/20131103105304/http://www.businessinsider.com/did-shinichi-mochizuki-invent-bitcoin-2013-5|archive-date=2013-11-03|url-status=live|website=Business Insider}}][{{cite news|url=https://www.washingtonpost.com/news/the-switch/wp/2014/01/03/hal-finney-received-the-first-bitcoin-transaction-heres-how-he-describes-it/|title=Hal Finney received the first Bitcoin transaction. Here's how he describes it.|last1=Peterson|first1=Andrea|date=January 3, 2014|newspaper=The Washington Post|access-date=16 September 2015}}][{{cite news|url=http://blogs.wsj.com/moneybeat/2014/04/16/bitcoin-creator-satoshi-nakamoto-unmasked-again/|title=Bitcoin Creator 'Satoshi Nakamoto' Unmasked–Again?|last1=Vigna|first1=Paul|date=Apr 16, 2014|work=Wall Street Journal|access-date=16 September 2015}}]
==References==
{{reflist}}
* {{CCBYSASource|sourcepath=https://en.bitcoin.it/wiki/Wei_Dai|sourcearticle=Wei Dai at the Bitcoin wiki|revision=831567662}}
*{{CC-notice|cc=bysa3|url=https://en.bitcoin.it/wiki/Wei_Dai|author(s)=[https://en.bitcoin.it/wiki/User:Taras Taras] and [https://en.bitcoin.it/wiki/User:JonathanCross JonathanCross]}}
==External links==
{{wikiquote}}
*{{official|http://www.weidai.com/}}
*[https://www.lesswrong.com/users/wei_dai LessWrong profile]
*[https://forum.effectivealtruism.org/users/wei_dai Effective Altruism Forum profile]
*[https://sourceforge.net/u/weidai/profile/ SourceForge profile]
*{{google scholar id|YQSmJLUAAAAJ}}
{{LessWrong}}
[[Category:Living people]]
[[Category:Year of birth missing (living people)]]
[[Category:University of Washington alumni]]
[[Category:Bitcoin]]
[[Category:People associated with Bitcoin]]
[[Category:LessWrong rationalists]]