split relay and pool into pure and wasm modules.

This commit is contained in:
fiatjaf
2023-12-21 17:25:24 -03:00
parent 1f7378ca49
commit a4ae964ee6
11 changed files with 126 additions and 39 deletions

10
pool-wasm.ts Normal file
View File

@@ -0,0 +1,10 @@
import { verifyEvent } from './wasm.ts'
import TrustedSimplePool from './trusted-pool.ts'
export default class WasmSimplePool extends TrustedSimplePool {
constructor() {
super({ verifyEvent })
}
}
export * from './trusted-pool.ts'