open-index/open-npm huggingface dataset:
npm package: @polkadot-labs/hdkd
Description: Hierarchical deterministic (HD) account derivation library compatible with the Polkadot and Substrate ecosystems, supporting the sr25519, ed25519, and ecdsa signature schemes.
Author: kratico
Latest version: 0.0.27

# @polkadot-labs/hdkd

`@polkadot-labs/hdkd` is a Hierarchical Deterministic (HD) account derivation library compatible with the Polkadot and Substrate ecosystems.
It supports the sr25519, ed25519, and ecdsa signature schemes, providing a comprehensive solution for HD account derivation.
It is built on top of `@polkadot-labs/hdkd-helpers`.

## Features

- **HD Derivation**: Utilities for deriving HD accounts with hard and soft derivation.
- **sr25519**: Support for the sr25519 signature scheme.
- **ed25519**: Support for the ed25519 signature scheme.
- **ecdsa**: Support for the ecdsa signature scheme.

## Installation

To install the library, you can use npm or yarn or pnpm:

```sh
npm install @polkadot-labs/hdkd
```

## Usage

Here is an example of how to use the library:

```ts
import { sr25519CreateDerive } from "@polkadot-labs/hdkd"
import {
  sr25519,
  DEV_PHRASE,
  entropyToMiniSecret,
  mnemonicToEntropy,
} from "@polkadot-labs/hdkd-helpers"

const entropy = mnemonicToEntropy(DEV_PHRASE)
const miniSecret = entropyToMiniSecret(entropy)
const derive = sr25519CreateDerive(miniSecret)

// Example usage for generating a sr25519 keypair with hard derivation
const keypair = derive("//Alice")

// Example usage for signing a message
const message = new TextEncoder().encode("Hello")
const signature = keypair.sign(message)

// Example usage for verifying a signature
const isValid = sr25519.verify(signature, message, keypair.publicKey)
console.log("Is valid:", isValid)
```

## License

This project is licensed under the MIT License. See the [LICENSE](../../LICENSE) file for details.
npm package: @polkadot-labs/hdkd-helpers
Description: Composable utility functions to generate key pairs for the sr25519, ed25519, and ecdsa cryptographic schemes, along with utilities for hierarchical deterministic (HD) key derivation, tailored for use in the Polkadot and Substrate ecosystems.
Author: kratico
Latest version: 0.0.28

# @polkadot-labs/hdkd-helpers

`@polkadot-labs/hdkd-helpers` is a pure JavaScript library providing utility functions for three signature schemes: sr25519, ed25519, and ecdsa.
This library is designed to assist with Hierarchical Deterministic Key Derivation (HDKD) in the Polkadot ecosystem.
Additionally, it includes utilities for deriving HD accounts with hard and soft derivation, creating ss58 addresses, and deriving private keys through bip39.
It is built on top of `@noble/hashes`, `@noble/curves`, and `@scure/sr25519`.

## Features

- **sr25519**: Utilities for the sr25519 signature scheme.
- **ed25519**: Utilities for the ed25519 signature scheme.
- **ecdsa**: Utilities for the ecdsa signature scheme.
- **ss58**: Utilities for creating ss58 addresses.
- **Hierarchical Deterministic Accounts**: Utilities for deriving HD accounts with hard and soft derivation.
- **bip39**: Utilities for deriving private keys through bip39.

## Installation

To install the library, you can use npm or yarn or pnpm:

```sh
npm install @polkadot-labs/hdkd-helpers
```

## Usage

Here is an example of how to use the library:

```ts
import {
  sr25519,
  DEV_PHRASE,
  entropyToMiniSecret,
  mnemonicToEntropy,
} from "@polkadot-labs/hdkd-helpers"
import { secretFromSeed } from "@scure/sr25519"

const entropy = mnemonicToEntropy(DEV_PHRASE)
const miniSecret = entropyToMiniSecret(entropy)

// Example usage for generating a sr25519 keypair with hard derivation
const privateKey = secretFromSeed(miniSecret)
const publicKey = sr25519.getPublicKey(privateKey)

// Example usage for signing a message
const message = new TextEncoder().encode("Hello")
const signature = sr25519.sign(message, privateKey)

// Example usage for verifying a signature
const isValid = sr25519.verify(signature, message, publicKey)
console.log("Is valid:", isValid)
```

