Skip to main content

bsv.ECIES

scrypt-ts / bsv / ECIES

Class: ECIES

bsv.ECIES

Table of contents

Constructors

Methods

Constructors

constructor

new ECIES(opts?, algorithm?)

Parameters

NameType
opts?any
algorithm?string

Defined in

node_modules/bsv/index.d.ts:1008

Methods

decrypt

decrypt(encbuf): Buffer

Parameters

NameType
encbufBuffer

Returns

Buffer

Defined in

node_modules/bsv/index.d.ts:1013


encrypt

encrypt(message): Buffer

Parameters

NameType
messagestring | Buffer

Returns

Buffer

Defined in

node_modules/bsv/index.d.ts:1012


privateKey

privateKey(privateKey): ECIES

Parameters

NameType
privateKeyPrivateKey

Returns

ECIES

Defined in

node_modules/bsv/index.d.ts:1010


publicKey

publicKey(publicKey): ECIES

Parameters

NameType
publicKeyPublicKey

Returns

ECIES

Defined in

node_modules/bsv/index.d.ts:1011