Skip to content

Commit

Permalink
Link to crypto subtle for explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
littledan authored Mar 31, 2024
1 parent 4dd6a3b commit 2ebeebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ It turns out that existing Signal libraries are not all that different from each
* However, important to not literally shadow the exact same names!
* Tension between "usability by JS devs" and "providing all the hooks to frameworks"
* Idea: Provide all the hooks, but include errors when misused if possible.
* Idea: Put subtle APIs in a `subtle` namespace
* Idea: Put subtle APIs in a `subtle` namespace, similar to [`crypto.subtle`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle), to mark the line between APIs which are good to use for most developers, and the more advanced ones.
* Be implementable and usable with good performance -- the surface API doesn't cause too much overhead
* Enable subclassing, so that frameworks can add their own methods and fields, including private fields. This is important to avoid the need for additional allocations at the framework level. See "Memory management" below.

Expand Down

0 comments on commit 2ebeebc

Please sign in to comment.