Expand description
Interfaces for working with crypto related types from within the runtime.
Structs§
- Host
Functions - Provides implementations for the extern host functions.
Functions§
- bandersnatch_
generate - Generate a
bandersnatchkey pair for the given key type using an optionalseedand store it in the keystore. - bandersnatch_
sign - Sign the given
msgwith thebandersnatchkey that corresponds to the given public key and key type in the keystore. - bls381_
generate - Generate an
bls12-381key for the given key type using an optionalseedand 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-381key for the given key type using an optionalseedand store it in the keystore. - ecdsa_
generate - Generate an
ecdsakey for the given key type using an optionalseedand store it in the keystore. - ecdsa_
public_ keys - Returns all
ecdsapublic keys for the given key id from the keystore. - ecdsa_
sign - Sign the given
msgwith theecdsakey that corresponds to the given public key and key type in the keystore. - ecdsa_
sign_ prehashed - Sign the given a pre-hashed
msgwith theecdsakey that corresponds to the given public key and key type in the keystore. - ecdsa_
verify - Verify
ecdsasignature. - ecdsa_
verify_ prehashed - Verify
ecdsasignature with pre-hashedmsg. - ed25519_
generate - Generate an
ed22519key for the given key type using an optionalseedand store it in the keystore. - ed25519_
public_ keys - Returns all
ed25519public keys for the given key id from the keystore. - ed25519_
sign - Sign the given
msgwith theed25519key that corresponds to the given public key and key type in the keystore. - ed25519_
verify - Verify
ed25519signature. - 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
sr22519key for the given key type using an optional seed and store it in the keystore. - sr25519_
public_ keys - Returns all
sr25519public keys for the given key id from the keystore. - sr25519_
sign - Sign the given
msgwith thesr25519key that corresponds to the given public key and key type in the keystore. - sr25519_
verify - Verify
sr25519signature.