UNPKG
@coral-xyz/anchor
Version:
latest (0.32.1)
0.32.1
0.32.0
0.31.1
0.31.0
0.30.1
0.30.0
0.29.0
0.28.1-beta.2
0.28.1-beta.1
0.28.0
0.27.0
0.26.0
Anchor client
github.com/coral-xyz/anchor
coral-xyz/anchor
@coral-xyz/anchor
/
dist
/
cjs
/
utils
/
sha256.js
8 lines
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
hash
= hash;
const
sha256_1 =
require
(
"@noble/hashes/sha256"
);
function
hash
(
data
) {
return
new
TextDecoder
().
decode
((
0
, sha256_1.
sha256
)(data)); }
//# sourceMappingURL=sha256.js.map