type indicates not only the encoding of the key, but also the the algorithm used when signing. Until now only RSA keys have types that are different from name.
@override String get type => 'ecdsa-sha2-$curveId';