Module sp_runtime::testing::sr25519[][src]

Simple sr25519 (Schnorr-Ristretto) API.

Note: CHAIN_CODE_LENGTH must be equal to crate::crypto::JUNCTION_ID_LEN for this to work.

Structs

LocalizedSignature

A localized signature also contains sender information. NOTE: Encode and Decode traits are supported in ed25519 but not possible for now here.

Pair

An Schnorrkel/Ristretto x25519 (“sr25519”) key pair.

Public

An Schnorrkel/Ristretto x25519 (“sr25519”) public key.

Signature

An Schnorrkel/Ristretto x25519 (“sr25519”) signature.

Constants

CRYPTO_ID

An identifier used to match public keys against sr25519 keys

Functions

verify_batch

Batch verification.