AptosBasePrivateKey<PUBLICKEY extends AptosCryptoPublicKey<IPublicKey> , SIGNATURE extends AptosAnySignature>  class 
    abstract
 
Abstract class for representing the private key of an Aptos account. The private key is used for signing messages and generating a public key.
- Implementers
Constructors
- AptosBasePrivateKey({required AptosKeyAlgorithm algorithm})
- 
          Constructor that requires the algorithm
            const
- AptosBasePrivateKey.fromAIP80(String privateKey)
- 
          decode aptos AIP-80 private key style to private key.
            factory
Properties
- algorithm → AptosKeyAlgorithm
- 
  The key algorithm (e.g., Ed25519, Secp256k1)
  final
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- 
  publicKey
  → AptosCryptoPublicKey<IPublicKey> 
- 
  generate the corresponding public key from this private key
  final
- 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
- 
  sign(List< int> digest) → AptosAnySignature
- sign a message (digest) using the private key
- 
  toAIP80() → String 
- encode aptos private key to AIP-80 style.
- 
  toBytes() → List< int> 
- serialize the private key to bytes
- 
  toHex({bool lowerCase = true, String prefix = ''}) → String 
- serialize the private key to a hexadecimal string
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited