Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Moddable-OpenSource/moddable
/ add
Method
add
modules/crypt/arith/ec.js:49–52 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
47
return
new
ECPoint(this.m - p.y, p.x, p.z == 0n, this.m);
48
}
49
add(a, b) {
50
let
r = this._add(a, b);
51
return
new
ECPoint(r.x, r.y, r.z == 0n, this.m);
52
}
53
_add(a, b) @
"xs_ec2_add"
;
54
mul(a, k) {
55
let
r = this._mul(a, k);
Callers
1
test
Function · 0.95
Calls
1
_add
Method · 0.80
Tested by
1
test
Function · 0.76