@ -229,8 +229,8 @@
import "leaflet/dist/leaflet.css" ;
import "leaflet/dist/leaflet.css" ;
import { AxiosError , AxiosRequestHeaders } from "axios" ;
import { AxiosError , AxiosRequestHeaders } from "axios" ;
import { DateTime } from "luxon" ;
import { DateTime } from "luxon" ;
import { finalizeEvent } from "nostr-tools" ;
import { finalizeEvent } from "nostr-tools/lib/esm/index.js " ;
import * as nip06 from "nostr-tools/nip06" ;
import { accountFromExtendedKey , extendedKeysFromSeedWords } from "nostr-tools/lib/esm/ nip06.js " ;
import { Component , Vue } from "vue-facing-decorator" ;
import { Component , Vue } from "vue-facing-decorator" ;
import { LMap , LMarker , LTileLayer } from "@vue-leaflet/vue-leaflet" ;
import { LMap , LMarker , LTileLayer } from "@vue-leaflet/vue-leaflet" ;
import { RouteLocationNormalizedLoaded , Router } from "vue-router" ;
import { RouteLocationNormalizedLoaded , Router } from "vue-router" ;
@ -252,7 +252,8 @@ import {
retrieveAccountCount ,
retrieveAccountCount ,
retrieveFullyDecryptedAccount ,
retrieveFullyDecryptedAccount ,
} from "../libs/util" ;
} from "../libs/util" ;
import { EventTemplate , UnsignedEvent , VerifiedEvent } from "nostr-tools/core" ;
import { EventTemplate , UnsignedEvent , VerifiedEvent } from "nostr-tools/lib/esm/index.js" ;
import { finalizeEvent as nostrToolsFinalizeEvent , serializeEvent } from "nostr-tools/lib/esm/index.js" ;
@ Component ( {
@ Component ( {
components : { ImageMethodDialog , LMap , LMarker , LTileLayer , QuickNav } ,
components : { ImageMethodDialog , LMap , LMarker , LTileLayer , QuickNav } ,
@ -667,7 +668,7 @@ export default class NewEditProjectView extends Vue {
/ / r e m o v e a n y t r a i l i n g '
/ / r e m o v e a n y t r a i l i n g '
const finalDerNumNoApostrophe = finalDerNum ? . replace ( /'/g , "" ) ;
const finalDerNumNoApostrophe = finalDerNum ? . replace ( /'/g , "" ) ;
const accountNum = Number ( finalDerNumNoApostrophe || 0 ) ;
const accountNum = Number ( finalDerNumNoApostrophe || 0 ) ;
const extPubPri = nip06 . extendedKeysFromSeedWords (
const extPubPri = extendedKeysFromSeedWords (
account ? . mnemonic as string ,
account ? . mnemonic as string ,
"" ,
"" ,
accountNum ,
accountNum ,
@ -675,7 +676,7 @@ export default class NewEditProjectView extends Vue {
const publicExtendedKey : string = extPubPri ? . publicExtendedKey ;
const publicExtendedKey : string = extPubPri ? . publicExtendedKey ;
const privateExtendedKey = extPubPri ? . privateExtendedKey ;
const privateExtendedKey = extPubPri ? . privateExtendedKey ;
const privateBytes : Uint8Array =
const privateBytes : Uint8Array =
nip06 . accountFromExtendedKey ( privateExtendedKey ) . privateKey ;
accountFromExtendedKey ( privateExtendedKey ) . privateKey ;
/ / N o r e a l c o n t e n t i s n e c e s s a r y , w e j u s t w a n t s o m e t h i n g s i g n e d ,
/ / N o r e a l c o n t e n t i s n e c e s s a r y , w e j u s t w a n t s o m e t h i n g s i g n e d ,
/ / s o w e m i g h t a s w e l l u s e n o s t r l i b s f o r n o s t r f u n c t i o n s .
/ / s o w e m i g h t a s w e l l u s e n o s t r l i b s f o r n o s t r f u n c t i o n s .
/ / B e s i d e s : s o m e d a y w e m a y c r e a t e r e a l c o n t e n t t h a t w e c a n r e l a y .
/ / B e s i d e s : s o m e d a y w e m a y c r e a t e r e a l c o n t e n t t h a t w e c a n r e l a y .
@ -710,7 +711,7 @@ export default class NewEditProjectView extends Vue {
const timeSafariUrl = window . location . origin + "/claim/" + jwtId ;
const timeSafariUrl = window . location . origin + "/claim/" + jwtId ;
const content = this . fullClaim . name + " - see " + timeSafariUrl ;
const content = this . fullClaim . name + " - see " + timeSafariUrl ;
const publicKeyHex =
const publicKeyHex =
nip06 . accountFromExtendedKey ( publicExtendedKey ) . publicKey ;
accountFromExtendedKey ( publicExtendedKey ) . publicKey ;
const unsignedPayload : UnsignedEvent = {
const unsignedPayload : UnsignedEvent = {
/ / w h y d o e s n ' t " . . . s i g n e d P a y l o a d " w o r k ?
/ / w h y d o e s n ' t " . . . s i g n e d P a y l o a d " w o r k ?
kind : signedPayload . kind ,
kind : signedPayload . kind ,