Encodes point P
into Uint8List
.
encodePoint([1,2]); // [2, 0, ..., 0, 0, 128]
Source
Uint8List encodePoint(List<int> P) { var x = P[0]; var y = P[1]; final encoded = integerToBytes(y + ((x & 1) << 255), 32); return encoded; }
Encodes point P
into Uint8List
.
encodePoint([1,2]); // [2, 0, ..., 0, 0, 128]
Uint8List encodePoint(List<int> P) { var x = P[0]; var y = P[1]; final encoded = integerToBytes(y + ((x & 1) << 255), 32); return encoded; }