Removed `password` from responses to operations which require them. This is for two reasons,
- Consistency between how rulesets operate and how manual processing works. A rule can `Approve` but require the actual password to be stored in the clef storage.
With this change, the same stored password can be used even if rulesets are not enabled, but storage is.
- It also removes the usability-shortcut that a UI might otherwise want to implement; remembering passwords. Since we now will not require the
password on every `Approve`, there's no need for the UI to cache it locally.
- In a future update, we'll likely add `clef_storePassword` to the internal API, so the user can store it via his UI (currently only CLI works).
Affected datatypes:
-`SignTxResponse`
-`SignDataResponse`
-`NewAccountResponse`
If `clef` requires a password, the `OnInputRequired` will be used to collect it.
### 5.0.0
Changed the namespace format to adhere to the legacy ethereum format: `name_methodName`. Changes:
*`ApproveTx` -> `ui_approveTx`
*`ApproveSignData` -> `ui_approveSignData`
*`ApproveExport` -> `removed`
*`ApproveImport` -> `removed`
*`ApproveListing` -> `ui_approveListing`
*`ApproveNewAccount` -> `ui_approveNewAccount`
*`ShowError` -> `ui_showError`
*`ShowInfo` -> `ui_showInfo`
*`OnApprovedTx` -> `ui_onApprovedTx`
*`OnSignerStartup` -> `ui_onSignerStartup`
*`OnInputRequired` -> `ui_onInputRequired`
### 4.0.0
* Bidirectional communication implemented, so the UI can query `clef` via the stdin/stdout RPC channel. Methods implemented are:
-`clef_listWallets`
-`clef_listAccounts`
-`clef_listWallets`
-`clef_deriveAccount`
-`clef_importRawKey`
-`clef_openWallet`
-`clef_chainId`
-`clef_setChainId`
-`clef_export`
-`clef_import`
* The type `Account` was modified (the json-field `type` was removed), to consist of
```golang
type Account struct {
Address common.Address `json:"address"` // Ethereum account address derived from the key
URL URL `json:"url"` // Optional resource locator within a backend
}
```
### 3.2.0
* Make `ShowError`, `OnApprovedTx`, `OnSignerStartup` be json-rpc [notifications](https://www.jsonrpc.org/specification#notification):
> A Notification is a Request object without an "id" member. A Request object that is a Notification signifies the Client's lack of interest in the corresponding Response object, and as such no Response object needs to be returned to the client. The Server MUST NOT reply to a Notification, including those that are within a batch request.
>
> Notifications are not confirmable by definition, since they do not have a Response object to be returned. As such, the Client would not be aware of any errors (like e.g. "Invalid params","Internal error"
### 3.1.0
* Add `ContentType``string` to `SignDataRequest` to accommodate the latest EIP-191 and EIP-712 implementations.