]> zoso.dev Git - libnemo.git/commitdiff
Fix dynamic import.
authorChris Duncan <chris@zoso.dev>
Wed, 4 Dec 2024 07:09:07 +0000 (23:09 -0800)
committerChris Duncan <chris@zoso.dev>
Wed, 4 Dec 2024 07:09:07 +0000 (23:09 -0800)
src/lib/rolodex.ts

index 0587dd607d53adfdea970012606286d6593370fb..4a15c772f5441c04321982029515f2af83663794 100644 (file)
@@ -94,9 +94,11 @@ export class Rolodex {
        * @returns {Promise<boolean>} True if the signature was used to sign the data, else false
        */
        async verify (name: string, signature: string, ...data: string[]): Promise<boolean> {
-               const Tools = await import('./tools.js')
+               const { Tools } = await import('./tools.js')
                const entries = this.#entries.filter(e => e.name === name)
                for (const entry of entries) {
+                       console.log(`entry.account.publicKey: ${entry.account.publicKey}`)
+                       console.log(`signature: ${signature}`)
                        const key = entry.account.publicKey
                        const verified = await Tools.verify(key, signature, ...data)
                        if (verified) {