Commit c0251e2
committed
Add a smapp-compatible
Motivation
----------
smapp has a simple message signing functionality, which uses a wallet's
keypair to sign text messages using Ed25519ctx. This functionality is
used by, for example, Team24 to authenticate an sm1 address owner. The
functionality is also supported by the third-party wallet implementation
smeshwallet.com.
Description
-----------
This change adds a simple `smcli wallet sign` subcommand, which takes a
wallet JSON and a message as arguments, signs the message, and outputs a
smapp-compatible JSON structure of message, signature, and signer public
key.wallet sign subcommand1 parent a1e889a commit c0251e2
1 file changed
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
292 | 342 | | |
293 | 343 | | |
294 | 344 | | |
295 | 345 | | |
| 346 | + | |
296 | 347 | | |
297 | 348 | | |
298 | 349 | | |
| |||
0 commit comments