Splits ProtocolMessages exceeding NIP-44's 65,535-byte plaintext ceiling across multiple gift-wrapped events. Symmetric (both directions), fire-and-forget, backward-compatible via a new transport-level \`extensions\` field on \`dapp_ready\` and \`wallet_ready\`. Resolves the \"Failed to swap: invalid plaintext size\" error on aggregated swap requests and enables signed-tx responses up to the 1 MB BCH consensus limit (~2 MB hex).
52 lines
1.6 KiB
TypeScript
52 lines
1.6 KiB
TypeScript
// 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";
|
|
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,
|
|
DEFAULT_RELAY_URLS,
|
|
} 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 {
|
|
CHUNK_EXTENSION_NAME,
|
|
CHUNK_EXTENSION_VERSION,
|
|
chunkExtensionAdvertisement,
|
|
peerSupportsChunk,
|
|
} from "./transforms/chunk.js";
|
|
export {
|
|
binToHex,
|
|
hexToBin,
|
|
binToBech32Padded,
|
|
bech32PaddedToBin,
|
|
} from "@bitauth/libauth";
|
|
export {
|
|
parseExtendedJson,
|
|
parseExtendedJsonValue,
|
|
isExtendedJsonFormat,
|
|
toUint8Array,
|
|
toBigInt,
|
|
} from "./serialize.js";
|