MoneroSubaddress constructor

MoneroSubaddress(
  1. MoneroPrivateKey privVKey,
  2. MoneroPublicKey pubSKey, [
  3. MoneroPublicKey? publicVkey
])

Constructor for creating a Monero subaddress.

The constructor takes a private view key privVKey and a public spend key pubSKey. Optionally, it can also accept a public view key publicVkey (defaulting to null).

Implementation

MoneroSubaddress(this.privVKey, this.pubSKey, [MoneroPublicKey? publicVkey])
    : pubVKey = publicVkey ?? privVKey.publicKey;