cryptoToMultikey(keys: CryptoKeyPair): Promise<Multikey>
Convert a Crypto Key pair to Multikeys. This function exports the cryptokeys into a JWK Key pair,
and uses the JWKToMultikey
function.
Works for ecdsa
(both P-384
and P-256
), and eddsa
.
Note that, because WebCrypto methods are asynchronous, so is this function.
keys: CryptoKeyPair
Promise<Multikey>