NdkConfig constructor
NdkConfig({
- required EventVerifier eventVerifier,
- EventSigner? eventSigner,
- required CacheManager cache,
- NdkEngine engine = NdkEngine.RELAY_SETS,
- List<
String> ignoreRelays = const [], - List<
String> bootstrapRelays = DEFAULT_BOOTSTRAP_RELAYS,
Creates a new instance of NdkConfig.
eventVerifier
The verifier used to validate Nostr events.
eventSigner
Optional signer used to sign Nostr events.
cache
The cache manager for storing and retrieving Nostr data.
engine
The engine mode to use (defaults to RELAY_SETS).
ignoreRelays
A list of relay URLs to ignore (defaults to an empty list).
bootstrapRelays
A list of initial relay URLs (defaults to DEFAULT_BOOTSTRAP_RELAYS).
Implementation
NdkConfig({
required this.eventVerifier,
this.eventSigner,
required this.cache,
this.engine = NdkEngine.RELAY_SETS,
this.ignoreRelays = const [],
this.bootstrapRelays = DEFAULT_BOOTSTRAP_RELAYS,
});