Programming Search⌘K

std.crypto.sign.Ed25519

The entries of std.crypto.sign.Ed25519 in the Zig reference. This page has 47 cards.

std.crypto.sign.Ed25519.KeyPair.signerWithBaseNonce

pub fn signerWithBaseNonce(key_pair: KeyPair, base_nonce: [32]u8, noise: ?[noise_length]u8) (IdentityElementError || KeyMismatchError || NonCanonicalError || WeakPublicKeyError)!Signer

Create a signer that can be used for incremental signing, using a custom base nonce. `base_nonce` must be unique for each signed message; otherwise, the secret key can be trivially recovered by an attacker.

Kind
function
Module
std.crypto.sign.Ed25519

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.

std.crypto.sign.Ed25519.verifyBatch

pub fn verifyBatch(io: std.Io, comptime count: usize, signature_batch: [count]BatchElement) (SignatureVerificationError || IdentityElementError || WeakPublicKeyError || EncodingError || NonCanonicalError)!void

Verify several signatures in a single operation, much faster than verifying signatures one-by-one.

Kind
function
Module
std.crypto.sign.Ed25519

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.