referrerpolicy=no-referrer-when-downgrade

Module crypto

Source
Expand description

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

Structs§

HostFunctions
Provides implementations for the extern host functions.

Functions§

bandersnatch_generate
Generate a bandersnatch key pair for the given key type using an optional seed and store it in the keystore.
bandersnatch_sign
Sign the given msg with the bandersnatch key that corresponds to the given public key and key type in the keystore.
bls381_generate
Generate an bls12-381 key for the given key type using an optional seed and store it in the keystore.
bls381_generate_proof_of_possession
Generate a ‘bls12-381’ Proof Of Possession for the corresponding public key.
ecdsa_bls381_generate
Generate combination ecdsa & bls12-381 key for the given key type using an optional seed and store it in the keystore.
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_sign_prehashed
Sign the given a pre-hashed msg with the ecdsa key that corresponds to the given public key and key type in the keystore.
ecdsa_verify
Verify ecdsa signature.
ecdsa_verify_prehashed
Verify ecdsa signature with pre-hashed msg.
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.
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.