-
| I was able to import JWK private key based on the ecPublicKey example However, if I remove x and y (coordinates of public key), it will throw  | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            panva
          
      
      
        Jun 4, 2022 
      
    
    Replies: 1 comment
-
| Because that's how the different specifications are defined and layered. The JWK definition requires public key components to always be present. Web Crypto API checks the input to be a valid JWK. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        jasonclg
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Because that's how the different specifications are defined and layered.
The JWK definition requires public key components to always be present. Web Crypto API checks the input to be a valid JWK.