mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-03-26 17:41:43 +01:00
use nostrsigner: instead of intents
This commit is contained in:
parent
601fa1f67a
commit
7c444926a2
@ -6,12 +6,12 @@ import { getPubkeyFromDecodeResult, isHexKey } from "./helpers/nip19";
|
||||
import { NostrEvent } from "./types/nostr-event";
|
||||
|
||||
export function createGetPublicKeyIntent() {
|
||||
return `intent:#Intent;scheme=nostrsigner;S.compressionType=none;S.returnType=signature;S.type=get_public_key;end`;
|
||||
return `nostrsigner:?compressionType=none&returnType=signature&type=get_public_key`;
|
||||
}
|
||||
export function createSignEventIntent(draft) {
|
||||
return `intent:${encodeURIComponent(
|
||||
return `nostrsigner:${encodeURIComponent(
|
||||
JSON.stringify(draft),
|
||||
)}#Intent;scheme=nostrsigner;S.compressionType=none;S.returnType=event;S.type=sign_event;end`;
|
||||
)}?compressionType=none&returnType=event&type=sign_event`;
|
||||
}
|
||||
|
||||
let pendingRequest: Deferred<string> | null = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user