## License

This project is licensed under the MIT License. See the [LICENSE](../../LICENSE) file for details.
npm package: @polkadot-labs/schnorrkel-wasm
Description: JavaScript WebAssembly (WASM) wrapper for the schnorrkel Rust crate
Author: kratico
Latest version: 0.0.7

# @polkadot-labs/schnorrkel-wasm

`@polkadot-labs/schnorrkel-wasm` is a JavaScript WebAssembly (WASM) wrapper for the `schnorrkel` Rust crate. This package provides a convenient interface for using Schnorrkel's cryptographic functions in JavaScript applications.

## Features

- **Schnorrkel**: Provides access to Schnorrkel's cryptographic functions via WebAssembly.

## Installation

To install the library, you can use npm or yarn or pnpm:

```sh
npm install @polkadot-labs/schnorrkel-wasm
```

## Usage

Here is an example of how to use the library:

```ts
import {
  sr25519_secret_from_seed,
  sr25519_pubkey,
  sr25519_sign,
  sr25519_verify,
} from "@polkadot-labs/schnorrkel-wasm"

const seed = new Uint8Array(32)

// Example usage for generating a sr25519 keypair
const privateKey = sr25519_secret_from_seed(seed)
const publicKey = sr25519_pubkey(privateKey)

// Example usage for signing a message
const message = new TextEncoder().encode("Hello")
const signature = sr25519_sign(publicKey, privateKey, message)

// Example usage for verifying a signature
const isValid = sr25519_verify(publicKey, message, signature)
console.log("Is valid:", isValid)
```

## License

This project is licensed under the MIT License. See the [LICENSE](../../LICENSE) file for details.
npm package: @polkadot-ui/assets
Description: Data sources and static assets for Polkadot dApps.
Latest version: 0.0.1-alpha.2

<br />
<p align="center">
  <a href="https://github.com/polkadot-ui/library">
    <img alt="polkadot-ui" title="polkadot-ui" src="https://avatars.githubusercontent.com/u/160409902?s=200&v=4" width="80" />
  </a>
</p>

<p align="center">
  <b>Polkadot UI</b> is a library and platform <br />
  for <b>developing</b> and <b>publishing</b> assets for <b>Polkadot dApps</b>.
</p>

<div align="center">
📖 Documentation&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://github.com/polkadot-ui/library"">GitHub</a>
</div>

<hr>

# Polkadot UI: Assets

**Data sources and static assets for Polkadot dApps.**

- A list of popular web3 extension wallets with metadata and their SVG icons.

- A list of validator operators with metadata, and their SVG icons. Supported validator data.

## Docs


