yajsapi / Exports / crypto / CryptoCtx
crypto.CryptoCtx
CryptoCtx
priv_key
Private
new CryptoCtx(priv_key
: PrivateKey, ephem_key
: Buffer): CryptoCtx
Parameters:
Name | Type |
| |
| Buffer |
Returns: CryptoCtx
Defined in: yajsapi/crypto.ts:77
• ephem_key: Buffer
Defined in: yajsapi/crypto.ts:71
• priv_key: PrivateKey
Defined in: yajsapi/crypto.ts:70
▸ decrypt(data
: Buffer): Buffer
Parameters:
Name | Type |
| Buffer |
Returns: Buffer
Defined in: yajsapi/crypto.ts:106
▸ encrypt(data
: Buffer): Buffer
Parameters:
Name | Type |
| Buffer |
Returns: Buffer
Defined in: yajsapi/crypto.ts:84
▸ Static
from(pub_key
: PublicKey, priv_key?
: PrivateKey): Promise<CryptoCtx>
Parameters:
Name | Type |
| |
|
Returns: Promise<CryptoCtx>
Defined in: yajsapi/crypto.ts:73