bsv.PublicKey
Class: PublicKey
bsv.PublicKey
Table of contents
Constructors
Properties
Methods
- inspect
- toAddress
- toBuffer
- toByteString
- toDER
- toHex
- toObject
- toString
- fromBuffer
- fromDER
- fromHex
- fromPrivateKey
- fromString
- getValidationError
- isValid
Constructors
constructor
• new PublicKey(source
, extra?
)
Parameters
Name | Type |
---|---|
source | string | PublicKey | Point |
extra? | object |
Defined in
node_modules/bsv/index.d.ts:1057
Properties
compressed
• Readonly
compressed: boolean
Defined in
node_modules/bsv/index.d.ts:1060
network
• Readonly
network: Network
Defined in
node_modules/bsv/index.d.ts:1061
point
• Readonly
point: Point
Defined in
node_modules/bsv/index.d.ts:1059
Methods
inspect
▸ inspect(): string
Returns
string
Defined in
node_modules/bsv/index.d.ts:1069
toAddress
▸ toAddress(network?
): Address
Parameters
Name | Type |
---|---|
network? | Type |
Returns
Defined in
node_modules/bsv/index.d.ts:1066
toBuffer
▸ toBuffer(): Buffer
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:1065
toByteString
▸ toByteString(): ByteString
Returns
Defined in
dist/smart-contract/bsv/publicKey.d.ts:5
toDER
▸ toDER(): Buffer
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:1063
toHex
▸ toHex(): string
Returns
string
Defined in
node_modules/bsv/index.d.ts:1068
toObject
▸ toObject(): object
Returns
object
Defined in
node_modules/bsv/index.d.ts:1064
toString
▸ toString(): string
Returns
string
Defined in
node_modules/bsv/index.d.ts:1067
fromBuffer
▸ Static
fromBuffer(buf
, strict?
): PublicKey
Parameters
Name | Type |
---|---|
buf | Buffer |
strict? | boolean |
Returns
Defined in
node_modules/bsv/index.d.ts:1072
fromDER
▸ Static
fromDER(buf
, strict?
): PublicKey
Parameters
Name | Type |
---|---|
buf | Buffer |
strict? | boolean |
Returns
Defined in
node_modules/bsv/index.d.ts:1073
fromHex
▸ Static
fromHex(hex
): PublicKey
Parameters
Name | Type |
---|---|
hex | string |
Returns
Defined in
node_modules/bsv/index.d.ts:1077
fromPrivateKey
▸ Static
fromPrivateKey(privateKey
): PublicKey
Parameters
Name | Type |
---|---|
privateKey | PrivateKey |
Returns
Defined in
node_modules/bsv/index.d.ts:1071
fromString
▸ Static
fromString(str
): PublicKey
Parameters
Name | Type |
---|---|
str | string |
Returns
Defined in
node_modules/bsv/index.d.ts:1076
getValidationError
▸ Static
getValidationError(data
): any
Parameters
Name | Type |
---|---|
data | string |
Returns
any
Defined in
node_modules/bsv/index.d.ts:1078
isValid
▸ Static
isValid(data
): boolean
Parameters
Name | Type |
---|---|
data | string |
Returns
boolean
Defined in
node_modules/bsv/index.d.ts:1079