Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jleni committed Sep 1, 2024
1 parent e3c466d commit cbead53
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README-npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ We recommend using the npmjs package in order to receive updates/fixes.
# Available commands

| Operation | Response | Command |
|----------------------|-----------------------------|-----------------------------|
| -------------------- | --------------------------- | --------------------------- |
| getVersion | app version | --------------- |
| publicKey | pubkey | path (legacy command) |
| getAddressAndPubKey | pubkey + address | path + ( showInDevice ) |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ We recommend using the npmjs package in order to receive updates/fixes.
# Available commands

| Operation | Response | Command |
|----------------------|-----------------------------|-----------------------------|
| -------------------- | --------------------------- | --------------------------- |
| getVersion | app version | --------------- |
| publicKey | pubkey | path (legacy command) |
| getAddressAndPubKey | pubkey + address | path + ( showInDevice ) |
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
},
"dependencies": {
"@ledgerhq/hw-transport": "6.31.2",
"@zondax/ledger-js": "^1.0.1",
"@noble/hashes": "^1.4",
"@scure/base": "^1.1.7",
"@zondax/ledger-js": "^1.0.1",
"buffer": "^6.0.3",
"@noble/hashes": "^1.4",
"ripemd160": "^2.0.2"
},
"devDependencies": {
Expand Down
7 changes: 3 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
******************************************************************************* */
import type Transport from '@ledgerhq/hw-transport'
import { ripemd160 } from '@noble/hashes/ripemd160'
import { sha256 } from '@noble/hashes/sha256'
import { bech32 } from '@scure/base'
import BaseApp, {
HARDENED,
INSGeneric,
Expand All @@ -29,10 +32,6 @@ import { ByteStream } from '@zondax/ledger-js/dist/byteStream'
import { CLA, P1_VALUES, P2_VALUES, PKLEN } from './consts'
import { type ResponseAddress, type ResponsePubkey, ResponseSign } from './types'

import { ripemd160 } from '@noble/hashes/ripemd160'
import { sha256 } from '@noble/hashes/sha256'
import { bech32 } from '@scure/base'

export default class CosmosApp extends BaseApp {
static _INS = {
GET_VERSION: 0x00,
Expand Down

0 comments on commit cbead53

Please sign in to comment.