Skip to content

Commit

Permalink
Merge pull request #19 from nervosnetwork/rc/v0.1.0-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY authored Sep 28, 2020
2 parents 053bc02 + f8b0296 commit b2e69c6
Show file tree
Hide file tree
Showing 14 changed files with 60 additions and 12 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.1.0-alpha.2](https://github.com/nervosnetwork/keypering/compare/v0.1.0-alpha.1...v0.1.0-alpha.2) (2020-09-28)


### Bug Fixes

* fix the type of keystore version which should be number ([4b7f203](https://github.com/nervosnetwork/keypering/commit/4b7f203628684c34fda066153e7d490616c36c48))





# 0.1.0-alpha.1 (2020-08-19)

### Note
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ Keypering consists of 3 components:
2. [@keypering/ui](https://github.com/nervosnetwork/keypering/tree/develop/packages/ui) renders the main interface of Keypering;
3. [@keypering/app](https://github.com/nervosnetwork/keypering/tree/develop/packages/app) maintains data and handle requests from renderer process and DApp.

# Tutorials

- [How to Develop a CKB DApp with Keypering (Video, Chinese + English Subtitles)](https://youtu.be/i-gQ0enK5cY)
- [How to Develop a CKB DApp with Keypering (Slides)](https://docs.google.com/presentation/d/1bswEhjSYwZZnUCF4rRL5x5vfOVXO_kDlbjsojsG94w8/edit?usp=sharing)

# Resources

- [Keypering Manual](https://nervosnetwork.github.io/keypering/#/manual) - User Guide of Keypering
Expand Down
5 changes: 5 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ Keypering consists of 3 components:
2. [@keypering/ui](https://github.com/nervosnetwork/keypering/tree/develop/packages/ui) renders the main interface of Keypering;
3. [@keypering/app](https://github.com/nervosnetwork/keypering/tree/develop/packages/app) maintains data and handle requests from renderer process and DApp.

# Tutorials

- [How to Develop a CKB DApp with Keypering (Video, Chinese + English Subtitles)](https://youtu.be/i-gQ0enK5cY)
- [How to Develop a CKB DApp with Keypering (Slides)](https://docs.google.com/presentation/d/1bswEhjSYwZZnUCF4rRL5x5vfOVXO_kDlbjsojsG94w8/edit?usp=sharing)

# Resources

- [Keypering Manual](https://nervosnetwork.github.io/keypering/#/manual) - User Guide of Keypering
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "0.1.0-alpha.1"
"version": "0.1.0-alpha.2"
}
11 changes: 11 additions & 0 deletions packages/app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.1.0-alpha.2](https://github.com/nervosnetwork/keypering/compare/v0.1.0-alpha.1...v0.1.0-alpha.2) (2020-09-28)


### Bug Fixes

* fix the type of keystore version which should be number ([4b7f203](https://github.com/nervosnetwork/keypering/commit/4b7f203628684c34fda066153e7d490616c36c48))





# 0.1.0-alpha.1 (2020-08-19)


Expand Down
4 changes: 2 additions & 2 deletions packages/app/__mock__/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const mockWallet = {
keystores: [
{
id: '7dea774e-d829-4256-9a3f-2c6c0a62968a',
version: '3',
version: 3,
crypto: {
ciphertext:
'51550837505b7b19544e88ae83e11cddf7427d42215fbd5458de0fb8c3719ffd5dc3337cd0d44cd202b468df12ddc22d7088d219b5f59a3a6f5c4cc2f860c1fa',
Expand All @@ -37,7 +37,7 @@ export const mockWallet = {
},
},
{
version: '3',
version: 3,
crypto: {
cipher: 'aes-128-ctr',
cipherparams: { iv: 'd18787c19b1be9680aa317e879c1f04f' },
Expand Down
2 changes: 1 addition & 1 deletion packages/app/__tests__/wallet/mnemonic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Test mnemonic module', () => {
const keystore = getKeystoreFromMnemonic({ mnemonic, password })
expect(keystore).toEqual(expect.objectContaining({
id: expect.any(String),
version: '3',
version: 3,
crypto: {
ciphertext: expect.any(String),
cipherparams: {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/__tests__/wallet/service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ describe('Test wallet service', () => {
it('should return keystore', () => {
const expected = expect.objectContaining({
id: expect.any(String),
version: '3',
version: 3,
crypto: {
cipher: 'aes-128-ctr',
cipherparams: {
Expand Down
4 changes: 2 additions & 2 deletions packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keypering/app",
"version": "0.1.0-alpha.1",
"version": "0.1.0-alpha.2",
"description": "",
"author": "Keith <[email protected]>",
"homepage": "https://nervosnetwork.github.io/keypering",
Expand Down Expand Up @@ -32,7 +32,7 @@
"url": "https://github.com/nervosnetwork/keypering/issues"
},
"devDependencies": {
"@keypering/specs": "0.1.0-alpha.1",
"@keypering/specs": "0.1.0-alpha.2",
"@types/elliptic": "6.4.12",
"@types/uuid": "8.0.1",
"electron": "9.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/wallet/keystore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface Crypto {

export interface Keystore {
id: string
version: string
version: number
crypto: Crypto
}

Expand Down Expand Up @@ -53,7 +53,7 @@ export const getKeystoreFromXPrv = (xPrv: Buffer, password: string) => {
const ciphertext = Buffer.concat([cipher.update(xPrv), cipher.final()])
return {
id: uuid(),
version: '3',
version: 3,
crypto: {
ciphertext: ciphertext.toString('hex'),
cipherparams: { iv: iv.toString('hex') },
Expand Down
8 changes: 8 additions & 0 deletions packages/specs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.1.0-alpha.2](https://github.com/nervosnetwork/keypering/compare/v0.1.0-alpha.1...v0.1.0-alpha.2) (2020-09-28)

**Note:** Version bump only for package @keypering/specs





# 0.1.0-alpha.1 (2020-08-19)


Expand Down
2 changes: 1 addition & 1 deletion packages/specs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keypering/specs",
"version": "0.1.0-alpha.1",
"version": "0.1.0-alpha.2",
"description": "",
"author": "Keith <[email protected]>",
"homepage": "https://nervosnetwork.github.io/keypering/#/protocol",
Expand Down
8 changes: 8 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.1.0-alpha.2](https://github.com/nervosnetwork/keypering/compare/v0.1.0-alpha.1...v0.1.0-alpha.2) (2020-09-28)

**Note:** Version bump only for package @keypering/ui





# 0.1.0-alpha.1 (2020-08-19)


Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keypering/ui",
"version": "0.1.0-alpha.1",
"version": "0.1.0-alpha.2",
"private": true,
"homepage": ".",
"scripts": {
Expand Down Expand Up @@ -29,7 +29,7 @@
"react-scripts": "3.4.1"
},
"devDependencies": {
"@keypering/specs": "0.1.0-alpha.1",
"@keypering/specs": "0.1.0-alpha.2",
"@nervosnetwork/ckb-types": "0.34.0",
"@types/react": "16.9.45",
"@types/react-dom": "16.9.0",
Expand Down

0 comments on commit b2e69c6

Please sign in to comment.