UNPKG

lightningdevkit

Version:
42 lines 1.34 kB
import { CommonBase } from './CommonBase.mjs'; import * as bindings from '../bindings.mjs'; /** * A message which is sent to a DNSSEC prover requesting a DNSSEC proof for the given name. */ export class DNSSECQuery extends CommonBase { /* @internal */ constructor(_dummy, ptr) { super(ptr, bindings.DNSSECQuery_free); } clone_ptr() { const ret = bindings.DNSSECQuery_clone_ptr(this.ptr); return ret; } /** * Creates a copy of the DNSSECQuery */ clone() { const ret = bindings.DNSSECQuery_clone(this.ptr); const ret_hu_conv = new DNSSECQuery(null, ret); CommonBase.add_ref_from(ret_hu_conv, this); return ret_hu_conv; } /** * Generates a non-cryptographic 64-bit hash of the DNSSECQuery. */ hash() { const ret = bindings.DNSSECQuery_hash(this.ptr); return ret; } /** * Checks if two DNSSECQuerys contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. * Two objects with NULL inner values will be considered "equal" here. */ eq(b) { const ret = bindings.DNSSECQuery_eq(this.ptr, CommonBase.get_ptr_of(b)); CommonBase.add_ref_from(this, b); return ret; } } //# sourceMappingURL=DNSSECQuery.mjs.map