+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.TaggedHash_clone_ptr(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Creates a copy of the TaggedHash
+ */
+ public clone(): TaggedHash {
+ const ret: bigint = bindings.TaggedHash_clone(this.ptr);
+ const ret_hu_conv: TaggedHash = new TaggedHash(null, ret);
+ CommonBase.add_ref_from(ret_hu_conv, this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Returns the digest to sign.
+ */
+ public as_digest(): Uint8Array {
+ const ret: number = bindings.TaggedHash_as_digest(this.ptr);
+ const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
+ return ret_conv;
+ }
+
+ /**
+ * Returns the tag used in the tagged hash.
+ */
+ public tag(): string {
+ const ret: number = bindings.TaggedHash_tag(this.ptr);
+ const ret_conv: string = bindings.decodeString(ret);
+ return ret_conv;
+ }
+
+ /**
+ * Returns the merkle root used in the tagged hash.
+ */
+ public merkle_root(): Uint8Array {
+ const ret: number = bindings.TaggedHash_merkle_root(this.ptr);
+ const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
+ return ret_conv;
+ }
+