• Convert the Crypto values from JWK to the equivalent Multikey Pairs' binary data. The final encoding, with preambles, are done in the general level.

    For EDDSA, this is essentially, an empty function, which simply returns the x and d values. The interface is there to be reused by the ECDSA equivalent, which must do some extra processing.

    Parameters

    • _curve: CryptoCurves

      unused in this function, just a placeholder

    • x: Uint8Array

      x value for the elliptical curve, as extracted from JWK

    • d: Uint8Array

      d (private) value for the elliptical curve, as extracted from JWK

    • Optional_y: Uint8Array

      unused in this function, just a placeholder

    Returns MultikeyBinary