WizardConnect/packages/core/src/index.ts

46 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-02-26 11:19:47 +01:00
// Copyright (C) 2026 Whiterun LLC,
// This software is licensed under the GNU Lesser General Public License (LGPL), version 3.0 or later.
// A copy of the license can be found in the LICENSE file or at https://www.gnu.org/licenses/lgpl-3.0.html
export { RelayClient } from "./relay-client.js";
export type { RelayClientConfig } from "./relay-client.js";
export { SimplePool } from "nostr-tools/pool";
2026-02-26 11:19:47 +01:00
export { RelayStatus, initiateRelay } from "./relay-handler.js";
export type {
RelayUpdatePayload,
RelayStatusCallback,
} from "./relay-handler.js";
export { initiateDappRelay } from "./dapp-relay.js";
export type { DappRelayOptions, DappRelayResult } from "./dapp-relay.js";
export { initiateWalletRelay } from "./wallet-relay.js";
export type { WalletRelayOptions, WalletRelayResult } from "./wallet-relay.js";
export {
generateKeyExchangeCredentials,
encodeKeyExchangeURI,
decodeKeyExchangeURI,
DEFAULT_RELAY_HOSTNAME,
DEFAULT_RELAY_PORT,
DEFAULT_RELAY_PROTOCOL,
} from "./key-exchange.js";
export type {
KeyExchangeCredentials,
DecodedKeyExchangeURI,
KeyExchangeURIOptions,
KeyExchangeURIResult,
} from "./key-exchange.js";
export * from "./protocols/hdwalletv1.js";
export * from "./protocols/base.js";
export {
binToHex,
hexToBin,
binToBech32Padded,
bech32PaddedToBin,
} from "@bitauth/libauth";
export {
parseExtendedJson,
parseExtendedJsonValue,
isExtendedJsonFormat,
toUint8Array,
toBigInt,
} from "./serialize.js";