-
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
Activity
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
The
std/cryptomodule name is misleading. The module only providessha256, 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/digestis another option (Ruby's convention), butstd/hashcovers the current scope.Changes needed:
codegen/src/runtime/crypto.rstohash.rsruntime_sigs.rs(function registration)typechecker.rs(module registration,std/hash { sha256 })aster-pkg/src/main.aster(use std/hash { sha256 })std/crypto