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

  #### Parameters

  - ##### data: Buffer

  - ##### recovery: number

  #### Returns Signature

## Properties

### data

data: Buffer

- Defined in crypto.ts:291

### recovery

recovery: number

- Defined in crypto.ts:291

## Methods

### recover

- recover(message: Buffer): PublicKey

- - Defined in crypto.ts:299

  Recover public key from signature by providing original signed message.

  #### Parameters

  - ##### message: Buffer

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

  #### Returns PublicKey

### toBuffer

- toBuffer(): Buffer

- - Defined in crypto.ts:303

  #### Returns Buffer

### toString

- toString(): string

- - Defined in crypto.ts:310

  #### Returns string

### Static fromBuffer

- fromBuffer(buffer: Buffer): Signature

- - Defined in crypto.ts:280

  #### Parameters

  - ##### buffer: Buffer

  #### Returns Signature

### Static fromString

- fromString(string: string): Signature

- - Defined in crypto.ts:287

  #### Parameters

  - ##### string: string

  #### Returns Signature

Generated using TypeDoc