Module sp_io::crypto

source ·
Expand description

Interfaces for working with crypto related types from within the runtime.

Structs§

  • Provides implementations for the extern host functions.

Functions§

  • Generate an ecdsa key for the given key type using an optional seed and store it in the keystore.
  • Returns all ecdsa public keys for the given key id from the keystore.
  • Sign the given msg with the ecdsa key that corresponds to the given public key and key type in the keystore.
  • Sign the given a pre-hashed msg with the ecdsa key that corresponds to the given public key and key type in the keystore.
  • Verify ecdsa signature.
  • Verify ecdsa signature with pre-hashed msg.
  • Generate an ed22519 key for the given key type using an optional seed and store it in the keystore.
  • Returns all ed25519 public keys for the given key id from the keystore.
  • Sign the given msg with the ed25519 key that corresponds to the given public key and key type in the keystore.
  • Verify ed25519 signature.
  • Verify and recover a SECP256k1 ECDSA signature.
  • Verify and recover a SECP256k1 ECDSA signature.
  • Generate an sr22519 key for the given key type using an optional seed and store it in the keystore.
  • Returns all sr25519 public keys for the given key id from the keystore.
  • Sign the given msg with the sr25519 key that corresponds to the given public key and key type in the keystore.
  • Verify sr25519 signature.