Skip to content

Commit e877a70

Browse files
kseomajecty
authored andcommitted
Remove passphrase from /keys/:key/remove endpoint
Also bump codechain-keystore to the latest.
1 parent 8588daf commit e877a70

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "npm run lint && jest --env node"
1010
},
1111
"dependencies": {
12-
"codechain-keystore": "git://github.com/CodeChain-io/codechain-keystore.git#a168fc7eb01d31269d6e29ab9075315ae557471b",
12+
"codechain-keystore": "git://github.com/CodeChain-io/codechain-keystore.git#9061ad1279fc46e140757873a02bdf9e7dc4e239",
1313
"config": "^2.0.1",
1414
"debug": "~2.6.9",
1515
"express": "~4.16.0",

src/routes/api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ export function createRouter(context: Context) {
2828

2929
router.post("/keys/:key/remove", async (req, res) => {
3030
const { key } = req.params;
31-
const { passphrase = "" } = req.body;
3231
const keyType: KeyType = req.body.keyType;
33-
const result = await context.cckey[keyType].deleteKey({ publicKey: key, passphrase });
32+
const result = await context.cckey[keyType].deleteKey({ publicKey: key });
3433
res.json({
3534
success: true,
3635
result

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,9 +843,9 @@ code-point-at@^1.0.0:
843843
version "1.1.0"
844844
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
845845

846-
"codechain-keystore@git://github.com/CodeChain-io/codechain-keystore.git#a168fc7eb01d31269d6e29ab9075315ae557471b":
846+
"codechain-keystore@git://github.com/CodeChain-io/codechain-keystore.git#9061ad1279fc46e140757873a02bdf9e7dc4e239":
847847
version "0.0.0"
848-
resolved "git://github.com/CodeChain-io/codechain-keystore.git#a168fc7eb01d31269d6e29ab9075315ae557471b"
848+
resolved "git://github.com/CodeChain-io/codechain-keystore.git#9061ad1279fc46e140757873a02bdf9e7dc4e239"
849849
dependencies:
850850
codechain-sdk "^0.1.0-alpha.18"
851851
config "^2.0.1"

0 commit comments

Comments
 (0)