Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pedrouid/rsv-signature

RSV Signature Serialization
https://github.com/pedrouid/rsv-signature

Last synced: 2 months ago
JSON representation

RSV Signature Serialization

Awesome Lists containing this project

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;
```