Function toUncompressedSec1 [src]
Serialize a point using the uncompressed SEC-1 format.
Prototype
pub fn toUncompressedSec1(p: P256) [65]u8
Parameters
p: P256
Source
pub fn toUncompressedSec1(p: P256) [65]u8 {
var out: [65]u8 = undefined;
out[0] = 4;
const xy = p.affineCoordinates();
out[1..33].* = xy.x.toBytes(.big);
out[33..65].* = xy.y.toBytes(.big);
return out;
}