Some APIs look a little unsafe to use. Namely Key::update just takes a binary blob. Instead, it should be bound to some KeyType argument so that it is done appropriately. A method is_keytype<K>(&self) -> Result<bool> would also be nice to have to be able to check what keytype a given key has.
Some APIs look a little unsafe to use. Namely
Key::update
just takes a binary blob. Instead, it should be bound to someKeyType
argument so that it is done appropriately. A methodis_keytype<K>(&self) -> Result<bool>
would also be nice to have to be able to check what keytype a given key has.