dvm/src/local-signer.ts

8 lines
248 B
TypeScript
Raw Normal View History

2023-07-08 13:49:12 +02:00
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!);
}