File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,11 @@ pub enum ExecuteMsg {
44
44
to sign their own address using the private key */
45
45
signed_sender_address : HexBinary ,
46
46
} ,
47
- // Authorizes a contract to call StartSigningSession.
47
+ // Authorizes a contract to call StartSigningSession. Callable only by governance
48
48
AuthorizeCaller {
49
49
contract_address : Addr ,
50
50
} ,
51
- // Unauthorizes a contract, so it can no longer call StartSigningSession.
51
+ // Unauthorizes a contract, so it can no longer call StartSigningSession. Callable only by governance
52
52
UnauthorizeCaller {
53
53
contract_address : Addr ,
54
54
} ,
Original file line number Diff line number Diff line change @@ -94,6 +94,11 @@ SignatureVerifier->>Multisig: returns true/false
94
94
deactivate Multisig
95
95
```
96
96
97
+ ## Authorization
98
+ Prior to calling ` StartSigningSession ` , the prover contract must first be * authorized* .
99
+ For a contract to become authorized, the governance account needs to call ` AuthorizeCaller ` , and specify the contract address to authorize.
100
+ Similarly, the governance account can revoke authorization of a particular contract by calling ` UnauthorizeCaller ` .
101
+
97
102
## Interface
98
103
99
104
``` Rust
@@ -108,9 +113,14 @@ pub enum ExecuteMsg {
108
113
session_id : Uint64 ,
109
114
signature : HexBinary ,
110
115
},
116
+ RegisterWorkerSet {
117
+ worker_set : WorkerSet ,
118
+ },
119
+ // callable only by governance
111
120
AuthorizeCaller {
112
121
contract_address : Addr ,
113
122
},
123
+ // callable only by governance
114
124
UnauthorizeCaller {
115
125
contract_address : Addr ,
116
126
},
@@ -161,11 +171,11 @@ pub enum Event {
161
171
worker : Addr ,
162
172
public_key : PublicKey ,
163
173
},
164
- // Emitted when a StartSigningSession caller is authorized
174
+ // Emitted when a contract is authorized by governance to create signing sessions
165
175
CallerAuthorized {
166
176
contract_address : Addr ,
167
177
},
168
- // Emitted when a StartSigningSession caller is unauthorized
178
+ // Emitted when a contract is unauthorized by governance to create signing sessions
169
179
CallerUnauthorized {
170
180
contract_address : Addr ,
171
181
},
You can’t perform that action at this time.
0 commit comments