lightningdevkit
Version:
Lightning Development Kit
30 lines (29 loc) • 1.06 kB
text/typescript
import { CommonBase } from './CommonBase.mjs';
/**
* A set of keys that were HKDF-expanded. Returned by [`NodeSigner::get_inbound_payment_key`].
*
* [`NodeSigner::get_inbound_payment_key`]: crate::sign::NodeSigner::get_inbound_payment_key
*/
export declare class ExpandedKey extends CommonBase {
/**
* Generates a non-cryptographic 64-bit hash of the ExpandedKey.
*/
hash(): bigint;
clone_ptr(): bigint;
/**
* Creates a copy of the ExpandedKey
*/
clone(): ExpandedKey;
/**
* Checks if two ExpandedKeys 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: ExpandedKey): boolean;
/**
* Create a new [`ExpandedKey`] for generating an inbound payment hash and secret.
*
* It is recommended to cache this value and not regenerate it for each new inbound payment.
*/
static constructor_new(key_material: Uint8Array): ExpandedKey;
}