Crate trezor_crypto_lib

Crate trezor_crypto_lib 

Source
Expand description

A dalek cryptography based reproduction of the ed25519-donna API

See:

  • https://github.com/ryankurte/rust-dalek-donna

Modules§

consts
ffi
FFI bindings derived from ed25519-dalek headers
test
Helpers to ensure ABI compatibility for use when testing

Functions§

dalek_curve25519_scalarmult
Scalar multiplication using the provided basepoint
dalek_curved25519_scalarmult_basepoint
Perform scalar multiplication of e over the edwards curve point
dalek_ed25519_publickey
Derives a public key from a private key
dalek_ed25519_publickey_ext
Generate a public key using the expanded (sk + sk_ext) form of the secret key
dalek_ed25519_randombytes_unsafe
Generate random bytes using the system RNG
dalek_ed25519_sign
Signs a message using the provided secret key
dalek_ed25519_sign_ext
Generate a signature using the expanded (sk + sk_ext) form of the secret key.
dalek_ed25519_sign_open
Verifies a signed message
dalek_ed25519_sign_open_batch
Batch verify signatures, valid[i] == 1 for valid, 0 otherwise

Type Aliases§

PublicKey
PublicKey array
Scalar
Scalar array
SecretKey
SecretKey array
Signature
Signature array
UInt
Alias for size_t on 64-bit platforms where size_t is c_ulong