import { describe, it, expect } from 'vitest'; import { decodePublicKey } from './web-authn'; describe('WebAuthnAuth', () => { describe('decodePublicKey', () => { it('should decode public key', () => { const publicKey = decodePublicKey( '0x12345678901234567890123456789012345678901234567890123456789012341234567890123456789012345678901234567890123456789012345678901234' ); expect(publicKey).toEqual([ 8234104122419153896766082834368325185836758793849283143825308940974890684980n, 8234104122419153896766082834368325185836758793849283143825308940974890684980n, ]); }); }); });