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
bandersnatch
key pair for the given key type using an optionalseed
and store it in the keystore. - bandersnatch_
sign - Sign the given
msg
with thebandersnatch
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 optionalseed
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 optionalseed
and store it in the keystore. - 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.