Skip to content

Commit e2b8c05

Browse files
committed
docs: Update all Casper Signer references to Casper Wallet
- README.md: Updated docs, workflow, project structure for CasperWalletDemo - KeyExporter.cs: Replaced Casper Signer with Casper Wallet in comments - TestnetDemo.cs: Updated PEM export instructions for Casper Wallet Casper Signer is deprecated, Casper Wallet is the current standard.
1 parent c63f4ec commit e2b8c05

3 files changed

Lines changed: 38 additions & 39 deletions

File tree

Assets/CasperSDK/Runtime/Examples/TestnetDemo.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public void CopyPublicKey()
286286
}
287287
}
288288

289-
[ContextMenu("Export Keys to PEM (for Casper Signer)")]
289+
[ContextMenu("Export Keys to PEM (for Casper Wallet)")]
290290
public void ExportKeysToPem()
291291
{
292292
if (_keyPair == null)
@@ -302,16 +302,16 @@ public void ExportKeysToPem()
302302
KeyExporter.ExportToPemFiles(_keyPair, exportPath, "casper_testnet");
303303

304304
Debug.Log("\n==============================================");
305-
Debug.Log(" KEYS EXPORTED FOR CASPER SIGNER");
305+
Debug.Log(" KEYS EXPORTED FOR CASPER WALLET");
306306
Debug.Log("==============================================");
307307
Debug.Log($"Location: {exportPath}");
308308
Debug.Log("");
309-
Debug.Log("To use with Casper Signer:");
310-
Debug.Log("1. Install Casper Signer extension in your browser");
311-
Debug.Log("2. Open Casper Signer → Import Account");
309+
Debug.Log("To use with Casper Wallet:");
310+
Debug.Log("1. Install Casper Wallet extension in your browser");
311+
Debug.Log("2. Open Casper Wallet → Import Account");
312312
Debug.Log("3. Select 'Upload Keys' and choose 'casper_testnet_secret_key.pem'");
313313
Debug.Log("4. Go to https://testnet.cspr.live/tools/faucet");
314-
Debug.Log("5. Connect with Casper Signer and request CSPR");
314+
Debug.Log("5. Connect with Casper Wallet and request CSPR");
315315
Debug.Log("==============================================\n");
316316

317317
// Open the folder

Assets/CasperSDK/Runtime/Utilities/Cryptography/KeyExporter.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace CasperSDK.Utilities.Cryptography
1313
{
1414
/// <summary>
15-
/// Exports and imports keys in PEM format for compatibility with Casper Signer.
15+
/// Exports and imports keys in PEM format for compatibility with Casper Wallet.
1616
/// </summary>
1717
public static class KeyExporter
1818
{
@@ -84,8 +84,8 @@ public static string ExportPublicKeyToPem(KeyPair keyPair)
8484
}
8585

8686
/// <summary>
87-
/// Exports key pair to Casper Signer compatible format (secret_key.pem)
88-
/// This is the format used by casper-client and Casper Signer
87+
/// Exports key pair to Casper Wallet compatible format (secret_key.pem)
88+
/// This is the format used by casper-client and Casper Wallet
8989
/// </summary>
9090
public static string ExportForCasperSigner(KeyPair keyPair)
9191
{
@@ -170,7 +170,7 @@ public static KeyPair ImportFromPemFile(string pemFilePath, KeyAlgorithm algorit
170170

171171
/// <summary>
172172
/// Imports a key pair from PEM string
173-
/// Supports formats from Casper Wallet, Casper Signer, and casper-client
173+
/// Supports formats from Casper Wallet and casper-client
174174
/// </summary>
175175
public static KeyPair ImportFromPem(string pemContent, KeyAlgorithm algorithm = KeyAlgorithm.ED25519)
176176
{

README.md

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ The SDK includes:
5858

5959
## 🚀 Quick Start
6060

61-
### TestnetDemo (Easiest Way)
61+
### Demo Scene (Easiest Way)
6262

63-
1. Create an empty GameObject
64-
2. Add `TestnetDemo` component
65-
3. Play → Account generated automatically
66-
4. Use context menu (right-click) for all operations
63+
1. **Window → Casper SDK → Create Demo Scene**
64+
2. Play the generated `CasperWalletDemo` scene
65+
3. Click **Import Keys** to load your Casper Wallet PEM file
66+
4. Use the UI buttons for all operations
6767

6868
### Basic Usage
6969

@@ -91,7 +91,7 @@ var result = await transferService.TransferAsync(
9191
// Import PEM file exported from Casper Wallet
9292
var keyPair = KeyExporter.ImportFromPemFile("path/to/secret_key.pem");
9393

94-
// Export for Casper Signer
94+
// Export for Casper Wallet
9595
KeyExporter.ExportToPemFiles(keyPair, "output/path");
9696
```
9797

@@ -163,35 +163,34 @@ Right-click in Project → Create → CasperSDK → Network Config
163163

164164
## 🎯 Examples
165165

166-
### TestnetDemo Features
166+
### CasperWalletDemo UI
167167

168-
| Context Menu | Action |
169-
|--------------|--------|
170-
| Generate New Account | Create ED25519 key pair |
171-
| Check Balance | Query CSPR balance |
172-
| Prepare Test Transfer | Build & sign (no send) |
173-
| Execute Transfer | Send real CSPR |
174-
| Export Keys to PEM | For Casper Wallet/Signer |
175-
| Import Keys from PEM | Load existing keys |
176-
| Open Testnet Faucet | Get free testnet CSPR |
177-
| Open Block Explorer | View on cspr.live |
168+
| Button | Action |
169+
|--------|--------|
170+
| Generate Account | Create new ED25519 key pair |
171+
| Import Keys | Load PEM from Documents/CasperKeys |
172+
| Refresh Balance | Query CSPR balance |
173+
| Copy Address | Copy public key to clipboard |
174+
| Export Keys | Save PEM to Documents/CasperKeys |
175+
| Open Faucet | Get free testnet CSPR |
176+
| Send Transaction | Transfer CSPR to recipient |
178177

179178
### Workflow for Testing
180179

181-
1. **Play**Account generated
182-
2. **Export Keys to PEM** → Opens folder
183-
3. **Import in Casper Wallet**Upload .pem file
184-
4. **Faucet**Request testnet CSPR
185-
5. **Check Balance** → See 1000 CSPR
186-
6. **Execute Transfer**Send to another account
180+
1. **Casper Wallet → Settings → Download Secret Key**Save PEM
181+
2. Copy PEM to `Documents/CasperKeys/`
182+
3. In Unity: **Window → Casper SDKCreate Demo Scene**
183+
4. **Play**Click **Import Keys** → Keys loaded
184+
5. **Refresh Balance** → See your CSPR
185+
6. Enter recipient + amount → **Send Transaction**
187186

188187
---
189188

190189
## 🗂️ Project Structure
191190

192191
```
193192
Assets/CasperSDK/
194-
├── Editor/ # Settings window
193+
├── Editor/ # Settings window, DemoSceneCreator
195194
├── Plugins/ # BouncyCastle.Crypto.dll
196195
├── Runtime/
197196
│ ├── Core/ # Configuration, Interfaces
@@ -200,17 +199,17 @@ Assets/CasperSDK/
200199
│ ├── Services/
201200
│ │ ├── Account/ # Balance, keys
202201
│ │ ├── Contract/ # WASM, calls
203-
│ │ ├── Deploy/ # Builder, Signer
202+
│ │ ├── Deploy/ # Builder, Signer, CLValueBuilder
204203
│ │ ├── Events/ # SSE streaming
205204
│ │ ├── NFT/ # CEP-78 support
206205
│ │ ├── Storage/ # Secure key storage
207206
│ │ ├── Transfer/ # CSPR transfers
208207
│ │ └── Wallet/ # Multi-account
209208
│ ├── Utilities/
210-
│ │ └── Cryptography/ # Keys, hashing
211-
│ └── Examples/ # TestnetDemo, WalletUI
212-
├── Samples/ # Sample components
213-
└── Tests/ # 46 unit tests
209+
│ │ └── Cryptography/ # Keys, hashing, PEM import/export
210+
│ └── Examples/ # TestnetDemo, BasicSDKExample
211+
├── Samples/ # CasperWalletDemo scene & controller
212+
└── Tests/ # Unit tests (12 test files)
214213
```
215214

216215
---

0 commit comments

Comments
 (0)