dvm/src/local-signer.ts

9 lines
241 B
TypeScript
Raw Normal View History

2024-05-23 10:45:56 +03:00
import { NDKPrivateKeySigner } from '@nostr-dev-kit/ndk'
import { getConfig } from './config/index.js'
2023-07-08 13:49:12 +02:00
export default function getSigner(): NDKPrivateKeySigner {
2024-05-23 10:45:56 +03:00
const config = getConfig()
2023-07-08 13:49:12 +02:00
2024-05-23 10:45:56 +03:00
return new NDKPrivateKeySigner(config.key!)
}