Skip to main content

bsv.HDPublicKey

scrypt-ts / bsv / HDPublicKey

Class: HDPublicKey

bsv.HDPublicKey

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new HDPublicKey(arg)

Parameters

NameType
argstring | object | Buffer

Defined in

node_modules/bsv/index.d.ts:1172

Properties

depth

Readonly depth: number

Defined in

node_modules/bsv/index.d.ts:1176


fingerPrint

Readonly fingerPrint: Buffer

Defined in

node_modules/bsv/index.d.ts:1178


network

Readonly network: Network

Defined in

node_modules/bsv/index.d.ts:1175


publicKey

Readonly publicKey: PublicKey

Defined in

node_modules/bsv/index.d.ts:1177


xpubkey

Readonly xpubkey: Buffer

Defined in

node_modules/bsv/index.d.ts:1174

Methods

derive

derive(arg, hardened?): HDPublicKey

Parameters

NameType
argstring | number
hardened?boolean

Returns

HDPublicKey

Defined in

node_modules/bsv/index.d.ts:1180


deriveChild

deriveChild(arg, hardened?): HDPublicKey

Parameters

NameType
argstring | number
hardened?boolean

Returns

HDPublicKey

Defined in

node_modules/bsv/index.d.ts:1181


inspect

inspect(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1188


toBuffer

toBuffer(): Buffer

Returns

Buffer

Defined in

node_modules/bsv/index.d.ts:1186


toHex

toHex(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1187


toJSON

toJSON(): object

Returns

object

Defined in

node_modules/bsv/index.d.ts:1185


toObject

toObject(): object

Returns

object

Defined in

node_modules/bsv/index.d.ts:1184


toString

toString(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1183


fromBuffer

Static fromBuffer(buf): HDPublicKey

Parameters

NameType
bufBuffer

Returns

HDPublicKey

Defined in

node_modules/bsv/index.d.ts:1192


fromHDPrivateKey

Static fromHDPrivateKey(hdPrivateKey): HDPublicKey

Parameters

NameType
hdPrivateKeyHDPrivateKey

Returns

HDPublicKey

Defined in

node_modules/bsv/index.d.ts:1195


fromHex

Static fromHex(hex): HDPublicKey

Parameters

NameType
hexstring

Returns

HDPublicKey

Defined in

node_modules/bsv/index.d.ts:1193


fromObject

Static fromObject(obj): HDPublicKey

Parameters

NameType
objobject

Returns

HDPublicKey

Defined in

node_modules/bsv/index.d.ts:1191


fromString

Static fromString(str): HDPublicKey

Parameters

NameType
strstring

Returns

HDPublicKey

Defined in

node_modules/bsv/index.d.ts:1190


getSerializedError

Static getSerializedError(data, network?): any

Parameters

NameType
datastring | Buffer
network?string | Network

Returns

any

Defined in

node_modules/bsv/index.d.ts:1201


isValidPath

Static isValidPath(arg): boolean

Parameters

NameType
argstring | number

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1196


isValidSerialized

Static isValidSerialized(data, network?): boolean

Parameters

NameType
datastring | Buffer
network?string | Network

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1197