All Downloads are FREE. Search and download functionalities are using the official Maven repository.

su.iroha.0.0.8.source-code.ModelProtoTransaction Maven / Gradle / Ivy

Go to download

A application used as an example on how to set up pushing its components to the Central Repository.

The newest version!
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.12
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


public class ModelProtoTransaction {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected ModelProtoTransaction(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(ModelProtoTransaction obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        irohaJNI.delete_ModelProtoTransaction(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public Blob signAndAddSignature(UnsignedTx us, Keypair keypair) {
    return new Blob(irohaJNI.ModelProtoTransaction_signAndAddSignature(swigCPtr, this, UnsignedTx.getCPtr(us), us, Keypair.getCPtr(keypair), keypair), true);
  }

  public ModelProtoTransaction() {
    this(irohaJNI.new_ModelProtoTransaction(), true);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy