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:308

  #### Parameters

  - ##### data: Buffer

  - ##### recovery: number

  #### Returns Signature

## Properties

### data

data: Buffer

- Defined in crypto.ts:309

### recovery

recovery: number

- Defined in crypto.ts:309

## Methods

### recover

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

- - Defined in crypto.ts:328

  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:335

  #### Returns Buffer

### toString

- toString(): string

- - Defined in crypto.ts:342

  #### Returns string

### Static fromBuffer

- fromBuffer(buffer: Buffer): Signature

- - Defined in crypto.ts:313

  #### Parameters

  - ##### buffer: Buffer

  #### Returns Signature

### Static fromString

- fromString(string: string): Signature

- - Defined in crypto.ts:320

  #### Parameters

  - ##### string: string

  #### Returns Signature

Generated using TypeDoc