# Grant Application - MFKDF2

**URL:** <https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614>\
**Category:** Applications\
**Created:** [July 5, 2025, 5:33pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614 "2025-07-05T17:33:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![multifactor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/multifactor/32/38394_2.png) [@multifactor](https://forum.zcashcommunity.com/u/multifactor)\
**Post date:** [July 5, 2025, 5:33pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/1 "2025-07-05T17:33:36Z")

</div>

Hi Zcash Community!

We’re Colin and Vivek from Multifactor, a public-benefit cryptography research comany dedicated to improving zero-trust security for the modern web. We’re excited to share our proposal for MFKDF2, a trustless, next-generation client-side key derivation algorithm that has the potential to significantly improve the usable security of Zcash wallets, applications, liberated payments, and more.

> <https://github.com/ZcashCommunityGrants/zcashcommunitygrants/issues/61>
>
> \### Terms and Conditions
> 
> \- \[x\] I agree to the \[Grant Agreement\](https://9ba4718…c-5c73-47c3-a024-4fc4e5278803.usrfiles.com/ugd/9ba471\_f81ef4e4b5f040038350270590eb2e42.pdf) terms if funded
> \- \[x\] I agree to \[Provide KYC information\](https://9ba4718c-5c73-47c3-a024-4fc4e5278803.usrfiles.com/ugd/9ba471\_7d9e73d16b584a61bae92282b208efc4.pdf) if funded above $50,000 USD
> \- \[x\] I agree to disclose conflicts of interest
> \- \[x\] I agree to adhere to the \[Code of Conduct\](https://forum.zcashcommunity.com/t/zcg-code-of-conduct/41787) and \[Communication Guidelines\](https://forum.zcashcommunity.com/t/zcg-communication-guidelines/44284)
> \- \[x\] I understand all milestone deliverables will be validated and accepted by their intended users or their representatives, who will confirm that the deliverables meet the required quality, functionality, and usability for each user story.
> \- \[x\] I agree to post request details on the \[Community Forum\](https://forum.zcashcommunity.com/c/grants/33)
> \- \[x\] I understand it is my responsibility to post a link to this issue on the \[Zcash Community Forums\](https://forum.zcashcommunity.com/c/grants/33) after this application has been submitted so the community can give input. I understand this is required in order for ZCG to discuss and vote on this grant application.
> 
> \### Application Owners (@Octocat, @Octocat1)
> 
> @VCNinc @Autoparallel
> 
> \### Organization Name
> 
> Multifactor, Inc., a Public Benefit Corporation
> 
> \### How did you learn about Zcash Community Grants
> 
> We had a great conversation about MFKDF2 with Matthew, Artkor, Brian, and Pacu from the Zcash community grants team, who encouraged us to apply for a grant!
> 
> \### Requested Grant Amount (USD)
> 
> $39,000
> 
> \### Category
> 
> Research & Development
> 
> \### Project Lead
> 
> \`\`\`project-lead.yaml
> Name: Vivek Nair
> Role: Co-Principal Investigator, MFKDF2
> Background: Vivek Nair, Ph.D., has over a decade of experience researching applied cryptographic techniques to secure critical systems. Dr. Nair previously served as a Technical Lead within elite cyber units of the Central Intelligence Agency (CIA) and US Department of Defense (DoD), where he received the Directorate’s Exceptional Performance Award for advancing the frontiers of US cyber operations. He completed his Ph.D. in Computer Science at UC Berkeley at the age of 22, supported by prestigious fellowships from the National Science Foundation, the National Physical Sciences Consortium, and the Fannie and John Hertz Foundation. His work has been prominently featured in The Washington Post, Forbes, Bloomberg, and more.
> Responsibilities: MFKDF2 Protocol Design, Documentation, Demos, Publication
> \`\`\`
> 
> \### Additional Team Members
> 
> \`\`\`team-members.yaml
> \- Name: Colin Roberts
> Role: Co-Principal Investigator, MFKDF2
> Background: Colin Roberts, Ph.D., is a mathematician with a passion for creating provably secure cryptographic solutions and systems. Dr. Roberts has years of experience supporting innovative applied cryptography research, including in Staff Research Engineer roles at Web3 startups Pluto and Primitive where he audited and designed smart contract systems and developed proving schemes for verifiable TLS attestations. He earned his Ph.D. in Mathematics from Colorado State University, and the open-source cryptography, mathematics, and simulation repositories he maintains have thousands of combined GitHub stars.
> Responsibilities: MFKDF2 Rust Implementation, Testing, Mathematical Proofs
> 
> \- Name: Dawn Song
> Role: Senior Research Advisor, MFKDF2
> Background: Dawn Song, Ph.D., is a Professor of Computer Science at UC Berkeley and the co-director of the Center for Responsible, Decentralized Intelligence (RDI). Her primary research interests are in deep learning and computer security. Her prolific academic publications in these fields have received over 130,000 citations. She is the recipient of fellowships from the Association for Computing Machinery, the Institute of Electrical and Electronics Engineers, the John D. and Catherine T. MacArthur Foundation, the John Simon Guggenheim Memorial Foundation, and the Alfred P. Sloan Foundation, and has received various awards for her work, including the NSF CAREER Award, the MIT Technology Review Top 35 Innovators under 35 (TR35) award, the ACM SIGSAC Outstanding Innovation Award, and the AMiner Most Influential Scholar Award for being the most cited scholar in Computer Security. She obtained her Ph.D. from UC Berkeley in 2002. Prior to joining UC Berkeley as a faculty member, she was an Assistant Professor at Carnegie Mellon University from 2002 to 2007.
> Responsibilities: Project Oversight, Research Support
> \`\`\`
> 
> \### Project Summary
> 
> MFKDF2 is an innovative open-source cryptographic primitive for fast, flexible, secure, usable key derivation that uniquely expands upon password-based key derivation functions (PBKDFs) with support for using other popular authentication factors like TOTP, HOTP, and hardware tokens like YubiKeys in the key derivation process. In doing so, it enables the creation of “best-of-both-worlds” cryptocurrency wallets that inherit the friendly UI and UX of custodial wallets while in fact being private, non-custodial, and providing an exponential security improvement over PBKDFs alone.
> 
> \[MFKDF2 Detailed Plan (2025) - Zcash.pdf\](https://github.com/user-attachments/files/21069772/MFKDF2.Detailed.Plan.2025.-.Zcash.pdf)
> 
> \### Project Description
> 
> The Multi-Factor Key Derivation Function (MFKDF) is a fast, flexible, secure, & practical key management solution that uniquely expands upon password-based key derivation functions (PBKDFs) with support for using other popular authentication factors like TOTP, HOTP, and hardware tokens like YubiKeys in the key derivation process. In doing so, it provides an exponential security improvement over PBKDFs with negligible overhead. MFKDF additionally offers a k-of-n threshold construction and “key stacking” primitive that can be used together to cryptographically enforce arbitrarily specific key derivation policies. The result is a paradigm shift toward direct cryptographic protection of user data using all available authentication factors, with no noticeable change to the user experience. Motivated by the need for new cryptographic primitives to support secure crypto wallet design, MFKDF offers proven security and usability advantages over existing key management options in the blockchain domain.
> 
> Since its release in 2023, academic researchers have conducted and published rigorous red-team cryptanalyses of MFKDF that demonstrate the need for additional work on the algorithm and implementation to reach production maturity. However, there is now a clear and well-defined path to transform the proven value behind MFKDF into a production-ready resource with robust security guarantees for the Web3 community. Therefore, we are proposing MFKDF2, a new and improved version of MFKDF that aims to provide new features and enhanced security, realizing the original potential of MFKDF2 to dramatically improve Web3 usability.
> 
> \### Proposed Problem
> 
> \> “Cryptography turns a security problem into a key management problem.”
> \> — Murphy’s 1st Law of Cryptography
> 
> MFKDF2 aims to address the classic problem of usable key management, which has long remained a difficult unsolved challenge in the field of usable security. Since the seminal publication of “Why Johnny Can’t Encrypt” in 1999, researchers have long understood that most internet users lack proficiency with manual cryptographic key management strategies. This translates to cryptocurrency wallets inheriting many of the same usability issues, with private key files and seed phrases feeling alien and uncomfortable to Web3 novices.
> 
> While password-based key derivation functions (PBKDFs) are widely used to solve this problem in centralized applications, their low entropy and lack of a recovery mechanism make them unsuitable for use in decentralized contexts. The average cryptocurrency user today therefore faces a difficult choice between centralized custodial wallets, which are notoriously prone to compromise, or cumbersome self-custody solutions, which if not managed properly can cause a total loss of funds.
> 
> \### Proposed Solution
> 
> We propose the Multi-Factor Key Derivation Function v2.0 (MFKDF2), an innovative open-source cryptographic primitive for fast, secure, usable key derivation that addresses these deficiencies by securely incorporating commonly used authentication factors that users are already familiar with, like HOTP/TOTP (e.g., Google Authenticator), Hardware Tokens (e.g., YubiKeys), and out-of-band factors (e.g., Email or SMS), into the key derivation process. In doing so, it provides an exponential security improvement over PBKDFs with negligible overhead. MFKDF additionally offers a k-of-n threshold construction and “key stacking” primitive that can be used together to cryptographically enforce arbitrarily specific key derivation policies, including approaches like risk-based authentication (RBA) and social backup and recovery (SBR) that are commonly used in Web2. The result is a "best of both worlds" cryptocurrency wallet design with cross-chain compatibility, that looks like, and inherits the user experience of, a centralized custodial solution, while in fact being entirely decentralized in design, implementation, and security/privacy properties.
> 
> The original MFKDF was released in 2022 as a research prototype, but received significant community interest and commendations for its innovative approach to key derivation and its recognized potential to improve the accessibility and ease of use of self-custody cryptocurrency wallets by creating an identical experience to custodial wallets. Now, motivated by the success of MFKDF but the need to make significant feature and security advancements to keep up with the latest developments in cryptanalysis and identity security, we are proposing MFKDF2, a new and improved version of MFKDF that will make major strides in security, features, languages, and supported factors, and take MFKDF from a proven concept to a secure, production-ready tool.
> 
> \### Solution Format
> 
> We’re aiming to provide MFKDF2 as a production-ready Rust library, complete with robust documentation, tutorials, examples, and a red-team audit, making it ready to have a real-world security and usability impact on Zcash wallets. We’ll also aim to produce and publish an academic paper detailing the advancements made by MFKDF2, with strong security arguments and proofs.
> 
> \### Dependencies
> 
> MFKDF2 builds on the strong foundation provided by the original MFKDF paper and implementation, but will be rearchitected from scratch in Rust for compatibility with the Zcash ecosystem. It remains entirely built upon simple, proven cryptographic primitives like SHA256, AES256, Argon2, and Shamir’s Secret Sharing. Importantly, there is no need for a networked third-party component, specialized hardware, or a trusted committee.
> 
> \### Technical Approach
> 
> We will implement MFKDF2 as a general-purpose cryptographic primitive in Rust using UniFFI, allowing it to be utilized in a wide variety of languages, such as Typescript/Javascript, C/C++, Python, Kotlin, Swift, and more.
> 
> \### Upstream Merge Opportunities
> 
> MFKDF2 does not need to be merged into a core Zcash repository to have a significant positive impact on the Zcash ecosystem! Instead, we’re working closely with wallet developers to allow MFKDF2 to be adopted by specific Zcash wallet projects, allowing it to be gradually adopted by the community. See Milestone 5 for more information about how we're ensuring MFKDF2 has a direct, tangible impact on Zcash security and usability.
> 
> \### Hardware/Software Costs (USD)
> 
> $0
> 
> \### Hardware/Software Justification
> 
> N/A
> 
> \### Service Costs (USD)
> 
> $10,000
> 
> \### Service Costs Justification
> 
> We anticipate that third-party cryptographic audits of the MFKDF2 library and implementation will cost around $10,000, and have identified two specific providers who could provide this service. Based on our conversations with the community, these independent audits will be critical to enable the trust in MFKDF2 necessary to achieve widespread adoption.
> 
> \### Compensation Costs (USD)
> 
> $29,000
> 
> \### Compensation Costs Justification
> 
> 2 staff FTEs (Colin & Vivek) for 5 months at an extremely modest compensation of $2,900 per month.
> 
> \### Total Budget (USD)
> 
> $39,000
> 
> \### Previous Funding
> 
> No
> 
> \### Previous Funding Details
> 
> N/A
> 
> \### Other Funding Sources
> 
> No
> 
> \### Other Funding Sources Details
> 
> We have not received additional funding for MFKDF2.
> 
> \### Implementation Risks
> 
> We are confident that following the success of the original MFKDF and the lessons learned from that project, we have a strong blueprint for the implementation of a more secure, compatible, and feature-rich MFKDF2. The chief implementation risk is therefore the introduction of new security vulnerabilities during the Rust implementation of MFKDF2, which we will address by commissioning an independent third-party security audit of MFKDF2 prior to its production deployment as detailed in the funding breakdown above and milestones below.
> 
> \### Potential Side Effects
> 
> While MFKDF2 has the chief aim of providing more secure and usable key management for Zcash wallets, it could have the opposite impact if implemented incorrectly (e.g., with weak key derivation policies) by wallet providers. Therefore, significant effort will be put into producing robust documentation, tutorials, examples, and implementation support & guidance to ensure that MFKDF2 is implemented correctly and initialized with strong settings and policies.
> 
> \### Success Metrics
> 
> Peer-reviewed publications also show that MFKDF quantifiably solves the problem of usable key management in the Web3 context, with a large-scale user study \[published in ACM CHI\](https://dl.acm.org/doi/10.1145/3613904.3642464) demonstrating that MFKDF-based cryptocurrency wallets outperform wallets backed by conventional key management approaches on a large number of both subjective and objective usability metrics.
> 
> Replicating at least this level of usability improvement in MFKDF2, while simultaneously achieving more robust security guarantees, features, and authentication factor compatibility, is our key metric for success. A successful MFKDF2 deployment will therefore make a wide variety of Zcash wallets more usable and accessible to Web3 novices (by allowing them to simply “login” to their wallets using familiar, commonly-used authentication factors) while also bringing even more robust security and privacy guarantees than the original MFKDF.
> 
> \### Startup Funding (USD)
> 
> $5k
> 
> \### Startup Funding Justification
> 
> $5k will allow us to hit the ground running on MFKDF2 with the implementation blueprint, project planning, and technical tooling needed to position the project for success. 
> 
> \### Milestone Details
> 
> \`\`\`milestones.yaml
> \- Milestone: 1 (Design Blueprint & Rust Framework)
> Amount (USD): $7.5k
> Expected Completion Date: 2025-08-01
> Deliverables: 
> - Basic Rust Cross-Compilation Framework
> - Multi-Language Documentation Framework
> - Re-Vamped Cryptographic Primitives
> - Bytewise Shamir’s Secret Sharing (Bytes Indistinguishable in \[0, 256))
> - AES-256-ECB for Share Encryption (No Authentication)
> - SHA1, SHA256, HMAC-SHA1, HMAC-SHA256 for Factor Constructions
> - Argon2id and/or Balloon Hashing for Memory-Hard KDF
> - Security Proof Framework
> - Re-Implement Original MFKDF Factors & Features in Rust
> - MFKDF, MFCHF, & MFDPG modes of operation
> Acceptance Criteria: This milestone will be complete when our Rust framework has feature parity with the original MFKDF (as verified by a differential testing suite), is compilable to various languages, and is ready to support the new factors, features, and security model of MFKDF2.
> 
> \- Milestone: 2 (MFKDF2 Client Implementation)
> Amount (USD): $7.5k
> Expected Completion Date: 2025-09-01
> Deliverables:
> - We’ll implement robust security improvements based on the findings of MFKDF.
> - We’ll implement new factor compatibility beyond those found in the original MFKDF, including passkeys and biometrics.
> - We’ll implement new features beyond those available in MFKDF, including the ability to provide threshold factor hints to users and upgrade KDF parameters over time.
> Acceptance Criteria: This milestone will be complete when our Rust MFKDF2 implementation has addressed any known security limitations of the original MFKDF, and has achieved the additional factors and features proposed herein.
> 
> \- Milestone: 3 (Red-Team Evaluation)
> Amount (USD): $10k
> Expected Completion Date: 2025-10-01
> Deliverables:
> - We’ll collaborate with independent evaluators to produce a robust security evaluation of the MFKDF2 Rust implementation to ensure MFKDF2 is ready for real-world use.
> Acceptance Criteria: This milestone will be complete when we have published a security report documenting the security of the MFKDF2 Rust implementation.
> 
> \- Milestone: 4 (Final Publication & Reporting)
> Amount (USD): $5k
> Expected Completion Date: 2025-11-01
> Deliverables:
> - We’ll produce new centralized and decentralized demos for MFKDF2, including a proof-of-concept Zcash wallet demo.
> - We’ll produce and publish an academic paper on MFKDF2’s algorithms, including robust security arguments.
> - We’ll submit MFKDF2 to a third-party artifact evaluation review, if applicable.
> - We’ll travel to an academic conference to present MFKDF2 to the community.
> - We’ll make presentations, announcements, blog posts, etc., to promote MFKDF2.
> Acceptance Criteria: This milestone will be complete when the final MFKDF2 library is ready as a well-documented and production-ready solution.
> 
> \- Milestone: 5 (Zcash Ecosystem Integrations)
> Amount (USD): $4k
> Expected Completion Date: 2025-12-01
> Deliverables:
> - We’ll attempt to implement MFKDF2 as a key management option in Zcash’s CLI tool (https://github.com/zcash/zcash-devtool), as an example to Zcash devs
> - We’ll investigate and report on MFKDF2’s compatibility with FROST (ZIP 312), as a complementary secure, usable, multi-user key management strategy.
> - We’ll investigate and report on MFKDF2’s utility for Zcash Liberated Payments (ZIP 324), as a way to privately send Zcash to an unregistered “set of factors” (email, phone number, etc.) that can subsequently be easily accepted on-chain.
> - We’ll work closely with Zingo, and other Zcash wallet providers who have indicated interest, to move MFKDF2 into production use across the ecosystem.
> Acceptance Criteria: This milestone will culminate in a report, and may result in follow-up proposals if ZCG determines follow-on integration efforts are desirable.
> \`\`\`
> 
> \### Supporting Documents
> 
> \`\`\`files.yaml
> MFKDF2 Detailed Plan: More details about our plan for MFKDF2 and how it improves upon the original MFKDF in various respects.
> 
> \[MFKDF2 Detailed Plan (2025) - Zcash.pdf\](https://github.com/user-attachments/files/21069772/MFKDF2.Detailed.Plan.2025.-.Zcash.pdf)
> \`\`\`

The original [Multi-Factor Key Derivation Function (MFKDF)](https://mfkdf.com), which was [published in USENIX Security '23](https://www.usenix.org/conference/usenixsecurity23/presentation/nair-mfkdf) and won the [Best Artifact Award](https://www.usenix.org/system/files/usenixsecurity23-appendix-nair-mfkdf.pdf), changed our understanding of usable key management by, for the first time, enabling client-side key derivation from multiple, commonly-used authentication factors, such as passwords, HOTP/TOTP (e.g., Google Authenticator), and hardware tokens (e.g., YubiKeys), without needing trusted hardware, MPC, or committees.

A large user study [published in ACM CHI '24](https://dl.acm.org/doi/10.1145/3613904.3642464) demonstrated that **users of all experience levels significantly prefer the experience of cryptocurrency wallets built on MFKDF** over all existing alternatives, because they inherit the familiar UI and UX of custodial wallets like Coinbase while in fact being completely decentralized and self-custody.

The original MFKDF proved the feasibility of this approach as well as showing clear demand and usability benefits, but was ultimately just a research prototype that was [not ready for production use](https://www.usenix.org/conference/usenixsecurity24/presentation/scarlata). Therefore, we are proposing the development of MFKDF2, a free, open-source, production-ready version of MFKDF, rearchitected from the ground-up in Rust for use in Zcash. We have a concrete plan to make MFKDF2 more secure, feature-rich, and compatible with more types of authentication factors (including passkeys and biometrics) than the original MFKDF, and we’ll conduct the robust security proofs and independent auditing required for real-world use.

**Zcash is poised to be one of the largest beneficiaries of MFKDF2** because its privacy-oriented design makes overreliance on custodial wallets by novice users particularly counterproductive. MFKDF2 has the potential of making novice Zcash users more comfortable with moving to self-custody by eliminating the need for seed phrases and other cumbersome manual key management strategies, allowing those users to experience the full privacy benefits of Zcash for the first time. We’ve therefore structured our proposal around working closely with Zingo and other Zcash wallet developers to ensure the Zcash community directly benefits from MFKDF2 as soon as we’re confident that it’s production-ready.

We’re asking for a reasonable $39,000 grant to support research, develpoment, and independent cryptographic auditing, and would greatly appreciate the support of the Zcash community to make MFKDF2 a reality. Thank you for considering our proposal, and we’re happy to answer any questions.

---

<div class="post-metadata">

**Author:** ![zooko](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/zooko/32/32232_2.png) [@zooko](https://forum.zcashcommunity.com/u/zooko)\
**Post date:** [July 6, 2025, 4:01pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/2 "2025-07-06T16:01:01Z")

</div>

(Hi, I’m not involved with the Zcash Community Grants committee—just an interested Zcash community member.)

Hi there! Thanks for offering to help the Zcash project! ☺ I’m interested in usability and security, and I looked into MFKDF a little, and I have some questions.

It seems to me that passkeys are going to become the universal standard way to authenticate. They’re more secure than the current alternatives, but their increased security comes with _easier_ usability rather than harder. And they are already supported in almost every client (phone OS, password manager, etc) and the majority of the biggest services (Google, etc).

As a user, I prefer to switch to passkeys from the other alternatives (passwords, out-of-band authentication, TOTP like Authy, hardware keys, etc…) because I know things will be easier and quicker for me after I make the switch, and I feel increased “peace of mind” since the underlying cryptographic protocol is more secure.

So what I personally want is to take the same local, loyal user agent that cryptographically controls all of my accesses to services and accounts (by signing my login requests with the private key of the appropriate passkey key pair), and have that thing also control access to my Zcash.

However, this is as far as my thinking and experimenting has gone. I don’t know much more about how that would work, other than that it would probably involve trade-offs that different users would make differently, and that it would involve a ton of hard engineering work by Zcash wallet devs (of whom I am not currently one).

So, questions for you:

1. Does that idea even make sense, technically? Seems like you’re probably experts on this.
2. Do you think it is a good idea? Any interesting trade-offs you would call out? Would you personally use something like that?
3. Could you help make it possible for Zcash users to do that, either with MFKDF2, or in a completely separate project, assuming you could get help from some Zcash wallet builders or other developers like the Blockchain Commons folks?

Thanks for your attention! Hope this half-baked idea turns out to be useful.

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [July 6, 2025, 4:35pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/3 "2025-07-06T16:35:26Z")

</div>

One of the important to check is whether the secure enclave is compatible with Zcash signatures, which is rather unlikely since it is ecdsa on secp256r1… I suggest consulting a cryptographer to make sure it makes sense.

---

<div class="post-metadata">

**Author:** ![multifactor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/multifactor/32/38394_2.png) [@multifactor](https://forum.zcashcommunity.com/u/multifactor)\
**Post date:** [July 8, 2025, 12:19am UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/4 "2025-07-08T00:19:10Z")

</div>

Hello @zooko and @hanh!

Awesome, we love passkeys, and you’ve hit on one of the main improvements on MFKDF2, which is support for passkeys in a way that’s not possible in the original MFKDF.

We have a concrete roadmap attached to our proposal that uses the [PRF extension of the WebAuthn API](https://github.com/w3c/webauthn/wiki/Explainer:-PRF-extension), which is already supported by most hardware tokens, to derive factor material from passkeys. This will make passkeys a fully-supported factor in MFKDF2, and a co-equal citizen to existing factors like passwords, HOTP/TOTP, and more. Regardless of which factors are being used (passwords, soft tokens, hard tokens, etc.), MFKDF-based wallets still operate more like classic soft wallets (just with a much better UX!), than like hardware-based wallets.

Of course, one passkey alone would be scary to use for a cryptocurrency wallet, because the loss of a single device could cause a total loss of funds. However, with passkey factors in MFKDF2, passkeys can be used together with [threshold key derivation](https://mfkdf.com/docs/tutorial-03threshold.html) or [policy-based key derivation](https://mfkdf.com/docs/tutorial-05policy.html) to combine multiple passkey options, or different types of authentication factors, into one key derivation policy, creating custom pathways for account recovery if some of the factors are lost.

Our goal with MFKDF2 is not to tell Zcash users or wallet developers which factors to use or how to combine them into a policy. Rather, we aim to provide a flexible, general-purpose primitive that supports a wide variety of popular authentication factors and allows users to combine them into a cryptographically-enforced key derivation policy in whichever way is best for them. Our 5th milestone is specificially focused on working with Zcash wallet devs to make sure that option is available to users soon. Hope that helps!

---

<div class="post-metadata">

**Author:** ![zancas](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/zancas/32/42011_2.png) [@zancas](https://forum.zcashcommunity.com/u/zancas)\
**Post date:** [July 10, 2025, 7:10pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/5 "2025-07-10T19:10:58Z")

</div>

We’re excited to work with `Multifactor` as part of our strategy to focus on building the most resilient Zcash UX possible.

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [July 10, 2025, 7:24pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/6 "2025-07-10T19:24:33Z")

</div>

I am sorry but I don’t see how the prf extension will help you update on a different curve. Could you clarify?

---

<div class="post-metadata">

**Author:** ![multifactor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/multifactor/32/38394_2.png) [@multifactor](https://forum.zcashcommunity.com/u/multifactor)\
**Post date:** [July 11, 2025, 6:30pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/7 "2025-07-11T18:30:56Z")

</div>

Sure! Sorry for not explaining everything properly. The PRF extension will allow us to derive deterministic key material from a passkey, enabling it to be used as an input factor in MFKDF2 along side other types of already-supported factors, such as passwords, software tokens (HOTP/TOTP), out-of-band, etc., and then the MFKDF2-derived key can be used as the private key for a wallet. Of course, this will not magically turn a software-based wallet into a hardware wallet, but it will allow soft wallets to support new types of factors for key management and recovery than just passwords or seed phrases, which we know many users will appreciate. Hope that helps clarify, and happy to discuss further if you’d like to chat with us! 🙂

— Colin & Vivek

---

<div class="post-metadata">

**Author:** ![multifactor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/multifactor/32/38394_2.png) [@multifactor](https://forum.zcashcommunity.com/u/multifactor)\
**Post date:** [July 11, 2025, 6:36pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/8 "2025-07-11T18:36:02Z")

</div>

> [@zancas](#):
>
> We’re excited to work with `Multifactor` as part of our strategy to focus on building the most resilient Zcash UX possible.

Awesome, we’re super excited to work with `Zingo` as well! And more broadly, any Zcash wallet provider who is interested in optimizing for usable security is someone we’d love to support with this project.

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [July 12, 2025, 12:43am UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/9 "2025-07-12T00:43:08Z")

</div>

Ah I see. When passkeys are synced across devices, would that be equivalent to having the wallet seed key synced to the cloud?  
Sorry for being particularly paranoid about who can access my wallet.

---

<div class="post-metadata">

**Author:** ![artkor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/artkor/32/28573_2.png) [@artkor](https://forum.zcashcommunity.com/u/artkor)\
**Post date:** [July 12, 2025, 7:11am UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/10 "2025-07-12T07:11:22Z")

</div>

You are asking the right questions that are important to the entire community. And I’m personally grateful for those questions because it’s important for me to know all the possible vulnerabilities that may exist.

ZCG members attended the first meeting with Colin & Vivek as part of their presentation of this proposal and on behalf of ZCG I can say that they made a very good impression on all of us. They are great enthusiasts with huge experience in this area, with an impressive level of knowledge on the subject. So I am sure that all the questions on the topic are an important part for us as well as for them, because they can demonstrate their level.

I am truly glad that this team approached us and that Zcash and our wallets can be the platform for the MFKDF2 integration.

---

<div class="post-metadata">

**Author:** ![multifactor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/multifactor/32/38394_2.png) [@multifactor](https://forum.zcashcommunity.com/u/multifactor)\
**Post date:** [July 14, 2025, 2:14pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/11 "2025-07-14T14:14:44Z")

</div>

Good question! Passkeys are usually protected by a secure hardware element, meaning that they are theoretically inaccessible to the cloud provider even when synced between devices via the cloud.

However, what you’ve hit on (any individual factor having weaknesses) is exactly why passkeys are much more useful when used as an input factor for MFKDF2, where they can be combined with multiple other factors from different sources, rather than just using passkeys alone.

---

<div class="post-metadata">

**Author:** ![multifactor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/multifactor/32/38394_2.png) [@multifactor](https://forum.zcashcommunity.com/u/multifactor)\
**Post date:** [July 14, 2025, 2:21pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/12 "2025-07-14T14:21:40Z")

</div>

> [@artkor](#):
>
> ZCG members attended the first meeting with Colin & Vivek as part of their presentation of this proposal and on behalf of ZCG I can say that they made a very good impression on all of us. They are great enthusiasts with huge experience in this area, with an impressive level of knowledge on the subject. So I am sure that all the questions on the topic are an important part for us as well as for them, because they can demonstrate their level.
> 
> I am truly glad that this team approached us and that Zcash and our wallets can be the platform for the MFKDF2 integration.

Thanks for your kind words, @artkor! We have really enjoyed working with the ZCG team so far, and are looking forward to continuing to do so under this proposal. Our sincere thanks to the Zcash community for being leaders in this space.

---

<div class="post-metadata">

**Author:** ![ZCG](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/zcg/32/33712_2.png) [@ZCG](https://forum.zcashcommunity.com/u/ZCG)\
**Post date:** [August 4, 2025, 5:48pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/13 "2025-08-04T17:48:27Z")

</div>

@multifactor at the most recent meeting, ZCG voted to approve this proposal. Congratulations!

To keep the community informed, ZCG requests that you provide monthly updates via the forum in this thread.

Please check your forum inbox for a direct message from FPF with important next steps, including a link to the Milestone Payment Request Form and your unique validation code for submitting payment requests.

---

<div class="post-metadata">

**Author:** ![multifactor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/multifactor/32/38394_2.png) [@multifactor](https://forum.zcashcommunity.com/u/multifactor)\
**Post date:** [August 5, 2025, 4:15pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/14 "2025-08-05T16:15:53Z")

</div>

ZCG team, thank you for your support for MFKDF2! We are greatly looking forward to working closely with this community as we build the technology together. Cheers!

---

<div class="post-metadata">

**Author:** ![multifactor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/multifactor/32/38394_2.png) [@multifactor](https://forum.zcashcommunity.com/u/multifactor)\
**Post date:** [September 9, 2025, 2:53am UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/15 "2025-09-09T02:53:50Z")

</div>

Hi Zcash Community! As a quick update, we’ve published our draft standard for MFKDF2 here: [[2509.05893] Wrangling Entropy: Next-Generation Multi-Factor Key Derivation, Credential Hashing, and Credential Generation Functions](https://arxiv.org/abs/2509.05893)

Work on the MFKDF2 Rust implementation is ongoing, and we hope to have the first two grant milestones complete by the end of this month. Thanks for everyone’s ongoing support!

---

<div class="post-metadata">

**Author:** ![multifactor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/multifactor/32/38394_2.png) [@multifactor](https://forum.zcashcommunity.com/u/multifactor)\
**Post date:** [September 13, 2025, 8:46pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/16 "2025-09-13T20:46:11Z")

</div>

Hi Zcash Community! Second quick update, we’ve finished our JavaScript reference implementation for for MFKDF2 here: [GitHub - multifactor/MFKDF: JavaScript Implementation of a Multi-Factor Key Derivation Function (MFKDF)](https://github.com/multifactor/mfkdf)

The new MFKDF2 website is also live: [https://mfkdf.com](https://mfkdf.com)

We’re now laser focused on bringing the MFKDF2 Rust implementation up to the same standard, and will work with the ZCG team to ensure the milestones are still properly scoped. Thanks again!

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [September 14, 2025, 1:36am UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/17 "2025-09-14T01:36:05Z")

</div>

Looks like it should be possible to add a OTP to send funds by keeping only a UUID in the wallet and asking for a OTP to derive the secret key later. If so, that would offer a new level of protection.

---

<div class="post-metadata">

**Author:** ![multifactor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/multifactor/32/38394_2.png) [@multifactor](https://forum.zcashcommunity.com/u/multifactor)\
**Post date:** [September 17, 2025, 10:20pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/18 "2025-09-17T22:20:01Z")

</div>

Zcash Community: Our Rust repo for MFKDF is now live: [GitHub - multifactor/MFKDF2.rs: Rust Implementation of a Next-Generation Multi-Factor Key Derivation Function (MFKDF2)](https://github.com/multifactor/MFKDF2.rs?tab=readme-ov-file)

This repo is a work-in-progress, it is not yet audited or production ready. However, it’s available now for Zcash ecosystem developers to begin experimenting with. The JavaScript version also continues to be available. Onward to Milestone 2, where we’ll work on moving the MFKDF2 security fixes and feature updates into the Rust implementation!

---

<div class="post-metadata">

**Author:** ![multifactor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/multifactor/32/38394_2.png) [@multifactor](https://forum.zcashcommunity.com/u/multifactor)\
**Post date:** [November 8, 2025, 6:41pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/19 "2025-11-08T18:41:32Z")

</div>

Zcash Community:

Exciting news! After merging [https://github.com/multifactor/MFKDF2.rs/pull/43](https://github.com/multifactor/MFKDF2.rs/pull/43) in the next few days, we will have completed Milestone 2 of our community grant for MFKDF2.

Over the past weeks, we have finished the following:

- All proposed security improvements based on the findings for the original MFKDF
- Passkey as a factor (with biometrics attainable via device-native instructions)
- Threshold factor hints and upgradable KDF parameters over time
- MFCHF and MFDPG modes of operation via the getSubkey() and derivePassword() methods
- Verification between reference JS implementation and Rust implementation via comprehensive differential testing suite

In anticipation of the final Rust PR being merged within the next few days, we have already kicked off Phase 3 of the grant, which consists of red-team analysis of the MFKDF2 library, in collaboration with a team based in ETH Zurich.

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [November 20, 2025, 7:12pm UTC](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614/20 "2025-11-20T19:12:35Z")

</div>

Hi @multifactor , thanks for the update. I am investigating using this library to offer passkey and totp accounts. Unfortunately, I haven’t been able to make much progress.

You mentioned: Passkey as a factor (with biometrics attainable via device-native instructions)

I don’t see where the code for this is. Maybe you could provide a working example?

This library is for authentication only, and not for recovery? For example, if the device that has the policy data is lost, having access to the passkey and the totp will not allow the user to recover their funds.

[Next page](https://forum.zcashcommunity.com/t/grant-application-mfkdf2/51614.md?page=2)
