#how do i do this but in zig? (using k256)

1 messages · Page 1 of 1 (latest)

magic vine
#
let gen_prv: SecretKey = SecretKey::from_slice(&res[0 .. 32]).expect("Secret key is lhs 32 bytes (128 bit)");```

this is Secp256k1 or k256

id prefer to use this struct (though i dont even know how to use it  *if  its even completed that is*)
https://ziglang.org/documentation/master/std/#std.crypto.pcurves.secp256k1.Secp256k1
#

how do i do this but in zig? (using k256)

#

i wanna declare a secret key and turn it into a public key

tawdry trail
#

secp256k1 is just an elliptic curve, are you looking for ecdsa secp256k1?

magic vine
#

do i need a external library

tawdry trail
#

have you tried searching the std docs for "ecdsa secp256k1"