bsv.HDPublicKey
Class: HDPublicKey
bsv.HDPublicKey
Table of contents
Constructors
Properties
Methods
- derive
- deriveChild
- inspect
- toBuffer
- toHex
- toJSON
- toObject
- toString
- fromBuffer
- fromHDPrivateKey
- fromHex
- fromObject
- fromString
- getSerializedError
- isValidPath
- isValidSerialized
Constructors
constructor
• new HDPublicKey(arg
)
Parameters
Name | Type |
---|---|
arg | string | 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
Name | Type |
---|---|
arg | string | number |
hardened? | boolean |
Returns
Defined in
node_modules/bsv/index.d.ts:1180
deriveChild
▸ deriveChild(arg
, hardened?
): HDPublicKey
Parameters
Name | Type |
---|---|
arg | string | number |
hardened? | boolean |
Returns
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
Name | Type |
---|---|
buf | Buffer |
Returns
Defined in
node_modules/bsv/index.d.ts:1192
fromHDPrivateKey
▸ Static
fromHDPrivateKey(hdPrivateKey
): HDPublicKey
Parameters
Name | Type |
---|---|
hdPrivateKey | HDPrivateKey |
Returns
Defined in
node_modules/bsv/index.d.ts:1195
fromHex
▸ Static
fromHex(hex
): HDPublicKey
Parameters
Name | Type |
---|---|
hex | string |
Returns
Defined in
node_modules/bsv/index.d.ts:1193
fromObject
▸ Static
fromObject(obj
): HDPublicKey
Parameters
Name | Type |
---|---|
obj | object |
Returns
Defined in
node_modules/bsv/index.d.ts:1191
fromString
▸ Static
fromString(str
): HDPublicKey
Parameters
Name | Type |
---|---|
str | string |
Returns
Defined in
node_modules/bsv/index.d.ts:1190
getSerializedError
▸ Static
getSerializedError(data
, network?
): any
Parameters
Name | Type |
---|---|
data | string | Buffer |
network? | string | Network |
Returns
any
Defined in
node_modules/bsv/index.d.ts:1201
isValidPath
▸ Static
isValidPath(arg
): boolean
Parameters
Name | Type |
---|---|
arg | string | number |
Returns
boolean
Defined in
node_modules/bsv/index.d.ts:1196
isValidSerialized
▸ Static
isValidSerialized(data
, network?
): boolean
Parameters
Name | Type |
---|---|
data | string | Buffer |
network? | string | Network |
Returns
boolean
Defined in
node_modules/bsv/index.d.ts:1197