You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
/** |
|
* A fundamental building block of Ethereum is the underlying |
|
* cryptographic primitives. |
|
* |
|
* @_section: api/crypto:Cryptographic Functions [about-crypto] |
|
*/ |
|
null; |
|
// We import all these so we can export lock() |
|
import { computeHmac } from "./hmac.js"; |
|
import { keccak256 } from "./keccak.js"; |
|
import { ripemd160 } from "./ripemd160.js"; |
|
import { pbkdf2 } from "./pbkdf2.js"; |
|
import { randomBytes } from "./random.js"; |
|
import { scrypt, scryptSync } from "./scrypt.js"; |
|
import { sha256, sha512 } from "./sha2.js"; |
|
export { computeHmac, randomBytes, keccak256, ripemd160, sha256, sha512, pbkdf2, scrypt, scryptSync }; |
|
export { SigningKey } from "./signing-key.js"; |
|
export { Signature } from "./signature.js"; |
|
/** |
|
* Once called, prevents any future change to the underlying cryptographic |
|
* primitives using the ``.register`` feature for hooks. |
|
*/ |
|
function lock() { |
|
computeHmac.lock(); |
|
keccak256.lock(); |
|
pbkdf2.lock(); |
|
randomBytes.lock(); |
|
ripemd160.lock(); |
|
scrypt.lock(); |
|
scryptSync.lock(); |
|
sha256.lock(); |
|
sha512.lock(); |
|
randomBytes.lock(); |
|
} |
|
export { lock }; |
|
//# sourceMappingURL=index.js.map
|