Skip to main content

PublicKey

Class: PublicKey

Hierarchy

  • UnsignedPublicKey

    PublicKey

Implements

  • PublicKey

Constructors

constructor

new PublicKey(obj)

Parameters

NameType
objPublicKey

Overrides

UnsignedPublicKey.constructor

Defined in

crypto/PublicKey.ts:202

Properties

createdNs

createdNs: Long

Inherited from

UnsignedPublicKey.createdNs

Defined in

crypto/PublicKey.ts:33


secp256k1Uncompressed

secp256k1Uncompressed: secp256k1Uncompressed

Implementation of

publicKey.PublicKey.secp256k1Uncompressed

Inherited from

UnsignedPublicKey.secp256k1Uncompressed

Defined in

crypto/PublicKey.ts:34


signature

Optional signature: default

Implementation of

publicKey.PublicKey.signature

Defined in

crypto/PublicKey.ts:200

Accessors

timestamp

get timestamp(): Long

Returns

Long

Implementation of

publicKey.PublicKey.timestamp

Overrides

UnsignedPublicKey.timestamp

Defined in

crypto/PublicKey.ts:212

Methods

bytesToSign

bytesToSign(): Uint8Array

Returns

Uint8Array

Defined in

crypto/PublicKey.ts:216


equals

equals(other): boolean

Parameters

NameType
otherPublicKey

Returns

boolean

Inherited from

UnsignedPublicKey.equals

Defined in

crypto/PublicKey.ts:81


generated

generated(): undefined | Date

Returns

undefined | Date

Inherited from

UnsignedPublicKey.generated

Defined in

crypto/PublicKey.ts:46


getEthereumAddress

getEthereumAddress(): string

Returns

string

Inherited from

UnsignedPublicKey.getEthereumAddress

Defined in

crypto/PublicKey.ts:89


signWithWallet

signWithWallet(wallet): Promise<void>

Parameters

NameType
walletSigner

Returns

Promise<void>

Defined in

crypto/PublicKey.ts:224


toBytes

toBytes(): Uint8Array

Returns

Uint8Array

Overrides

UnsignedPublicKey.toBytes

Defined in

crypto/PublicKey.ts:259


verify

verify(signature, digest): boolean

Parameters

NameType
signaturedefault
digestUint8Array

Returns

boolean

Inherited from

UnsignedPublicKey.verify

Defined in

crypto/PublicKey.ts:60


verifyKey

verifyKey(pub): Promise<boolean>

Parameters

NameType
pubSignedPublicKey | PublicKey

Returns

Promise<boolean>

Inherited from

UnsignedPublicKey.verifyKey

Defined in

crypto/PublicKey.ts:72


walletSignatureAddress

walletSignatureAddress(): string

Returns

string

Defined in

crypto/PublicKey.ts:245


fromBytes

Static fromBytes(bytes): PublicKey

Parameters

NameType
bytesUint8Array

Returns

PublicKey

Overrides

UnsignedPublicKey.fromBytes

Defined in

crypto/PublicKey.ts:263