pshenmic-dpp 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1984,6 +1984,8 @@ export class PublicKeyWASM {
|
|
|
1984
1984
|
static fromBytes(bytes: Uint8Array): PublicKeyWASM;
|
|
1985
1985
|
/** @returns {string} */
|
|
1986
1986
|
getPublicKeyHash(): string;
|
|
1987
|
+
/** @returns {Uint8Array<ArrayBufferLike>} */
|
|
1988
|
+
hash160(): Uint8Array;
|
|
1987
1989
|
/**
|
|
1988
1990
|
* @param {boolean} compressed
|
|
1989
1991
|
* @param {Uint8Array<ArrayBufferLike>} public_key_bytes
|
|
@@ -4570,6 +4572,7 @@ export interface InitOutput {
|
|
|
4570
4572
|
readonly publickeywasm_compressed: (a: number) => number;
|
|
4571
4573
|
readonly publickeywasm_fromBytes: (a: number, b: number, c: number) => void;
|
|
4572
4574
|
readonly publickeywasm_getPublicKeyHash: (a: number, b: number) => void;
|
|
4575
|
+
readonly publickeywasm_hash160: (a: number, b: number) => void;
|
|
4573
4576
|
readonly publickeywasm_inner: (a: number, b: number) => void;
|
|
4574
4577
|
readonly publickeywasm_new: (a: number, b: number, c: number, d: number) => void;
|
|
4575
4578
|
readonly publickeywasm_set_compressed: (a: number, b: number) => void;
|
|
@@ -13677,6 +13677,22 @@ export class PublicKeyWASM {
|
|
|
13677
13677
|
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
13678
13678
|
}
|
|
13679
13679
|
}
|
|
13680
|
+
/**
|
|
13681
|
+
* @returns {Uint8Array}
|
|
13682
|
+
*/
|
|
13683
|
+
hash160() {
|
|
13684
|
+
try {
|
|
13685
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13686
|
+
wasm.publickeywasm_hash160(retptr, this.__wbg_ptr);
|
|
13687
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13688
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13689
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
13690
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
13691
|
+
return v1;
|
|
13692
|
+
} finally {
|
|
13693
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13694
|
+
}
|
|
13695
|
+
}
|
|
13680
13696
|
/**
|
|
13681
13697
|
* @param {boolean} compressed
|
|
13682
13698
|
* @param {Uint8Array} public_key_bytes
|