Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pedrouid/rsv-signature
- Owner: pedrouid
- License: mit
- Created: 2020-08-13T15:16:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-13T15:41:44.000Z (over 4 years ago)
- Last Synced: 2024-10-14T00:33:29.317Z (3 months ago)
- Language: TypeScript
- Size: 124 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
```