Update auto-generated bindings to 0.0.101
[ldk-java] / ts / structs / Sha256.ts
index bb9bf919b762f91907fb467bf457cf2237f2fee9..2f97904cc839aae0bfa72cef6aca4a4d254e991f 100644 (file)
@@ -18,12 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.Sha256_free(this.ptr);
                     }
                 }
-       public boolean eq(Sha256 b) {
-               boolean ret = bindings.Sha256_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
-               this.ptrs_to.add(b);
-               return ret;
-       }
-
        public Sha256 clone() {
                number ret = bindings.Sha256_clone(this.ptr);
                const ret_hu_conv: Sha256 = new Sha256(null, ret);
@@ -31,4 +25,15 @@ import * as bindings from '../bindings' // TODO: figure out location
                return ret_hu_conv;
        }
 
+       public number hash() {
+               number ret = bindings.Sha256_hash(this.ptr);
+               return ret;
+       }
+
+       public boolean eq(Sha256 b) {
+               boolean ret = bindings.Sha256_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               this.ptrs_to.add(b);
+               return ret;
+       }
+
 }