* @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) {