-
Notifications
You must be signed in to change notification settings - Fork 0
Rename std/crypto to std/hash #41
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestlowNice to have, no rushNice to have, no rushstdlibStandard library modules and builtinsStandard library modules and builtins
Description
The std/crypto module name is misleading. The module only provides sha256, which is a hashing function. The name suggests a broader cryptography library, or worse, gets associated with web3 nonsense.
Rename to std/hash. If HMAC or key derivation functions are added later, std/digest is another option (Ruby's convention), but std/hash covers the current scope.
Changes needed:
- Rename
codegen/src/runtime/crypto.rstohash.rs - Update
runtime_sigs.rs(function registration) - Update
typechecker.rs(module registration,std/hash { sha256 }) - Update
aster-pkg/src/main.aster(use std/hash { sha256 }) - Update any tests that import
std/crypto
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestlowNice to have, no rushNice to have, no rushstdlibStandard library modules and builtinsStandard library modules and builtins