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:200

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:198

Accessors

timestamp

get timestamp(): Long

Returns

Long

Implementation of

publicKey.PublicKey.timestamp

Overrides

UnsignedPublicKey.timestamp

Defined in

crypto/PublicKey.ts:210

Methods

bytesToSign

bytesToSign(): Uint8Array

Returns

Uint8Array

Defined in

crypto/PublicKey.ts:214


equals

equals(other): boolean

Parameters

NameType
otherPublicKey

Returns

boolean

Inherited from

UnsignedPublicKey.equals

Defined in

crypto/PublicKey.ts:79


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:87


signWithWallet

signWithWallet(wallet): Promise<void>

Parameters

NameType
walletSigner

Returns

Promise<void>

Defined in

crypto/PublicKey.ts:222


toBytes

toBytes(): Uint8Array

Returns

Uint8Array

Overrides

UnsignedPublicKey.toBytes

Defined in

crypto/PublicKey.ts:257


verify

verify(signature, digest): boolean

Parameters

NameType
signaturedefault
digestUint8Array

Returns

boolean

Inherited from

UnsignedPublicKey.verify

Defined in

crypto/PublicKey.ts:58


verifyKey

verifyKey(pub): Promise<boolean>

Parameters

NameType
pubSignedPublicKey | PublicKey

Returns

Promise<boolean>

Inherited from

UnsignedPublicKey.verifyKey

Defined in

crypto/PublicKey.ts:70


walletSignatureAddress

walletSignatureAddress(): string

Returns

string

Defined in

crypto/PublicKey.ts:243


fromBytes

Static fromBytes(bytes): PublicKey

Parameters

NameType
bytesUint8Array

Returns

PublicKey

Overrides

UnsignedPublicKey.fromBytes

Defined in

crypto/PublicKey.ts:261