Skip to main content

bsv.PublicKey

scrypt-ts / bsv / PublicKey

Class: PublicKey

bsv.PublicKey

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new PublicKey(source, extra?)

Parameters

NameType
sourcestring | 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

NameType
network?Type

Returns

Address

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

ByteString

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

NameType
bufBuffer
strict?boolean

Returns

PublicKey

Defined in

node_modules/bsv/index.d.ts:1072


fromDER

Static fromDER(buf, strict?): PublicKey

Parameters

NameType
bufBuffer
strict?boolean

Returns

PublicKey

Defined in

node_modules/bsv/index.d.ts:1073


fromHex

Static fromHex(hex): PublicKey

Parameters

NameType
hexstring

Returns

PublicKey

Defined in

node_modules/bsv/index.d.ts:1077


fromPrivateKey

Static fromPrivateKey(privateKey): PublicKey

Parameters

NameType
privateKeyPrivateKey

Returns

PublicKey

Defined in

node_modules/bsv/index.d.ts:1071


fromString

Static fromString(str): PublicKey

Parameters

NameType
strstring

Returns

PublicKey

Defined in

node_modules/bsv/index.d.ts:1076


getValidationError

Static getValidationError(data): any

Parameters

NameType
datastring

Returns

any

Defined in

node_modules/bsv/index.d.ts:1078


isValid

Static isValid(data): boolean

Parameters

NameType
datastring

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1079