Skip to content

Commit 7323177

Browse files
committed
chore: make signTxs sign only a chain of txs
1 parent b94a5e9 commit 7323177

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

CIP-0030/README.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ Used to specify optional pagination for some API calls. Limits results to {limit
102102

103103
An extension is an object with a single field `"cip"` that describe a CIP number extending the API (as a plain integer, without padding). For example:
104104

105+
```
106+
{ "cip": 30 }
107+
```
108+
105109
### TransactionSignatureRequest
106110

107111
```
@@ -113,10 +117,6 @@ type = TransactionSignatureRequest {|
113117

114118
Used to represent a single transaction awaiting a user's signature. More details on {partialSign} can be found in `api.signTx()`.
115119

116-
```
117-
{ "cip": 30 }
118-
```
119-
120120
### Error Types
121121

122122
#### APIError
@@ -331,9 +331,7 @@ Requests that a user sign the unsigned portions of the supplied transaction. The
331331

332332
Errors: `APIError`, `TxSignError`
333333

334-
Performs the same operation as `api.signTx()`, but supports mulitple transactions. This is a shortcut to sign multiple transactions at the same time. The returned witness set array values correspond directly with the elements in the `txs` parameter, meaning that the witness set at index 0 corresponds to the transaction at index 0, and so on.
335-
336-
**Note:** There are some security concerns regarding malicious dApps possibly including a problematic transaction within the array. Moreover, signing a transaction does not guarantee a blockchain submission. It is the wallet's responsibility to take these scenarios into account and build a comprehensive UI to mitigate them (e.g via a whitelist system).
334+
Signs a chain of transactions, which can be described as a sequence of interconnected transactions where each subsequent transaction depends on the previous one. The returned array values of the witness set directly correspond to the elements in the `txs` parameter, aligning the witness set at index 0 with the transaction at index 0, and so forth.
337335

338336
### api.signData(addr: Address, payload: Bytes): Promise\<DataSignature>
339337

0 commit comments

Comments
 (0)