open-index/open-npm huggingface dataset:
npm package: @spliterati-sdamashek/uint8
Description: A uint8 type definition
Author: Zak Blacher
Latest version: 1.0.0

# `uint8`

It's a uint8 type. What more do you want?

## Usage

```
import type { uint8 } from '@spliterati/uint8';

const u8 : uint8 = 221;
```
npm package: @spliterati/shamir
Description: Arbitrary-length shamir implementation
Author: Zak Blacher
Latest version: 0.5.1

# `shamir`

This library is a port of the arbitrary-length per-byte shamir secret sharing implementation from [Hashicorp's Vault](https://github.com/hashicorp/vault/blob/master/shamir/shamir.go) product.

I have removed the constant runtime functionality from the galois field arithmetic, as it doesn't really add much to the security of this system.

## Usage

```typescript
import {Shamir} from '@spliterati/shamir';

const secret : Uint8Array = ...;
// ... 
const shares = Shamir.split(secret, 5, 3);

const reassembled = Shamir.combine([shares[0], shares[3], shares[1]]);
// arbitrary indices

expect(secret).toEqual(reassembled);

```