yajsapi / Exports / crypto / PrivateKey
crypto.PrivateKey
• new PrivateKey()
Defined in
• inner: Buffer
Defined in
▸ derive(publicKey
): Promise
Parameters
Name | Type |
---|---|
publicKey |
PublicKey |
Returns
Promise
Defined in
▸ publicKey(compressed?
): PublicKey
Parameters
Name | Type | Default value |
---|---|---|
compressed |
boolean |
true |
Returns
Defined in
▸ sign(msg
): Promise
Parameters
Name | Type |
---|---|
msg |
Buffer |
Returns
Promise
Defined in
▸ toString(): string
Returns
string
Defined in
▸ Static
from(buffer
): PrivateKey
Parameters
Name | Type |
---|---|
buffer |
Buffer |
Returns
Defined in
▸ Static
fromHex(hex
): PublicKey
Parameters
Name | Type |
---|---|
hex |
string |
Returns
Defined in