Skip to content

Commit

Permalink
chore: bump dnssec-prover to v0.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Jan 12, 2025
1 parent 53b7d18 commit 1f16dc6
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 35 deletions.
2 changes: 1 addition & 1 deletion dnssec-prover
Submodule dnssec-prover updated from c4e06c to d25045
19 changes: 4 additions & 15 deletions src/utils/dnssec/dnssec_prover_wasm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,33 @@
* `name`.
*
* After calling this [`get_next_query`] should be called to fetch the initial query.
* @param {string} name
* @param {number} ty
* @returns {WASMProofBuilder | undefined}
*/
export function init_proof_builder(name: string, ty: number): WASMProofBuilder | undefined;
/**
* Processes a response to a query previously fetched from [`get_next_query`].
*
* After calling this, [`get_next_query`] should be called until pending queries are exhausted and
* no more pending queries exist, at which point [`get_unverified_proof`] should be called.
* @param {WASMProofBuilder} proof_builder
* @param {Uint8Array} response
*/
export function process_query_response(proof_builder: WASMProofBuilder, response: Uint8Array): void;
/**
* Gets the next query (if any) that should be sent to the resolver for the given proof builder.
*
* Once the resolver responds [`process_query_response`] should be called with the response.
* @param {WASMProofBuilder} proof_builder
* @returns {Uint8Array | undefined}
*/
export function get_next_query(proof_builder: WASMProofBuilder): Uint8Array | undefined;
/**
* Gets the final, unverified, proof once all queries fetched via [`get_next_query`] have
* completed and their responses passed to [`process_query_response`].
* @param {WASMProofBuilder} proof_builder
* @returns {Uint8Array}
*/
export function get_unverified_proof(proof_builder: WASMProofBuilder): Uint8Array;
/**
* Verifies an RFC 9102-formatted proof and returns verified records matching the given name
* (resolving any C/DNAMEs as required).
* @param {Uint8Array} stream
* @param {string} name_to_resolve
* @returns {string}
*/
export function verify_byte_stream(stream: Uint8Array, name_to_resolve: string): string;
export class WASMProofBuilder {
private constructor();
free(): void;
}

Expand All @@ -53,9 +42,9 @@ export interface InitOutput {
readonly __wbg_wasmproofbuilder_free: (a: number, b: number) => void;
readonly init_proof_builder: (a: number, b: number, c: number) => number;
readonly process_query_response: (a: number, b: number, c: number) => void;
readonly get_next_query: (a: number) => Array;
readonly get_unverified_proof: (a: number) => Array;
readonly verify_byte_stream: (a: number, b: number, c: number, d: number) => Array;
readonly get_next_query: (a: number) => [number, number];
readonly get_unverified_proof: (a: number) => [number, number, number, number];
readonly verify_byte_stream: (a: number, b: number, c: number, d: number) => [number, number];
readonly __wbindgen_export_0: WebAssembly.Table;
readonly __wbindgen_malloc: (a: number, b: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
Expand Down
15 changes: 7 additions & 8 deletions src/utils/dnssec/dnssec_prover_wasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ function _assertClass(instance, klass) {
if (!(instance instanceof klass)) {
throw new Error(`expected instance of ${klass.name}`);
}
return instance.ptr;
}

function passArray8ToWasm0(arg, malloc) {
Expand Down Expand Up @@ -247,13 +246,6 @@ async function __wbg_load(module, imports) {
function __wbg_get_imports() {
const imports = {};
imports.wbg = {};
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return ret;
};
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
throw new Error(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbindgen_init_externref_table = function() {
const table = wasm.__wbindgen_export_0;
const offset = table.grow(4);
Expand All @@ -264,6 +256,13 @@ function __wbg_get_imports() {
table.set(offset + 3, false);
;
};
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return ret;
};
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
throw new Error(getStringFromWasm0(arg0, arg1));
};

return imports;
}
Expand Down
Binary file modified src/utils/dnssec/dnssec_prover_wasm_bg.wasm
Binary file not shown.
22 changes: 11 additions & 11 deletions src/utils/dnssec/dnssec_prover_wasm_bg.wasm.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function __wbg_wasmproofbuilder_free(a: number, b: number): void;
export function init_proof_builder(a: number, b: number, c: number): number;
export function process_query_response(a: number, b: number, c: number): void;
export function get_next_query(a: number): Array;
export function get_unverified_proof(a: number): Array;
export function verify_byte_stream(a: number, b: number, c: number, d: number): Array;
export const __wbg_wasmproofbuilder_free: (a: number, b: number) => void;
export const init_proof_builder: (a: number, b: number, c: number) => number;
export const process_query_response: (a: number, b: number, c: number) => void;
export const get_next_query: (a: number) => [number, number];
export const get_unverified_proof: (a: number) => [number, number, number, number];
export const verify_byte_stream: (a: number, b: number, c: number, d: number) => [number, number];
export const __wbindgen_export_0: WebAssembly.Table;
export function __wbindgen_malloc(a: number, b: number): number;
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
export function __wbindgen_free(a: number, b: number, c: number): void;
export function __externref_table_dealloc(a: number): void;
export function __wbindgen_start(): void;
export const __wbindgen_malloc: (a: number, b: number) => number;
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
export const __wbindgen_free: (a: number, b: number, c: number) => void;
export const __externref_table_dealloc: (a: number) => void;
export const __wbindgen_start: () => void;

0 comments on commit 1f16dc6

Please sign in to comment.