SignedPublicKey
Class: SignedPublicKey
Hierarchy
UnsignedPublicKey
↳
SignedPublicKey
Implements
SignedPublicKey
Constructors
constructor
new SignedPublicKey(obj
)
Parameters
Name | Type |
---|---|
obj | SignedPublicKey |
Overrides
UnsignedPublicKey.constructor
Defined in
Properties
createdNs
createdNs: Long
Inherited from
UnsignedPublicKey.createdNs
Defined in
keyBytes
keyBytes: Uint8Array
Implementation of
publicKey.SignedPublicKey.keyBytes
Defined in
secp256k1Uncompressed
secp256k1Uncompressed: secp256k1Uncompressed
Inherited from
UnsignedPublicKey.secp256k1Uncompressed
Defined in
signature
signature: Signature
Implementation of
publicKey.SignedPublicKey.signature
Defined in
Accessors
timestamp
get
timestamp(): Long
Returns
Long
Inherited from
UnsignedPublicKey.timestamp
Defined in
unsignedKey
get
unsignedKey(): UnsignedPublicKey
Returns
UnsignedPublicKey
Defined in
Methods
bytesToSign
bytesToSign(): Uint8Array
Returns
Uint8Array
Defined in
equals
equals(other
): boolean
Parameters
Name | Type |
---|---|
other | SignedPublicKey |
Returns
boolean
Overrides
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
isFromLegacyKey
isFromLegacyKey(): boolean
Returns
boolean
Inherited from
UnsignedPublicKey.isFromLegacyKey
Defined in
signerKey
signerKey(): Promise
<undefined
| UnsignedPublicKey
>
Returns
Promise
<undefined
| UnsignedPublicKey
>
Defined in
toBytes
toBytes(): Uint8Array
Returns
Uint8Array
Overrides
UnsignedPublicKey.toBytes
Defined in
toLegacyKey
toLegacyKey(): PublicKey
Returns
Defined in
verify
verify(signature
, digest
): boolean
Parameters
Name | Type |
---|---|
signature | Signature |
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(): Promise
<string
>
Returns
Promise
<string
>
Defined in
fromBytes
Static
fromBytes(bytes
): SignedPublicKey
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
Overrides
UnsignedPublicKey.fromBytes
Defined in
fromLegacyKey
Static
fromLegacyKey(legacyKey
, signedByWallet?
): SignedPublicKey
Parameters
Name | Type |
---|---|
legacyKey | PublicKey |
signedByWallet? | boolean |