Home Reference Source
import PrivateKey from 'bitsharesjs/lib/ecc/src/PrivateKey.js'
public class | source

PrivateKey

Static Method Summary

Static Public Methods
public static

fromBuffer(buf: *): *

public static

fromHex(hex: *): *

public static

fromSeed(seed: *): *

public static

fromWif(_private_wif: *): string

Constructor Summary

Private Constructor
private

Member Summary

Public Members
public

d: *

Method Summary

Public Methods
public

child(offset: *): *

public

get_shared_secret(public_key: *, legacy: boolean): *

ECIES

public

toBuffer(): *

public
public

toHex(): *

public
public

toPublicKeyPoint(): Point

public

toWif(): *

Static Public Methods

public static fromBuffer(buf: *): * source

Params:

NameTypeAttributeDescription
buf *

Return:

*

public static fromHex(hex: *): * source

Params:

NameTypeAttributeDescription
hex *

Return:

*

public static fromSeed(seed: *): * source

Params:

NameTypeAttributeDescription
seed *

Return:

*

public static fromWif(_private_wif: *): string source

Params:

NameTypeAttributeDescription
_private_wif *

Return:

string

Wallet Import Format (still a secret, Not encrypted)

Private Constructors

private constructor() source

Public Members

public d: * source

Public Methods

public child(offset: *): * source

Params:

NameTypeAttributeDescription
offset *

Return:

*

Throw:

Error

overflow of the key could not be derived

public get_shared_secret(public_key: *, legacy: boolean): * source

ECIES

Params:

NameTypeAttributeDescription
public_key *
legacy boolean
  • optional
  • default: false

Return:

*

public toBuffer(): * source

Return:

*

public toByteBuffer(): * source

Return:

*

public toHex(): * source

Return:

*

public toPublicKey(): * source

Return:

*

public toPublicKeyPoint(): Point source

Return:

Point

public toWif(): * source

Return:

*