G
G
Golem SDK
Search…
yapapi - Python high-level API
yajsapi - JavaScript high-level API
Classes
Yagna Contributor Guide
Class: CryptoCtx
yajsapi / Exports / crypto / CryptoCtx

Class: CryptoCtx

crypto.CryptoCtx

Table of contents

Constructors

Properties

Methods

Constructors

constructor

Private new CryptoCtx(priv_key, ephem_key)
Parameters
Name
Type
priv_key
ephem_key
Buffer
Defined in

Properties

ephem_key

ephem_key: Buffer
Defined in

priv_key

priv_key: PrivateKey
Defined in

Methods

decrypt

decrypt(data): Buffer
Parameters
Name
Type
data
Buffer
Returns
Buffer
Defined in

encrypt

encrypt(data): Buffer
Parameters
Name
Type
data
Buffer
Returns
Buffer
Defined in

from

Static from(pub_key, priv_key?): Promise<CryptoCtx>
Parameters
Name
Type
pub_key
PublicKey
priv_key?
Returns
Promise<CryptoCtx>
Defined in