Module dkg_primitives::utils
source · Functions
- Decrypt an encrypted
data
with asecret_key_bytes
using XChaCha20Poly1305 cipher. - Encrypt a vector of bytes
data
with asecret_key
. - Helper function to generate a crypto pair from seed
- Inserts a key of type
ACCOUNT
into the keystore for development/testing. - Inserts a key of type
dkg_runtime_primitives::KEY_TYPE
into the keystore for development/testing. - Select a random subset of unsigned u16 from a vector of u16s of size
amount
with a random seed ofseed
.