TWPublicKey class abstract
Represents a public key.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
TWPublicKeyCompressed(
Pointer< Void> from) → Pointer<Void> - Give the compressed public key of the given non-compressed public key
-
TWPublicKeyCreateWithData(
Pointer< Void> data, int type) → Pointer<Void> - Create a public key from a block of data
-
TWPublicKeyData(
Pointer< Void> pk) → Pointer<Void> - Gives the raw data of a given public-key
-
TWPublicKeyDelete(
Pointer< Void> pk) → void - Delete the given public key
-
TWPublicKeyDescription(
Pointer< Void> publicKey) → Pointer<Utf8> - Get the public key description from a given public key
-
TWPublicKeyIsCompressed(
Pointer< Void> pk) → bool - Determines if the given public key is compressed or not
-
TWPublicKeyIsValid(
Pointer< Void> data, int type) → bool - Determines if the given public key is valid or not
-
TWPublicKeyKeyType(
Pointer< Void> publicKey) → int - Give the public key type (eliptic) of a given public key
-
TWPublicKeyRecover(
Pointer< Void> signature, Pointer<Void> message) → Pointer<Void> - Try to get a public key from a given signature and a message
-
TWPublicKeyUncompressed(
Pointer< Void> from) → Pointer<Void> - Give the non-compressed public key of a corresponding compressed public key
-
TWPublicKeyVerify(
Pointer< Void> pk, Pointer<Void> signature, Pointer<Void> message) → bool - Verify the validity of a signature and a message using the given public key
-
TWPublicKeyVerifyAsDER(
Pointer< Void> pk, Pointer<Void> signature, Pointer<Void> message) → bool - Verify the validity as DER of a signature and a message using the given public key
-
TWPublicKeyVerifyZilliqaSchnorr(
Pointer< Void> pk, Pointer<Void> signature, Pointer<Void> message) → bool - Verify a Zilliqa schnorr signature with a signature and message.
Constants
- TWPublicKeyCompressedSize → const int
- TWPublicKeyUncompressedSize → const int