ECDSA (secp256k1) signature.

### Hierarchy

- Signature

## Index

### Constructors

- constructor

### Properties

- data
- recovery

### Methods

- recover
- toBuffer
- toString
- fromBuffer
- fromString

## Constructors

### constructor

- new Signature(data: Buffer, recovery: number): Signature

- - Defined in crypto.ts:288

  #### Parameters

  - ##### data: Buffer

  - ##### recovery: number

  #### Returns Signature

## Properties

### data

data: Buffer

- Defined in crypto.ts:290

### recovery

recovery: number

- Defined in crypto.ts:290

## Methods

### recover

- recover(message: Buffer, prefix?: undefined | string): PublicKey

- - Defined in crypto.ts:298

  Recover public key from signature by providing original signed message.

  #### Parameters

  - ##### message: Buffer

    32-byte message that was used to create the signature.

  - ##### Optional prefix: undefined | string

  #### Returns PublicKey

### toBuffer

- toBuffer(): Buffer

- - Defined in crypto.ts:302

  #### Returns Buffer

### toString

- toString(): string

- - Defined in crypto.ts:309

  #### Returns string

### Static fromBuffer

- fromBuffer(buffer: Buffer): Signature

- - Defined in crypto.ts:279

  #### Parameters

  - ##### buffer: Buffer

  #### Returns Signature

### Static fromString

- fromString(string: string): Signature

- - Defined in crypto.ts:286

  #### Parameters

  - ##### string: string

  #### Returns Signature

Generated using TypeDoc