open-index/open-npm huggingface dataset:
npm package: @secux/transport-webble
Description: Secux Hardware Wallet webBLE API for communication layer
Author: SecuX Technology Inc.
Latest version: 3.3.3

# `@secux/transport-webble`

> Secux Hardware Wallet webBLE API for communication layer

## Usage

```ts
import { SecuxWebBLE } from "@secux/transport-webble";

const device = await SecuxWebBLE.Create(
    () => console.log("connected"),
    () => console.log("disconnected")
);

await device.Connect();

const otp = prompt("Please enter otp showing on SecuX Hardware Wallet");
await device.SendOTP(otp);

...

await device.Disconnect();
```
npm package: @secux/transport-webhid
Description: SecuX Hardware Wallet webHID API for communication layer
Author: SecuX Technology Inc.
Latest version: 3.0.2

# `@secux/transport-webhid`

> SecuX Hardware Wallet webHID API for communication layer

## Usage

```ts
import { SecuxWebHID } from "@secux/transport-webhid";


const device = await SecuxWebHID.Create(
    () => console.log("connected"),
    () => console.log("disconnected")
);

await device.Connect();

...

await device.Disconnect();
```
npm package: @secux/transport-webusb
Description: SecuX Hardware Wallet webUSB/USB API for communication layer
Author: SecuX Technology Inc.
Latest version: 3.1.8

# `transport-webusb`

> SecuX Hardware Wallet webUSB/USB API for communication layer

## Usage

```ts
import { SecuxWebUSB } from "@secux/transport-webusb";


const device = await SecuxWebUSB.Create(
    () => console.log("connected"),
    () => console.log("disconnected")
);

await device.Connect();

...

await device.Disconnect();
```
npm package: @secux/utility
Description: SecuX Hardware Wallet internal tools for SDK
Author: SecuX Technology Inc.
Latest version: 3.0.20

# `@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) |