Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Moddable-OpenSource/moddable
/ sign
Method
sign
modules/crypt/etc/hmac.js:95–101 ·
view source on GitHub ↗
(H)
Source
from the content-addressed store, hash-verified
93
return
this.close();
94
};
95
sign(H) {
96
this.write(H);
97
let
sig = this.close();
98
if
(this.hashLen)
99
sig = sig.slice(0, this.hashLen);
100
return
sig;
101
};
102
verify(H, sig) {
103
this.write(H);
104
let
t = this.close();
Callers
nothing calls this directly
Calls
3
close
Method · 0.95
write
Method · 0.65
slice
Method · 0.65
Tested by
no test coverage detected