feat: generate key pair function

This commit is contained in:
Justin Lin committed 2024-10-14 10:53:15 +08:00
1 parent 2a3429106c
commit 2cc348687a
2 files changed
+29

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { generateKeyPair } from '../../src/utils/crypto'
describe('generateKeyPair', () => {
it('should generate a key pair', () => {
const keyPair = generateKeyPair()
expect(keyPair).toHaveProperty('privateKey')
expect(keyPair).toHaveProperty('publicKey')
})
})