bsv.ECIES
Class: ECIES
bsv.ECIES
Table of contents
Constructors
Methods
Constructors
constructor
• new ECIES(opts?
, algorithm?
)
Parameters
Name | Type |
---|---|
opts? | any |
algorithm? | string |
Defined in
node_modules/bsv/index.d.ts:1008
Methods
decrypt
▸ decrypt(encbuf
): Buffer
Parameters
Name | Type |
---|---|
encbuf | Buffer |
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:1013
encrypt
▸ encrypt(message
): Buffer
Parameters
Name | Type |
---|---|
message | string | Buffer |
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:1012
privateKey
▸ privateKey(privateKey
): ECIES
Parameters
Name | Type |
---|---|
privateKey | PrivateKey |
Returns
Defined in
node_modules/bsv/index.d.ts:1010
publicKey
▸ publicKey(publicKey
): ECIES
Parameters
Name | Type |
---|---|
publicKey | PublicKey |
Returns
Defined in
node_modules/bsv/index.d.ts:1011