Skip to content

stdlib/ed25519View source ↗

ed25519

17 items · generated by scribe fromstdlib/ed25519.fd· synced 2026-11-15

stdlib/ed2551917 items

Contents

Ge25519

A point in extended coordinates.

pub struct Ge25519 {

Fields:

NameType
xFe25519
yFe25519
zFe25519
tFe25519

Defined at line 48


Ge25519Decoded

The result of decoding 32 bytes: ok false when they are no point.

pub struct Ge25519Decoded {

Fields:

NameType
okbool
pGe25519

Defined at line 56


ed25519_public_key

The 32-byte public key of a 32-byte seed (the RFC 8032 secret key).

pub fn ed25519_public_key(seed: Vec<i64>) -> Vec<i64> {

Parameters:

  • seed: Vec<i64>

Returns: Vec<i64>

Defined at line 401


ed25519_keypair

seed || public key (64 bytes), the libsodium secret-key layout that ed25519_sign accepts to skip recomputing the public key.

pub fn ed25519_keypair(seed: Vec<i64>) -> Vec<i64> {

Parameters:

  • seed: Vec<i64>

Returns: Vec<i64>

Defined at line 413


ed25519_sign

The 64-byte signature R || S of msg (RFC 8032 §5.1.6). secret_key is the 32-byte seed, or the 64-byte seed || public key of ed25519_keypair (the public half must be the seed’s: signing with another public key leaks the secret key, so never take it from untrusted input). Panics on any other length.

pub fn ed25519_sign(secret_key: Vec<i64>, msg: Vec<i64>) -> Vec<i64> {

Parameters:

  • secret_key: Vec<i64>
  • msg: Vec<i64>

Returns: Vec<i64>

Defined at line 425


ed25519_verify

True when sig is a valid signature of msg under public_key (RFC 8032 §5.1.7, cofactorless). False for wrong lengths, non-byte elements, a public key that is no point, S >= L, or a wrong signature.

pub fn ed25519_verify(public_key: Vec<i64>, msg: Vec<i64>, sig: Vec<i64>) -> bool {

Parameters:

  • public_key: Vec<i64>
  • msg: Vec<i64>
  • sig: Vec<i64>

Returns: bool

Defined at line 456


Generated by scribe, the Fides documentation generator