# rsv-signature

> RSV Signature Serialization

Latest version **1.1.0** (published 2020-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install rsv-signature
pnpm add rsv-signature
yarn add rsv-signature
bun add rsv-signature
```

## Health

**Score 25/100 (F)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-08-13 |
| First published | 2020-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 223.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Pedro Gomes |
| Maintainers | pedrouid |
| Keywords | rsv, cryptocurrency, crypto, signature, serialization, encoding |

## Links

- npm: https://www.npmjs.com/package/rsv-signature
- Repository: https://github.com/pedrouid/rsv-signature
- Issues: https://github.com/pedrouid/rsv-signature/issues
- npm.io page: https://npm.io/package/rsv-signature

## Dependencies (2)

- [bn.js](https://npm.io/package/bn.js.md) ^4.8.0
- [enc-utils](https://npm.io/package/enc-utils.md) ^2.2.1

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2020-08-13
- 1.0.0 — 2020-08-13

## README

# rsv-signature [![npm version](https://badge.fury.io/js/rsv-signature.svg)](https://badge.fury.io/js/rsv-signature)

RSV Signature Serialization

## API

```typescript
type RecoveryParam = number | null | undefined;

interface SignatureOptions {
  r: BN;
  s: BN;
  recoveryParam: RecoveryParam;
}

function exportRecoveryParam(recoveryParam: RecoveryParam): string | null;

function importRecoveryParam(v: string): number | undefined;

function serializeSignature(sig: SignatureOptions): string;

function deserializeSignature(sig: string, size = 64): SignatureOptions;
```

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