TWPrivateKey class abstract
Represents a private 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
-
TWPrivateKeyCreate(
) → Pointer< Void> - Create a random private key
-
TWPrivateKeyCreateCopy(
Pointer< Void> key) → Pointer<Void> - Deep copy a given private key
-
TWPrivateKeyCreateWithData(
Pointer< Void> data) → Pointer<Void> - Create a private key with the given block of data
-
TWPrivateKeyData(
Pointer< Void> pk) → Pointer<Void> - Convert the given private key to raw-bytes block of data
-
TWPrivateKeyDelete(
Pointer< Void> pk) → void - Delete the given private key
-
TWPrivateKeyGetPublicKey(
Pointer< Void> pk, int coinType) → Pointer<Void> - Returns the public key associated with the given coinType and privateKey
-
TWPrivateKeyGetPublicKeyByType(
Pointer< Void> pk, int pubkeyType) → Pointer<Void> - Returns the public key associated with the given pubkeyType and privateKey
-
TWPrivateKeyGetPublicKeyCurve25519(
Pointer< Void> pk) → Pointer<Void> - Returns the Curve25519 public key associated with the given private key
-
TWPrivateKeyGetPublicKeyEd25519(
Pointer< Void> pk) → Pointer<Void> - Returns the Ed25519 public key associated with the given private key
-
TWPrivateKeyGetPublicKeyEd25519Blake2b(
Pointer< Void> pk) → Pointer<Void> - Returns the Ed25519Blake2b public key associated with the given private key
-
TWPrivateKeyGetPublicKeyEd25519Cardano(
Pointer< Void> pk) → Pointer<Void> - Returns the Ed25519Cardano public key associated with the given private key
-
TWPrivateKeyGetPublicKeyNist256p1(
Pointer< Void> pk) → Pointer<Void> - Returns the Nist256p1 public key associated with the given private key
-
TWPrivateKeyGetPublicKeySecp256k1(
Pointer< Void> pk, bool compressed) → Pointer<Void> - Returns the Secp256k1 public key associated with the given private key
- Computes an EC Diffie-Hellman secret in constant time Supported curves: secp256k1
-
TWPrivateKeyIsValid(
Pointer< Void> data, int curve) → bool - Determines if the given private key is valid or not.
-
TWPrivateKeySign(
Pointer< Void> pk, Pointer<Void> digest, int curve) → Pointer<Void> - Signs a digest using ECDSA and given curve.
-
TWPrivateKeySignAsDER(
Pointer< Void> pk, Pointer<Void> digest) → Pointer<Void> - Signs a digest using ECDSA. The result is encoded with DER.
-
TWPrivateKeySignZilliqaSchnorr(
Pointer< Void> pk, Pointer<Void> message) → Pointer<Void> - Signs a digest using ECDSA and Zilliqa schnorr signature scheme.
Constants
- TWPrivateKeySize → const int