[][src]Module sp_io::crypto

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

Structs

HostFunctions

Provides implementations for the extern host functions.

Functions

ecdsa_generate

Generate an ecdsa key for the given key type using an optional seed and store it in the keystore.

ecdsa_public_keys

Returns all ecdsa public keys for the given key id from the keystore.

ecdsa_sign

Sign the given msg with the ecdsa key that corresponds to the given public key and key type in the keystore.

ecdsa_verify

Verify ecdsa signature.

ed25519_generate

Generate an ed22519 key for the given key type using an optional seed and store it in the keystore.

ed25519_public_keys

Returns all ed25519 public keys for the given key id from the keystore.

ed25519_sign

Sign the given msg with the ed25519 key that corresponds to the given public key and key type in the keystore.

ed25519_verify

Verify ed25519 signature.

finish_batch_verify

Finish batch-verification of signatures.

secp256k1_ecdsa_recover

Verify and recover a SECP256k1 ECDSA signature.

secp256k1_ecdsa_recover_compressed

Verify and recover a SECP256k1 ECDSA signature.

sr25519_generate

Generate an sr22519 key for the given key type using an optional seed and store it in the keystore.

sr25519_public_keys

Returns all sr25519 public keys for the given key id from the keystore.

sr25519_sign

Sign the given msg with the sr25519 key that corresponds to the given public key and key type in the keystore.

sr25519_verify

Verify sr25519 signature.

start_batch_verify

Start verification extension.