Skip to content

Commit

Permalink
docs: use signerKey to specify when any additional keys should sign a…
Browse files Browse the repository at this point in the history
… transaction

Signed-off-by: Rob Walworth <[email protected]>
  • Loading branch information
rwalworth committed May 15, 2024
1 parent fdcab50 commit 0dde811
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test-specifications/crypto-service/accountCreateTransaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ https://docs.hedera.com/hedera/sdks-and-apis/rest-api

- If true, this account's key must sign any transaction depositing into this account (in addition to all withdrawals).

| Test no | Name | Input | Expected response | Implemented (Y/N) |
|---------|--------------------------------------------------------------------------------------------|----------------------------------------------------------|--------------------------------------------------------------------------------------|-------------------|
| 1 | Creates an account that requires a receiving signature | key=<VALID_PRIVATE_KEY>, receiverSignatureRequired=true | The account creation succeeds and the account requires a receiving signature. | N |
| 2 | Creates an account that doesn't require a receiving signature | key=<VALID_PRIVATE_KEY>, receiverSignatureRequired=false | The account creation succeeds and the account doesn't require a receiving signature. | N |
| 3 | Creates an account that requires a receiving signature but isn't signed by the account key | key=<VALID_PUBLIC_KEY>, receiverSignatureRequired=true | The account creation fails with an INVALID_SIGNATURE response code from the network. | N |
| Test no | Name | Input | Expected response | Implemented (Y/N) |
|---------|--------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|-------------------|
| 1 | Creates an account that requires a receiving signature | key=<VALID_PUBLIC_KEY>, receiverSignatureRequired=true, signerKey=<ASSOCIATED_PRIVATE_KEY> | The account creation succeeds and the account requires a receiving signature. | N |
| 2 | Creates an account that doesn't require a receiving signature | key=<VALID_PRIVATE_KEY>, receiverSignatureRequired=false | The account creation succeeds and the account doesn't require a receiving signature. | N |
| 3 | Creates an account that requires a receiving signature but isn't signed by the account key | key=<VALID_PUBLIC_KEY>, receiverSignatureRequired=true | The account creation fails with an INVALID_SIGNATURE response code from the network. | N |

#### JSON Request Example

Expand Down Expand Up @@ -351,14 +351,14 @@ https://docs.hedera.com/hedera/sdks-and-apis/rest-api
}
```

### **Decline rewards:**
### **Decline Reward:**

- If true, the account declines receiving a staking reward.

| Test no | Name | Input | Expected response | Implemented (Y/N) |
|---------|---------------------------------------------------------|----------------------------------------------|--------------------------------------------------------------------------------|-------------------|
| 1 | Creates an account that declines staking rewards | key=<VALID_KEY>, declineStakingRewards=true | The account creation succeeds and the account declines staking rewards. | N |
| 1 | Creates an account that doesn't decline staking rewards | key=<VALID_KEY>, declineStakingRewards=false | The account creation succeeds and the account doesn't decline staking rewards. | N |
| 2 | Creates an account that doesn't decline staking rewards | key=<VALID_KEY>, declineStakingRewards=false | The account creation succeeds and the account doesn't decline staking rewards. | N |

#### JSON Request Example

Expand Down

0 comments on commit 0dde811

Please sign in to comment.