PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@iota/iota-sdk/dist/esm/transactions
Просмотр файла: hash.js
import { blake2b } from "@noble/hashes/blake2b";
function hashTypedData(typeTag, data) {
const typeTagBytes = Array.from(`${typeTag}::`).map((e) => e.charCodeAt(0));
const dataWithTag = new Uint8Array(typeTagBytes.length + data.length);
dataWithTag.set(typeTagBytes);
dataWithTag.set(data, typeTagBytes.length);
return blake2b(dataWithTag, { dkLen: 32 });
}
export {
hashTypedData
};
//# sourceMappingURL=hash.js.map
Выполнить команду
Для локальной разработки. Не используйте в интернете!