The real work for the whole library are done in the main functions in this module.
Licensed by under the W3C Software and Document License, https://www.w3.org/Consortium/Legal/copyright-software. Copyright ©2024 World Wide Web Consortium. https://www.w3.org/copyright/software-license-2023/
Convert JWK Key pair to Multikeys. This function decodes the JWK keys, finds out which binary key it encodes and converts the key to the multikey versions depending on the exact curve.
Generic function to convert a multikey pair to JWK. This function decodes the multikey data into a binary buffer, checks the preambles and invokes the crypto curve specific converter functions (depending on the preamble values) that do the final conversion from the binary data to JWK.
Usage
import * as mod from "lib/convert.ts";