ipfs storage for images and other nontext items. for use with etica - runs on etica network and currencys
https://collect.etica-stats.org
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.
17 lines
460 B
17 lines
460 B
import { keccak256 } from "../crypto/index.js"; |
|
import { toUtf8Bytes } from "../utils/index.js"; |
|
/** |
|
* A simple hashing function which operates on UTF-8 strings to |
|
* compute an 32-byte identifier. |
|
* |
|
* This simply computes the [UTF-8 bytes](toUtf8Bytes) and computes |
|
* the [[keccak256]]. |
|
* |
|
* @example: |
|
* id("hello world") |
|
* //_result: |
|
*/ |
|
export function id(value) { |
|
return keccak256(toUtf8Bytes(value)); |
|
} |
|
//# sourceMappingURL=id.js.map
|