A blind key pair.

Fields

blind_public_key: BlindPublicKey,
blind_secret_key: BlindSecretKey,

Functions

fn init(key_pair: Ed25519.KeyPair, blind_seed: [blind_seed_length]u8, ctx: []const u8) NonCanonicalError || IdentityElementError!BlindKeyPair

Create an blind key pair from an existing key pair, a blinding seed and a contex…

Create an blind key pair from an existing key pair, a blinding seed and a context.

fn sign(key_pair: BlindKeyPair, msg: []const u8, noise: ?[noise_length]u8) IdentityElementError || KeyMismatchError || NonCanonicalError || WeakPublicKeyError!Signature

Sign a message using a blind key pair, and optional random noise. Having noise …

Sign a message using a blind key pair, and optional random noise. Having noise creates non-standard, non-deterministic signatures, but has been proven to increase resilience against fault attacks.