# @secux/utility

> SecuX Hardware Wallet internal tools for SDK

Latest version **3.0.20** (published 2025-02-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @secux/utility
pnpm add @secux/utility
yarn add @secux/utility
bun add @secux/utility
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.20 |
| Published | 2025-02-18 |
| First published | 2021-09-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 57.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | SecuX Technology Inc. |
| Maintainers | rus7hex |
| Keywords | secux, wallet, tool, sdk |

## Links

- npm: https://www.npmjs.com/package/@secux/utility
- Homepage: https://github.com/SecuX/secux-js/tree/master/packages/utility
- npm.io page: https://npm.io/package/@secux/utility

## Dependencies (6)

- [ow](https://npm.io/package/ow.md) ^0.27.0
- [base-x](https://npm.io/package/base-x.md) ^3.0.8
- [hash.js](https://npm.io/package/hash.js.md) ^1.1.7
- [elliptic](https://npm.io/package/elliptic.md) ^6.5.4
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.0.1
- [groestl-hash-js](https://npm.io/package/groestl-hash-js.md) ^1.0.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 3.0.20 (latest) — 2025-02-18
- 3.0.19 — 2025-02-18
- 3.0.18 — 2024-06-14
- 3.0.17 — 2023-10-06
- 3.0.16 — 2023-09-22
- 3.0.15 — 2023-08-28
- 3.0.14 — 2022-09-19
- 3.0.13 — 2022-09-16
- 3.0.12 — 2022-09-06
- 3.0.11 — 2022-08-19
- 3.0.10 — 2022-08-03
- 3.0.9 — 2022-06-13
- 3.0.8 — 2022-05-27
- 3.0.7 — 2022-05-09
- 3.0.6 — 2022-03-22
- … 13 more at https://npm.io/package/@secux/utility/versions

## README

# `@secux/utility`

> SecuX Hardware Wallet internal tools for SDK

## Logger module configuration (default: disabled)
1. Add the code to your project starting point:
```ts
require("@secux/utility/lib/logger");
```

2. Install following packages:
   - for web:        
        ```
        npm install --save-dev winston setimmediate
        ```
   - for react-native:
        ```
        npm install --save-dev react-native-logs
        ```

3. Configure global environment with your bundler or at project starting point:
    - for web:
        ```ts
        // use this line to trigger debug level
        process.env.DISTRIBUTION = "development";
        process.env.LOGGER = "winston";
        ```
    - for react-native:
        ```ts
        // use this line to trigger debug level
        process.env.DISTRIBUTION = "development";
        process.env.LOGGER = "react-native-logs";
        ```

## API doc
<a name="toExtenededPublicKey"></a>

## toExtenededPublicKey(path, parentFingerPrint, chainCode, publicKey) ⇒ <code>String</code>
Convert publicKey to extended publicKey

**Kind**: global function  
**Returns**: <code>String</code> - extended publicKey  

| Param | Type | Description |
| --- | --- | --- |
| path | <code>string</code> | BIP32 path |
| parentFingerPrint | <code>Buffer</code> | byte(4) |
| chainCode | <code>Buffer</code> | byte(32) |
| publicKey | <code>Buffer</code> | byte(33) |

---
_Source: https://npm.io/package/@secux/utility · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
