MCPcopy Create free account
hub / github.com/allocnode/oh-my-sage / encodePoint

Method encodePoint

ref/gateway_client.js:102–109  ·  view source on GitHub ↗
(point)

Source from the content-addressed store, hash-verified

100 }
101
102 encodePoint(point) {
103 const result = Buffer.alloc(66);
104 result[0] = 65;
105 result[1] = 4;
106 Buffer.from(point.getX().toArray('be', 32)).copy(result, 2);
107 Buffer.from(point.getY().toArray('be', 32)).copy(result, 34);
108 return result;
109 }
110
111 encodePointForHash(point) {
112 const result = Buffer.alloc(69);

Callers 4

encodeZKPMethod · 0.95
writeRoundOneMethod · 0.95
writeRoundTwoMethod · 0.95
gateway.6cbc85.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected