mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
std.crypto.ecc: add support for the secp256k1 curve Usage of the secp256k1 elliptic curve recently grew exponentially, since this is the curve used by Bitcoin and other popular blockchains such as Ethereum. With this, Zig has support for all the widely deployed elliptic curves today.
12 lines
343 B
Zig
12 lines
343 B
Zig
const std = @import("std");
|
|
const common = @import("../common.zig");
|
|
|
|
const Field = common.Field;
|
|
|
|
pub const Fe = Field(.{
|
|
.fiat = @import("secp256k1_64.zig"),
|
|
.field_order = 115792089237316195423570985008687907853269984665640564039457584007908834671663,
|
|
.field_bits = 256,
|
|
.saturated_bits = 256,
|
|
.encoded_length = 32,
|
|
});
|