I do believe that keychain accepts the url protocol hive:// I know the inbuilt QR code generator makes things like this: hive://sign/op/WyJ0cmFuc2ZlciIseyJ0byI6InRoZWNyYXp5Z20iLCJhbW91bnQiOiIxIEhJVkUiLCJtZW1vIjoiVGVzdCJ9XQ.. which is just base64 of the details (although I'm not 100% sure what the two extra . are for)

EDIT: I figured out what the .. was: https://www.npmjs.com/package/hive-uri