A signature API linked to the user's wallet

A useful API for developers would be one that allows users to sign a message using an account from their Brave integrated wallet.

Further, a more general JWK (https://datatracker.ietf.org/doc/html/rfc7517) signing tool would be great.

Ideally the developer would specify the format (e.g. a currency ticker ETH, BTC etc) or a JWA algorithm (https://datatracker.ietf.org/doc/html/rfc7518#section-3.1) and the message. The signing process would then be handled by the browser (perhaps allowing for hardware key integration) and the signature returned to the developer. A similar api would be needed for verification.

Is this a good idea?