@alephium/ledger-app 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.js +1 -1
- package/dist/test/release.test.js +1 -4
- package/package.json +5 -5
- package/src/index.ts +1 -1
- package/test/release.test.ts +2 -6
package/dist/src/index.js
CHANGED
|
@@ -57,7 +57,7 @@ class AlephiumApp {
|
|
|
57
57
|
const publicKey = ec.keyFromPublic(response.slice(0, 65)).getPublic(true, 'hex');
|
|
58
58
|
const address = (0, web3_1.addressFromPublicKey)(publicKey);
|
|
59
59
|
const group = (0, web3_1.groupOfAddress)(address);
|
|
60
|
-
return { publicKey: publicKey, address: address, group: group };
|
|
60
|
+
return { publicKey: publicKey, address: address, group: group, keyType: 'default' };
|
|
61
61
|
}
|
|
62
62
|
async signHash(path, hash) {
|
|
63
63
|
if (hash.length !== exports.HASH_LEN) {
|
|
@@ -7,11 +7,8 @@ const hw_transport_node_hid_1 = __importDefault(require("@ledgerhq/hw-transport-
|
|
|
7
7
|
const logs_1 = require("@ledgerhq/logs");
|
|
8
8
|
const blakejs_1 = __importDefault(require("blakejs"));
|
|
9
9
|
const web3_1 = require("@alephium/web3");
|
|
10
|
-
function sleep(ms) {
|
|
11
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
12
|
-
}
|
|
13
10
|
const src_1 = __importDefault(require("../src"));
|
|
14
|
-
describe('Integration', () => {
|
|
11
|
+
describe.skip('Integration', () => {
|
|
15
12
|
const path = `m/44'/1234'/0'/0/0`;
|
|
16
13
|
// enable this for integration test
|
|
17
14
|
it('should test node', async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alephium/ledger-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "GPL",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"trailingComma": "none"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@alephium/cli": "0.
|
|
29
|
-
"@alephium/web3": "0.
|
|
30
|
-
"@alephium/web3-test": "0.
|
|
31
|
-
"@alephium/web3-wallet": "0.
|
|
28
|
+
"@alephium/cli": "0.10.2",
|
|
29
|
+
"@alephium/web3": "0.10.2",
|
|
30
|
+
"@alephium/web3-test": "0.10.2",
|
|
31
|
+
"@alephium/web3-wallet": "0.10.2",
|
|
32
32
|
"@ledgerhq/hw-transport": "6.27.10"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -39,7 +39,7 @@ export default class AlephiumApp {
|
|
|
39
39
|
const address = addressFromPublicKey(publicKey)
|
|
40
40
|
const group = groupOfAddress(address)
|
|
41
41
|
|
|
42
|
-
return { publicKey: publicKey, address: address, group: group }
|
|
42
|
+
return { publicKey: publicKey, address: address, group: group, keyType: 'default' }
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
async signHash(path: string, hash: Buffer): Promise<string> {
|
package/test/release.test.ts
CHANGED
|
@@ -4,13 +4,9 @@ import blake from 'blakejs'
|
|
|
4
4
|
|
|
5
5
|
import { transactionVerifySignature } from '@alephium/web3'
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
return new Promise((resolve) => setTimeout(resolve, ms))
|
|
9
|
-
}
|
|
7
|
+
import AlephiumApp from '../src'
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
describe('Integration', () => {
|
|
9
|
+
describe.skip('Integration', () => {
|
|
14
10
|
const path = `m/44'/1234'/0'/0/0`
|
|
15
11
|
|
|
16
12
|
// enable this for integration test
|