#How to use std.crypto
1 messages · Page 1 of 1 (latest)
using ecdsa: https://github.com/ziglang/zig/blob/9f84f7f921d8a74926bb2f0ca1969b7b00f08172/lib/std/crypto/ecdsa.zig#L379-L393
using ed25519: https://github.com/ziglang/zig/blob/9f84f7f921d8a74926bb2f0ca1969b7b00f08172/lib/std/crypto/25519/ed25519.zig#L494-L504 (but use KeyPair.create(null) to generate a random key pair)
is i use ed25519 is it safe to sign more than one message with a key pari or should i regenerate the key pair?