Commit 771cfa4
committed
Add suisecret package with pure Go keystore key conversion
- Add suisecret package with Decode/Encode functions as pure Go replacement of sui keytool convert command
- Add KeyInfo struct with Base64WithFlag, HexWithoutFlag and Scheme fields
- Add GetWallet method to KeyInfo allowing direct wallet creation from decoded keys
- Remove unused convert and sign commands from cmd/sui-go/main.go
- Update English/Chinese README with suisecret package usage examples
- Add comprehensive tests including TestDecode_Compare to verify output matches official sui keytool convert
- Add TestDecode_Example demonstrating complete flow from key decode to wallet address generation1 parent 0424375 commit 771cfa4
File tree
41 files changed
+1666
-382
lines changed- .github/workflows
- cmd/sui-go
- internal
- demos
- main_sui_getChainIdentifier
- main_sui_getCheckpoint
- main_sui_getLatestCheckpointSequenceNumber
- main_sui_getTotalTransactionBlocks
- main_sui_getTransactionBlock
- main_sui_multiGetTransactionBlocks
- main_sui_unsafe_mergeCoins
- main_sui_unsafe_payAllSui
- main_sui_unsafe_paySui_to_me_as_gas
- main_sui_unsafe_paySui
- main_sui_unsafe_splitCoinEqual
- main_sui_unsafe_splitCoin
- main_sui_unsafe_transferObject
- main_sui_unsafe_transferSui
- main_suix_getAllBalances
- main_suix_getAllCoins
- main_suix_getBalance
- main_suix_getCoinMetadata
- main_suix_getCoins_suicoin
- main_suix_getCoins
- main_suix_getTotalSupply
- moves
- main_sui_getNormalizedMoveFunction
- main_sui_unsafe_moveCall_math_add
- main_sui_unsafe_moveCall_math_max
- suiapi
- suirpc
- suisecret
- suisigntx
- suiwallet
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+1666
-382
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments