EmbeddedSecretProofTransactionV1 constructor

EmbeddedSecretProofTransactionV1({
  1. PublicKey? signerPublicKey,
  2. int? version,
  3. NetworkType? network,
  4. TransactionType? type,
  5. UnresolvedAddress? recipientAddress,
  6. Hash256? secret,
  7. LockHashAlgorithm? hashAlgorithm,
  8. Uint8List? proof,
})

Implementation

EmbeddedSecretProofTransactionV1(
    {PublicKey? signerPublicKey,
    int? version,
    NetworkType? network,
    TransactionType? type,
    UnresolvedAddress? recipientAddress,
    Hash256? secret,
    LockHashAlgorithm? hashAlgorithm,
    Uint8List? proof}) {
  this.signerPublicKey = signerPublicKey ?? PublicKey();
  this.version =
      version ?? EmbeddedSecretProofTransactionV1.TRANSACTION_VERSION;
  this.network = network ?? NetworkType.MAINNET;
  this.type = type ?? EmbeddedSecretProofTransactionV1.TRANSACTION_TYPE;
  this.recipientAddress = recipientAddress ?? UnresolvedAddress();
  this.secret = secret ?? Hash256();
  this.hashAlgorithm = hashAlgorithm ?? LockHashAlgorithm.SHA3_256;
  this.proof = proof ?? Uint8List(0);
}