The OneKey(PublicKey, PrivateKey) constructor does not consistently set the algorithm (3) key in the resulting map.
This causes the resulting CBOR object to violate specs such as the WebAuthn spec, and is just generally poor practice.
(The exception are EDDSA keys, which set the key.)
The
OneKey(PublicKey, PrivateKey)constructor does not consistently set thealgorithm (3)key in the resulting map.This causes the resulting CBOR object to violate specs such as the WebAuthn spec, and is just generally poor practice.
(The exception are EDDSA keys, which set the key.)