Expand description
Interfaces for working with crypto related types from within the runtime.
Structs§
- Host
Functions - Provides implementations for the extern host functions.
Functions§
- ecdsa_
generate - Generate an
ecdsa
key for the given key type using an optionalseed
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 theecdsa
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 theecdsa
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-hashedmsg
. - ed25519_
generate - Generate an
ed22519
key for the given key type using an optionalseed
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 theed25519
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 thesr25519
key that corresponds to the given public key and key type in the keystore. - sr25519_
verify - Verify
sr25519
signature.