nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / createDifficultyCalculator

Function: createDifficultyCalculator()

createDifficultyCalculator(baseDifficulty, contentMultiplier): DifficultyCalculator

Creates a default difficulty calculator

Parameters

baseDifficulty

number = 8

Base difficulty for all events

contentMultiplier

number = 0.001

Multiplier based on content length

Returns

DifficultyCalculator

Difficulty calculator

Defined in

nips/nip-13.ts:120