(point)
| 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); |
no outgoing calls
no test coverage detected