Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Moddable-OpenSource/moddable
/ H2B
Function
H2B
tests/modules/crypt/digest/testvectors.js:9–12 ·
view source on GitHub ↗
(hstr)
Source
from the content-addressed store, hash-verified
7
import
Bin from
"bin"
;
8
9
function
H2B(hstr)
10
{
11
return
ArrayBuffer.fromBigInt(BigInt(hstr));
12
}
13
14
function
B2H(b)
15
{
Callers
1
testvectors.js
File · 0.70
Calls
1
fromBigInt
Method · 0.80
Tested by
no test coverage detected