Skip to content

Commit a78816c

Browse files
authored
Merge pull request #3237 from nervosnetwork/master
2 parents 4e46d03 + bc88e27 commit a78816c

File tree

12 files changed

+182
-21
lines changed

12 files changed

+182
-21
lines changed

.github/workflows/package.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ jobs:
103103
env:
104104
CI: false
105105

106+
# Inject LOG_ENCRYPTION_PUBLIC_KEY to encrypt sensitive log
107+
- name: Inject environment variables
108+
run: |
109+
echo "LOG_ENCRYPTION_PUBLIC_KEY=${{ secrets.LOG_ENCRYPTION_PUBLIC_KEY }}" >> packages/neuron-wallet/.env
110+
106111
- name: Package for MacOS
107112
if: matrix.os == 'macos-latest'
108113
run: |

CHANGELOG.md

Lines changed: 51 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
# 0.117.0 (2024-08-12)
2+
3+
### CKB Node & Light Client
4+
5+
- [CKB@v0.117.0](https://github.com/nervosnetwork/ckb/releases/tag/v0.117.0) was released on Jul. 29th, 2024. This version of CKB node is now bundled and preconfigured in Neuron.
6+
- [CKB Light Client@v0.3.7](https://github.com/nervosnetwork/ckb-light-client/releases/tag/v0.3.7) was released on Apr. 13th, 2024. This version of CKB Light Client is now bundled and preconfigured in Neuron
7+
8+
### Assumed valid target
9+
10+
Block before `0xca44ae8f7bc12ba8eab3224cbe3156c913e2284693e36dc1d01e4d30f362f3c2`(at height `13,705,152`) will be skipped in validation.(https://github.com/nervosnetwork/neuron/pull/3227)
11+
12+
---
13+
14+
[![Neuron@v0.117.0](https://github.com/user-attachments/assets/7d2eba67-e33e-4fca-a714-7ba1709d8bd3)](https://youtu.be/zf78Y094m60)
15+
16+
YouTube: https://youtu.be/zf78Y094m60
17+
18+
---
19+
20+
## New features
21+
22+
- #3206: Support XUDT asset management.(@yanguoyu)
23+
- #3207: Support connecting to an external light client.(@devchenyan)
24+
- #3167: Support cells consolidation.(@devchenyan)
25+
- #3199: Validate pending transactions periodically.(@devchenyan)
26+
- #3200: Optimize the process of generating a wallet.(@devchenyan)
27+
- #3176: Support setting start block numbers of multisig addresses.(@yanguoyu)
28+
- #3160: Optimize synchronization in light client mode for multiple wallets.(@yanguoyu)
29+
- #3169: Be compatible with multisig transaction JSON file exported from CKB CLI.(@devchenyan)
30+
- #3197: Support resetting pin code for window lock.(@yanguoyu)
31+
- #3194: Add a tip for multisig addresses.(@yanguoyu)
32+
33+
## Bug fixes
34+
35+
- #3195: Fix the synchronization status check.(@yanguoyu)
36+
37+
## New Contributors
38+
39+
- @tcpdumppy made their first contribution in https://github.com/nervosnetwork/neuron/pull/3182
40+
41+
**Full Changelog**: https://github.com/nervosnetwork/neuron/compare/v0.116.2...v0.117.0
42+
143
# 0.116.2 (2024-05-29)
244

345
### CKB Node & Light Client
@@ -57,18 +99,18 @@ YouTube: https://youtu.be/QXv8by2C8zU
5799

58100
## New features
59101

60-
- 3134: Support 'replace-by-fee' nervos dao transactions and sudt transactions.(@devchenyan)
61-
- 3144: Reduce size of light client log in debug information and reveal start-block-number in log.(@yanguoyu)
62-
- 3064: Support locking window by pin code.(@yanguoyu)
63-
- 3131: Add detailed result for nervos dao transaction.(@devchenyan)
102+
- #3134: Support 'replace-by-fee' nervos dao transactions and sudt transactions.(@devchenyan)
103+
- #3144: Reduce size of light client log in debug information and reveal start-block-number in log.(@yanguoyu)
104+
- #3064: Support locking window by pin code.(@yanguoyu)
105+
- #3131: Add detailed result for nervos dao transaction.(@devchenyan)
64106

65107
## Bug fixes
66108

67-
- 3121: Locate the first transaction on Explorer directly when users want to set the start-block-number for light client.(@yanguoyu)
68-
- 3101: Show migration instruction properly.(@devchenyan)
69-
- 3062: Migrate legacy ACP to active ACP account(@yanguoyu)
70-
- 3141: Fix some issues about light client synchronizaiton.(@yanguoyu)
71-
- 3120: Remove all sync data when start-block-number is set less than before.(@yanguoyu)
109+
- #3121: Locate the first transaction on Explorer directly when users want to set the start-block-number for light client.(@yanguoyu)
110+
- #3101: Show migration instruction properly.(@devchenyan)
111+
- #3062: Migrate legacy ACP to active ACP account(@yanguoyu)
112+
- #3141: Fix some issues about light client synchronizaiton.(@yanguoyu)
113+
- #3120: Remove all sync data when start-block-number is set less than before.(@yanguoyu)
72114

73115
**Full Changelog**: https://github.com/nervosnetwork/neuron/compare/v0.114.3...v0.116.0
74116

compatible.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,23 @@
121121
"0.3",
122122
"0.2"
123123
]
124+
},
125+
"0.117": {
126+
"full": [
127+
"0.117",
128+
"0.116",
129+
"0.115",
130+
"0.114",
131+
"0.113",
132+
"0.112",
133+
"0.111",
134+
"0.110",
135+
"0.109"
136+
],
137+
"light": [
138+
"0.3",
139+
"0.2"
140+
]
124141
}
125142
}
126143
}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": ["packages/*"],
3-
"version": "0.116.2",
3+
"version": "0.117.0",
44
"npmClient": "yarn",
55
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
66
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "neuron",
33
"productName": "Neuron",
44
"description": "CKB Neuron Wallet",
5-
"version": "0.116.2",
5+
"version": "0.117.0",
66
"private": true,
77
"author": {
88
"name": "Nervos Core Dev",

packages/neuron-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neuron-ui",
3-
"version": "0.116.2",
3+
"version": "0.117.0",
44
"private": true,
55
"author": {
66
"name": "Nervos Core Dev",

packages/neuron-wallet/.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ DAO_CODE_HASH=0x82d76d1b75fe2fd9a27dfbaa65a039221a380d76c926f378d3f81cf3e7e13f2e
117117
MULTISIG_CODE_HASH=0x5c5069eb0857efc65e1bca0c07df34c31663b3622fd3876c876320fc9634e2a8
118118

119119
# CKB NODE OPTIONS
120-
CKB_NODE_ASSUME_VALID_TARGET='0x6dd077b407d019a0bce0cbad8c34e69a524ae4b2599b9feda2c7491f3559d32c'
121-
CKB_NODE_ASSUME_VALID_TARGET_BLOCK_NUMBER=13007704
122-
CKB_NODE_DATA_SIZE=56
120+
CKB_NODE_ASSUME_VALID_TARGET='0xca44ae8f7bc12ba8eab3224cbe3156c913e2284693e36dc1d01e4d30f362f3c2'
121+
CKB_NODE_ASSUME_VALID_TARGET_BLOCK_NUMBER=13705152
122+
CKB_NODE_DATA_SIZE=58

packages/neuron-wallet/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"productName": "Neuron",
44
"description": "CKB Neuron Wallet",
55
"homepage": "https://www.nervos.org/",
6-
"version": "0.116.2",
6+
"version": "0.117.0",
77
"private": true,
88
"author": {
99
"name": "Nervos Core Dev",
@@ -92,7 +92,7 @@
9292
"electron-builder": "24.9.1",
9393
"electron-devtools-installer": "3.2.0",
9494
"jest-when": "3.6.0",
95-
"neuron-ui": "0.116.2",
95+
"neuron-ui": "0.117.0",
9696
"typescript": "5.3.3"
9797
}
9898
}

packages/neuron-wallet/src/controllers/export-debug.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { generateRPC } from '../utils/ckb-rpc'
1414
import { CKBLightRunner } from '../services/light-runner'
1515
import { LIGHT_CLIENT_MAINNET, LIGHT_CLIENT_TESTNET } from '../utils/const'
1616
import WalletsService from '../services/wallets'
17+
import LogEncryption from '../services/log-encryption'
1718

1819
export default class ExportDebugController {
1920
#I18N_PATH = 'export-debug-info'
@@ -158,7 +159,12 @@ export default class ExportDebugController {
158159
csv += row
159160
}
160161
const csvFileName = 'hd_public_key_info.csv'
161-
this.archive.append(csv, { name: csvFileName })
162+
const encryption = LogEncryption.getInstance()
163+
if (encryption.isEnabled) {
164+
this.archive.append(encryption.encrypt(csv), { name: `encrypted_${csvFileName}` })
165+
} else {
166+
this.archive.append(csv, { name: csvFileName })
167+
}
162168
} catch (error) {
163169
logger.error(`Export Debug:\t export public key info error: ${error}`)
164170
}

packages/neuron-wallet/src/services/log-encryption.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ export default class LogEncryption {
1717
*/
1818
private readonly adminPublicKey: string
1919

20+
public get isEnabled(): boolean {
21+
return !!this.adminPublicKey
22+
}
23+
2024
/**
2125
*
2226
* @param adminPublicKey a PEM-formatted RSA public key
2327
*/
2428
constructor(adminPublicKey: string) {
25-
this.adminPublicKey = adminPublicKey
29+
this.adminPublicKey = adminPublicKey.replace(/\\n/g, '\n')
2630
}
2731

2832
/**

0 commit comments

Comments
 (0)