Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Update the access control example crypto library
Browse files Browse the repository at this point in the history
assemblyscript/crypto.ts is now way more readable, faster (fixed-size
arrays cannot really be fixed-size in AS, and classes can be more
efficient) and smaller. Signatures and EC arithmetic are now done on
the Ristretto group for yet another slight speedup.
  • Loading branch information
jedisct1 committed Mar 11, 2019
1 parent dee4681 commit 2917fab
Show file tree
Hide file tree
Showing 6 changed files with 864 additions and 515 deletions.
3 changes: 2 additions & 1 deletion 105_access_control_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ The protocol assumes that the client and the server communicate over a secure ch

This code is used both by the JavaScript client code and by the AssemblyScript running on Terrarium. It implements the following cryptographic primitives in AssemblyScript:

- The EdDSA signature scheme
- Schnorr signatures (Ed25519 and over the Ristretto group)
- Finite field arithmetic on integers and Curve25519 points
- The HMAC-SHA-512 keyed MAC.

Functions exported by this module can be called by the main server code using their native interface, since both are written in the same language.
Expand Down
Loading

0 comments on commit 2917fab

Please sign in to comment.