PublicKey
Class: PublicKey
Hierarchy
UnsignedPublicKey
↳
PublicKey
Implements
PublicKey
Constructors
constructor
new PublicKey(obj
)
Parameters
Name | Type |
---|---|
obj | PublicKey |
Overrides
UnsignedPublicKey.constructor
Defined in
Properties
createdNs
createdNs: Long
Inherited from
UnsignedPublicKey.createdNs
Defined in
secp256k1Uncompressed
secp256k1Uncompressed: secp256k1Uncompressed
Implementation of
publicKey.PublicKey.secp256k1Uncompressed
Inherited from
UnsignedPublicKey.secp256k1Uncompressed
Defined in
signature
Optional
signature: default
Implementation of
publicKey.PublicKey.signature
Defined in
Accessors
timestamp
get
timestamp(): Long
Returns
Long
Implementation of
publicKey.PublicKey.timestamp
Overrides
UnsignedPublicKey.timestamp
Defined in
Methods
bytesToSign
bytesToSign(): Uint8Array
Returns
Uint8Array
Defined in
equals
equals(other
): boolean
Parameters
Name | Type |
---|---|
other | PublicKey |
Returns
boolean
Inherited from
UnsignedPublicKey.equals
Defined in
generated
generated(): undefined
| Date
Returns
undefined
| Date
Inherited from
UnsignedPublicKey.generated
Defined in
getEthereumAddress
getEthereumAddress(): string
Returns
string
Inherited from
UnsignedPublicKey.getEthereumAddress
Defined in
signWithWallet
signWithWallet(wallet
): Promise
<void
>
Parameters
Name | Type |
---|---|
wallet | Signer |
Returns
Promise
<void
>
Defined in
toBytes
toBytes(): Uint8Array
Returns
Uint8Array
Overrides
UnsignedPublicKey.toBytes
Defined in
verify
verify(signature
, digest
): boolean
Parameters
Name | Type |
---|---|
signature | default |
digest | Uint8Array |
Returns
boolean
Inherited from
UnsignedPublicKey.verify
Defined in
verifyKey
verifyKey(pub
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
pub | SignedPublicKey | PublicKey |
Returns
Promise
<boolean
>
Inherited from
UnsignedPublicKey.verifyKey
Defined in
walletSignatureAddress
walletSignatureAddress(): string
Returns
string
Defined in
fromBytes
Static
fromBytes(bytes
): PublicKey
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
Overrides
UnsignedPublicKey.fromBytes