G
G
Golem SDK
Search…
yapapi - Python high-level API
yajsapi - JavaScript high-level API
Yagna Contributor Guide
Powered By GitBook
Class: PrivateKey
yajsapi / Exports / crypto / PrivateKey

Class: PrivateKey

crypto.PrivateKey

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new PrivateKey()
Defined in

Properties

inner

inner: Buffer
Defined in

Methods

derive

derive(publicKey): Promise
Parameters
Name
Type
publicKey
PublicKey
Returns
Promise
Defined in

publicKey

publicKey(compressed?): PublicKey
Parameters
Name
Type
Default value
compressed
boolean
true
Returns
PublicKey
Defined in

sign

sign(msg): Promise
Parameters
Name
Type
msg
Buffer
Returns
Promise
Defined in

toString

toString(): string
Returns
string
Defined in

from

Static from(buffer): PrivateKey
Parameters
Name
Type
buffer
Buffer
Returns
Defined in

fromHex

Static fromHex(hex): PublicKey
Parameters
Name
Type
hex
string
Returns
PublicKey
Defined in
Last modified 6d ago