dvm/src/local-signer.ts
2024-05-23 10:45:56 +03:00

9 lines
241 B
TypeScript

import { NDKPrivateKeySigner } from '@nostr-dev-kit/ndk'
import { getConfig } from './config/index.js'
export default function getSigner(): NDKPrivateKeySigner {
const config = getConfig()
return new NDKPrivateKeySigner(config.key!)
}