add local event filter functions.

This commit is contained in:
fiatjaf
2021-12-14 21:56:07 -03:00
parent 4f0cae0eb8
commit cd7ffb8911
3 changed files with 31 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import {
serializeEvent,
getEventHash
} from './event'
import {matchFilter, matchFilters} from './filter'
import {makeRandom32, sha256, getPublicKey} from './utils'
export {
@@ -19,5 +20,7 @@ export {
makeRandom32,
sha256,
getPublicKey,
getBlankEvent
getBlankEvent,
matchFilter,
matchFilters
}