You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a0943b8
Browse filesBrowse the repository at this point in the historyBrowse files
"value": "\u0019Ethereum Signed Message:\n11hello world",
@@ -133,7 +133,7 @@ This occurs _after_ successful completion of the entire signing procedure, but r
133
133
134
134
A ruleset that implements a rate limitation needs to know what transactions are sent out to the external interface. By hooking into this methods, the ruleset can maintain track of that count.
135
135
136
-
**OBS:** Note that if an attacker can restore your `clef` data to a previous point in time (e.g through a backup), the attacker can reset such windows, even if he/she is unable to decrypt the content.
136
+
**OBS:** Note that if an attacker can restore your `clef` data to a previous point in time (e.g through a backup), the attacker can reset such windows, even if he/she is unable to decrypt the content.
137
137
138
138
The `OnApproved` method cannot be responded to, it's purely informative
139
139
@@ -179,7 +179,7 @@ Example:
179
179
```
180
180
### ListRequest
181
181
182
-
Sent when a request has been made to list addresses. The UI is provided with the full `account`s, including local directory names. Note: this information is not passed back to the external caller, who only sees the `address`es.
182
+
Sent when a request has been made to list addresses. The UI is provided with the full `account`s, including local directory names. Note: this information is not passed back to the external caller, who only sees the `address`es.
The API uses [semantic versioning](https://semver.org/).
4
+
5
+
TL;DR: Given a version number MAJOR.MINOR.PATCH, increment the:
6
+
7
+
* MAJOR version when you make incompatible API changes,
8
+
* MINOR version when you add functionality in a backwards-compatible manner, and
9
+
* PATCH version when you make backwards-compatible bug fixes.
10
+
11
+
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
12
+
2
13
3
14
### 6.0.0
4
15
@@ -14,15 +25,15 @@ The addition of `contentType` makes it possible to use the method for different
14
25
* signing clique headers,
15
26
* signing plain personal messages,
16
27
* The external method `account_signTypedData` implements [EIP-712](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md) and makes it possible to sign typed data.
17
-
28
+
18
29
#### 4.0.0
19
30
20
-
* The external `account_Ecrecover`-method was removed.
31
+
* The external `account_Ecrecover`-method was removed.
21
32
* The external `account_Import`-method was removed.
22
33
23
34
#### 3.0.0
24
35
25
-
* The external `account_List`-method was changed to not expose `url`, which contained info about the local filesystem. It now returns only a list of addresses.
36
+
* The external `account_List`-method was changed to not expose `url`, which contained info about the local filesystem. It now returns only a list of addresses.
26
37
27
38
#### 2.0.0
28
39
@@ -33,15 +44,3 @@ makes the `accounts_signTransaction` identical to the old `eth_signTransaction`.
33
44
#### 1.0.0
34
45
35
46
Initial release.
36
-
37
-
### Versioning
38
-
39
-
The API uses [semantic versioning](https://semver.org/).
40
-
41
-
TLDR; Given a version number MAJOR.MINOR.PATCH, increment the:
42
-
43
-
* MAJOR version when you make incompatible API changes,
44
-
* MINOR version when you add functionality in a backwards-compatible manner, and
45
-
* PATCH version when you make backwards-compatible bug fixes.
46
-
47
-
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
Copy file name to clipboardExpand all lines: cmd/clef/intapi_changelog.md
+41-36Lines changed: 41 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,39 @@
1
-
###Changelog for internal API (ui-api)
1
+
## Changelog for internal API (ui-api)
2
2
3
-
### 6.0.0
3
+
The API uses [semantic versioning](https://semver.org/).
4
+
5
+
TL;DR: Given a version number MAJOR.MINOR.PATCH, increment the:
6
+
7
+
* MAJOR version when you make incompatible API changes,
8
+
* MINOR version when you add functionality in a backwards-compatible manner, and
9
+
* PATCH version when you make backwards-compatible bug fixes.
10
+
11
+
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
12
+
13
+
### 7.0.0
14
+
15
+
- The `message` field was renamed to `messages` in all data signing request methods to better reflect that it's a list, not a value.
16
+
- The `storage.Put` and `storage.Get` methods in the rule execution engine were lower-cased to `storage.put` and `storage.get` to be consistent with JavaScript call conventions.
17
+
18
+
### 6.0.0
4
19
5
-
Removed `password` from responses to operations which require them. This is for two reasons,
20
+
Removed `password` from responses to operations which require them. This is for two reasons,
6
21
7
-
- 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.
8
-
With this change, the same stored password can be used even if rulesets are not enabled, but storage is.
9
-
- It also removes the usability-shortcut that a UI might otherwise want to implement; remembering passwords. Since we now will not require the
10
-
password on every `Approve`, there's no need for the UI to cache it locally.
11
-
- 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).
22
+
- 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.
23
+
With this change, the same stored password can be used even if rulesets are not enabled, but storage is.
24
+
- It also removes the usability-shortcut that a UI might otherwise want to implement; remembering passwords. Since we now will not require the
25
+
password on every `Approve`, there's no need for the UI to cache it locally.
26
+
- 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).
12
27
13
28
Affected datatypes:
14
29
-`SignTxResponse`
15
30
-`SignDataResponse`
16
31
-`NewAccountResponse`
17
32
18
-
If `clef` requires a password, the `OnInputRequired` will be used to collect it.
33
+
If `clef` requires a password, the `OnInputRequired` will be used to collect it.
19
34
20
35
21
-
### 5.0.0
36
+
### 5.0.0
22
37
23
38
Changed the namespace format to adhere to the legacy ethereum format: `name_methodName`. Changes:
24
39
@@ -38,7 +53,7 @@ Changed the namespace format to adhere to the legacy ethereum format: `name_meth
38
53
### 4.0.0
39
54
40
55
* Bidirectional communication implemented, so the UI can query `clef` via the stdin/stdout RPC channel. Methods implemented are:
41
-
-`clef_listWallets`
56
+
-`clef_listWallets`
42
57
-`clef_listAccounts`
43
58
-`clef_listWallets`
44
59
-`clef_deriveAccount`
@@ -48,10 +63,10 @@ Changed the namespace format to adhere to the legacy ethereum format: `name_meth
48
63
-`clef_setChainId`
49
64
-`clef_export`
50
65
-`clef_import`
51
-
52
-
* The type `Account` was modified (the json-field `type` was removed), to consist of
53
66
54
-
```golang
67
+
* The type `Account` was modified (the json-field `type` was removed), to consist of
68
+
69
+
```go
55
70
typeAccountstruct {
56
71
Address common.Address`json:"address"`// Ethereum account address derived from the key
57
72
URLURL`json:"url"`// Optional resource locator within a backend
@@ -64,7 +79,7 @@ type Account struct {
64
79
* Make `ShowError`, `OnApprovedTx`, `OnSignerStartup` be json-rpc [notifications](https://www.jsonrpc.org/specification#notification):
65
80
66
81
> 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.
67
-
>
82
+
>
68
83
> 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"
69
84
### 3.1.0
70
85
@@ -79,15 +94,17 @@ type Account struct {
79
94
* Add `OnInputRequired(info UserInputRequest)` to internal API. This method is used when Clef needs user input, e.g. passwords.
80
95
81
96
The following structures are used:
82
-
```golang
83
-
UserInputRequeststruct {
84
-
Promptstring`json:"prompt"`
85
-
Titlestring`json:"title"`
86
-
IsPasswordbool`json:"isPassword"`
87
-
}
88
-
UserInputResponsestruct {
89
-
Textstring`json:"text"`
90
-
}
97
+
98
+
```go
99
+
UserInputRequest struct {
100
+
Promptstring`json:"prompt"`
101
+
Titlestring`json:"title"`
102
+
IsPasswordbool`json:"isPassword"`
103
+
}
104
+
UserInputResponse struct {
105
+
Textstring`json:"text"`
106
+
}
107
+
```
91
108
92
109
### 2.0.0
93
110
@@ -161,15 +178,3 @@ Example call:
161
178
#### 1.0.0
162
179
163
180
Initial release.
164
-
165
-
### Versioning
166
-
167
-
The API uses [semantic versioning](https://semver.org/).
168
-
169
-
TLDR; Given a version number MAJOR.MINOR.PATCH, increment the:
170
-
171
-
* MAJOR version when you make incompatible API changes,
172
-
* MINOR version when you add functionality in a backwards-compatible manner, and
173
-
* PATCH version when you make backwards-compatible bug fixes.
174
-
175
-
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
0 commit comments