ElectrumV1.fromPrivateKey constructor

ElectrumV1.fromPrivateKey(
  1. List<int> privKey
)

Create an Electrum V1 instance from a private key represented as List<int>.

Implementation

factory ElectrumV1.fromPrivateKey(List<int> privKey) {
  final privateKey = Secp256k1PrivateKeyEcdsa.fromBytes(privKey);
  return ElectrumV1._(privateKey, privateKey.publicKey);
}