Skip to content
CCPEDIAby Unity Nodes
Incoming#928 Pull request

Proposal: Bytes, Cryptography and Structured Data for Daml (RFP 16)

Opened 23-10-2026 by gopikannappan, last activity today

  1. Incoming0.2 days so far23-10-2026
  2. Needs Championnot reached
  3. In Reviewnot reached
  4. Ready for Votenot reached
  5. Voting Livenot reached
  6. Approvednot reached
Waiting on
Nobody has picked it up
idle 0.2 days
Discussion
0 messages
0 people

Development Fund Proposal Submission

Proposal file: proposals/2026-10-Tirai-daml-bytes-crypto-toolkit.md

Applicant

Organization: Tirai Protocol

Author / Primary Contact: Gopi Kannappan

Champion: Needs Champion. In discussion with Foundation DevRel, who suggested this RFP area and offered to consider championing once the proposal is reviewed.


Proposal Classification

Proposal Type:

  • RFP-aligned proposal
  • Individual initiative

RFP / Roadmap Area: Developer Experience, Tooling & Education. Primarily RFP-16, Daml / Developer Usability Gaps, which explicitly names native bytes type support. Secondarily RFP-19, DPM Components and Extension Ecosystem.

Label: daml-tooling


Funding & Timeline

Total Funding Request: 300,000 CC

Project Duration: 9 weeks, about 2 months (three milestones of three weeks)

Maximum Amount: N/A. No maximum is published for this RFP area. Guidance welcome.

Maximum Duration: N/A. No maximum is published for this RFP area. Guidance welcome.


Summary

Daml has no byte array type, so any application working with externally produced bytes, a signature, a hash, a serialised record, builds it by hand over hex Text with three helpers. The DA.Crypto.Text primitives are capable but undocumented in use: nothing says whether they work in a choice body, nothing states their cost, and a malformed signature aborts the transaction rather than returning False.

This proposal delivers a reusable, documented Daml library and DPM component covering byte operations, cryptographic verification with its sharp edges made explicit, RLP encoding and Merkle proof verification, with test vectors taken from external authorities rather than from our own output.

The value to the ecosystem is that every team needing to verify something produced outside Canton stops rebuilding this layer privately, and the Daml team receives a measured report on the usability gaps. The work is already demonstrated rather than speculative: an RLP encoder passing 28 of 28 official Ethereum vectors, signature verification against Project Wycheproof vectors from inside a choice body, and published cost measurements.


Submission Checklist

  • Full proposal file is included in this PR
  • Organization and primary contact identified
  • Champion identified or Needs Champion selected
  • RFP / roadmap alignment identified, if applicable
  • Total funding request provided
  • Project duration provided
  • Proposal is within any RFP maximum amount (none published)
  • Proposal is within any RFP maximum duration (none published)
  • Milestones and milestone funding are defined in the proposal
  • Acceptance criteria are based on ecosystem value
  • Architectural alignment is addressed