Skip to content

Commit

Permalink
Adds better security warning. Uses WSS in examples. (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymatthews authored Sep 7, 2024
1 parent 616d98a commit d6dcf67
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions content/reference/rust-testing-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ lead: "The Rust testing interface (RTI) is a simple way to perform some actions
---

{{< callout type="warning" >}}
This CLI has no secure private key storage and is intended for use with test networks. If you want a fully featured interface, [check out the JavaScript CLI]({{< relref "./command-line-interface.md" >}}).
**No Secure Key Storage**: This CLI has no secure private key storage and is only intended for use with test networks. Do not use this interface in a production environment. If you want a fully featured interface, [check out the Entropy CLI]({{< relref "./command-line-interface.md" >}}).
{{< /callout >}}

## Installation
Expand Down Expand Up @@ -64,7 +64,7 @@ You can use the following environment variables to make using this CLI easier:
| Variable | Description | Example |
| -------- | ----------- | ------- |
| `ENTROPY_MNEMONIC` | The mnemonic of the account you'd like to use when interacting with this CLI. | `ENTROPY_MNEMONIC='choice square dance because into glance hazard return cram host snap deer'` |
| `ENTROPY_DEVNET` | The specific chain-endpoint you want to use when interacting with this CLI. | `ENTROPY_DEVNET='ws://testnet.entropy.xyz:9944'` |
| `ENTROPY_DEVNET` | The specific chain-endpoint you want to use when interacting with this CLI. | `ENTROPY_DEVNET='wss://testnet.entropy.xyz'` |
## Usage
Expand All @@ -83,7 +83,7 @@ entropy-test-cli register <MNEMONIC> [KEY_VISIBILITY] [PROGRAMS]
#### Example
```shell
entropy-test-cli --chain-endpoint="ws://testnet.entropy.xyz:9944" register "image point raccoon steak champion clown adult until hamster sun army year"
entropy-test-cli --chain-endpoint="wss://testnet.entropy.xyz" register "image point raccoon steak champion clown adult until hamster sun army year"
```
### Status
Expand All @@ -99,7 +99,7 @@ entropy-test-cli status
#### Example
```shell
entropy-test-cli --chain-endpoint="ws://testnet.entropy.xyz:9944" status
entropy-test-cli --chain-endpoint="wss://testnet.entropy.xyz" status
```
### Sign
Expand All @@ -115,7 +115,7 @@ entropy-test-cli sign <SIGNATURE_VERIFYING_KEY> <MESSAGE> [AUXILARY_DATA]
#### Example
```output
entropy-test-cli --chain-endpoint="ws://testnet.entropy.xyz:9944" sign "0x1ca639d1cae8ea4e4bd37f972999e0e140866614b621bc09950ceb469b987e27" "Good morning."
entropy-test-cli --chain-endpoint="wss://testnet.entropy.xyz" sign "0x1ca639d1cae8ea4e4bd37f972999e0e140866614b621bc09950ceb469b987e27" "Good morning."
```
### Store program
Expand All @@ -131,7 +131,7 @@ entropy-test-cli store-program <MNEMONIC> [PROGRAM_FILE] [CONFIG_INTERFACE_FILE]
#### Example
```shell
entropy-test-cli --chain-endpoint="ws://testnet.entropy.xyz:9944" store-program "image point raccoon steak champion clown adult until hamster sun army year" ./program.wasm ./interface-file.config ./aux-data.config
entropy-test-cli --chain-endpoint="wss://testnet.entropy.xyz" store-program "image point raccoon steak champion clown adult until hamster sun army year" ./program.wasm ./interface-file.config ./aux-data.config
```
### Update programs
Expand All @@ -147,5 +147,5 @@ entropy-test-cli update-programs <SIGNATURE_VERIFYING_KEY> <MNEMONIC> [PROGRAMS]
#### Example
```shell
entropy-test-cli --chain-endpoint="ws://testnet.entropy.xyz:9944" update-programs "0x1ca639d1cae8ea4e4bd37f972999e0e140866614b621bc09950ceb469b987e27" "image point raccoon steak champion clown adult until hamster sun army year" ./programs
entropy-test-cli --chain-endpoint="wss://testnet.entropy.xyz" update-programs "0x1ca639d1cae8ea4e4bd37f972999e0e140866614b621bc09950ceb469b987e27" "image point raccoon steak champion clown adult until hamster sun army year" ./programs
```

0 comments on commit d6dcf67

Please sign in to comment.