- [Web3 Wallet Extensions](https://polkadot-ui.info/#/extensions): A list of popular Web3 wallet extensions with metadata and icons.

- [Validator Operators](https://polkadot-ui.info/#/validators): A list of Polkadot validator operators with metadata and thumbnails.
## License

[MIT](https://spdx.org/licenses/MIT.html)
npm package: @polkadot-ui/core
Description: Core styles and themes for Polkadot dApps.
Latest version: 0.0.1-alpha.2

<br />
<p align="center">
  <a href="https://github.com/polkadot-ui/library">
    <img alt="polkadot-ui" title="polkadot-ui" src="https://avatars.githubusercontent.com/u/160409902?s=200&v=4" width="80" />
  </a>
</p>

<p align="center">
  <b>Polkadot UI</b> is a library and platform <br />
  for <b>developing</b> and <b>publishing</b> assets for <b>Polkadot dApps</b>.
</p>

<div align="center">
📖 Documentation&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://github.com/polkadot-ui/library"">GitHub</a>
</div>

<hr>

# Polkadot UI: Core

**Core styles and themes for Polkadot dApps.**

- Plug and play 2-dimensional themes, comprised of CSS variables.

- Fonts are provided with theme templates.

- Hosts CSS styles for Polkadot UI components.

## Docs


- [Using Polkadot UI Themes](https://polkadot-ui.info/#/using-themes)
## License

[MIT](https://spdx.org/licenses/MIT.html)
npm package: @polkadot-ui/react
Description: Functional React components for Polkadot dApps.
Author: Nikolaos Kontakis
Latest version: 0.0.1-alpha.35

[![Core React - Package](https://img.shields.io/badge/Core&nbsp;React-Package-E6007A?logo=polkadot =E6007A)](https://github.com/polkadot-ui/library) ![ci](https://github.com/polkadot-ui/library/actions/workflows/main.yml/badge.svg) [![License](https://img.shields.io/badge/License-GPL_3.0_only-blue.svg)](https://opensource.org/license/gpl-3-0/)

# Polkadot UI: React

Core React components. Using SCSS, Typescript etc. Built using Rollup, and publishable to NPM.

## Managing the Package

#### Start the development server for real-time component feedback.

```
pnpm run dev
```

#### Build the package into an optimised Rollup build.

```
pnpm run build
```

#### Publish the package to NPM.

```
cd dist && npm publish --access public
```
npm package: @polkadot-ui/recipes
Description: React Components for Polkadot Dapps.
Latest version: 0.1.3

<br />
<p align="center">
  <a href="https://github.com/polkadot-ui/library">
    <img alt="polkadot-ui" title="polkadot-ui" src="https://avatars.githubusercontent.com/u/160409902?s=200&v=4" width="80" />
  </a>
</p>

<p align="center">
  <b>Polkadot UI</b> is a library and platform <br />
  for <b>developing</b> and <b>publishing</b> assets for <b>Polkadot dApps</b>.
</p>

<div align="center">
📖 Documentation&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://github.com/polkadot-ui/library"">GitHub</a>
</div>

<hr>

# Polkadot UI: Recipes

**Example functional components derived from the Polkadot UI library.**

- Fully functional UI implementations of headless components.
- Useful combinations of UI components and static assets for Polkadot dApps.

## License

[MIT](https://spdx.org/licenses/mit.html)
npm package: @polkadot-ui/test-react
Description: Functional React components for Polkadot dApps.
Latest version: 0.0.2

[![Core React - Package](https://img.shields.io/badge/Core&nbsp;React-Package-E6007A?logo=polkadot =E6007A)](https://github.com/polkadot-ui/library) ![ci](https://github.com/polkadot-ui/library/actions/workflows/main.yml/badge.svg) [![License](https://img.shields.io/badge/License-GPL_3.0_only-blue.svg)](https://opensource.org/license/gpl-3-0/)

# Polkadot UI: React

Core React components. Using SCSS, Typescript etc. Built using Rollup, and publishable to NPM.

## Managing the Package

#### Start the development server for real-time component feedback.

```
pnpm run dev
```

#### Build the package into an optimised Rollup build.

```
pnpm run build
```

#### Publish the package to NPM.

```
cd dist && npm publish --access public
```
npm package: @polkadot-ui/utils
Description: Common utility functions to aid in Polkadot dApp development.
Latest version: 0.0.4

<br />
<p align="center">
  <a href="https://github.com/polkadot-ui/library">
    <img alt="polkadot-ui" title="polkadot-ui" src="https://avatars.githubusercontent.com/u/160409902?s=200&v=4" width="80" />
  </a>
</p>

<p align="center">
  <b>Polkadot UI</b> is a library and platform <br />
  for <b>developing</b> and <b>publishing</b> assets for <b>Polkadot dApps</b>.
</p>

<div align="center">
📖 Documentation&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://github.com/polkadot-ui/library"">GitHub</a>
</div>

<hr>

# Polkadot UI: Utils

**Common utility functions to aid in Polkadot dApp development.**

- Collection of reusable utilities for manipulating string / number / arrays etc.

- Collection of reusable utilities for manipulating chain units.

## Docs


- [Base](https://polkadot-ui.info/#/base-utilities): A collection of reusable utilities for manipulating string / number / arrays etc.

- [Unit](https://polkadot-ui.info/#/unit_utilities): A collection of reusable utilities for manipulating chain units.
## License

[MIT](https://spdx.org/licenses/MIT.html)