soapbox/src/features/nostr/sign.ts

13 wiersze
230 B
TypeScript

import { type NostrSigner } from 'nspec';
import { SoapboxSigner } from './SoapboxSigner';
let signer: NostrSigner | undefined;
try {
signer = new SoapboxSigner();
} catch (_) {
// No signer available
}
export { signer };