import { type Bytes, type Hex, P256 } from 'ox' import { expectTypeOf, test } from 'vp/test' test('fromMnemonic', () => { const mnemonic = 'test test test test test test test test test test test junk' expectTypeOf(P256.fromMnemonic(mnemonic)).toEqualTypeOf() expectTypeOf( P256.fromMnemonic(mnemonic, { passphrase: 'qwerty' }), ).toEqualTypeOf() expectTypeOf( P256.fromMnemonic(mnemonic, { as: 'Bytes' }), ).toEqualTypeOf() }) test('fromSeed', () => { const seed = '0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f' expectTypeOf(P256.fromSeed(seed)).toEqualTypeOf() expectTypeOf(P256.fromSeed(new Uint8Array(32))).toEqualTypeOf() expectTypeOf(P256.fromSeed(seed, { as: 'Hex' })).toEqualTypeOf() expectTypeOf( P256.fromSeed(seed, { as: 'Bytes' }), ).toEqualTypeOf() })