material(
key) ->m,err
Decode a key's raw material after validating every member
Returns { alg, pub, priv } with raw bytes: pub is the 32-byte
Ed25519 point or the 65-byte uncompressed P-256 point, priv the
32-byte seed, the 32-byte scalar or the secret, and nil when the key
has no private part. The raw bytes never land on the key table, so
encode cannot leak them. Checks: a supported kty and crv, every
member strict base64url of the right length (a secret of 32 bytes or
more), alg absent or the key's own, use absent or sig, kid
absent or a string.