You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Usage:** Useful for testing programs locally before deployment. By default, the run command uses the same code execution engine as Elements/Liquid nodes, making it ideal for testing compatibility with the actual Bitcoin network. If you specify logging, a Rust runner will be used instead, as it supports debugging features and provides more detailed execution information.
48
50
@@ -89,6 +91,33 @@ simply withdraw [OPTIONS]
89
91
90
92
**Usage:** Creates and optionally broadcasts a transaction that spends a UTXO using the compiled program.
91
93
94
+
### Sign
95
+
96
+
Signs arbitrary data using BIP340 (Schnorr) and prints the results.
97
+
98
+
```sh
99
+
simply sign --message <HEX> [--secret <HEX>]
100
+
```
101
+
102
+
**Flags:**
103
+
-`--message <HEX>` - Message to sign, hex-encoded (required)
104
+
-`--secret <HEX>` - Secret key (32-byte hex). If omitted, a random key is generated
105
+
106
+
**Output:**
107
+
- Signature (BIP340) in hex
108
+
- Message (as provided, hex)
109
+
- Public key (x-only) in hex
110
+
- Private key in hex (only printed when generated randomly)
0 commit comments