import { expectTypeOf, test } from 'vp/test' import type * as Engine from '../../core/Engine.js' import * as core_Ed25519 from '../../core/Ed25519.js' import * as Ed25519 from '../Ed25519.js' type Slot = Awaited> test('return type exposes only implemented Ed25519 primitives', () => { expectTypeOf().toEqualTypeOf< NonNullable >() expectTypeOf().toEqualTypeOf< NonNullable >() expectTypeOf().toEqualTypeOf< NonNullable >() expectTypeOf().toEqualTypeOf< NonNullable >() expectTypeOf().not.toHaveProperty('randomSecretKey') expectTypeOf().not.toHaveProperty('toMontgomery') }) test('the WASM namespace exposes the public Ed25519 API', () => { expectTypeOf(Ed25519.getPublicKey).toEqualTypeOf(core_Ed25519.getPublicKey) expectTypeOf().not.toHaveProperty('create') })