mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: generate key pair function
This commit is contained in:
1 parent
2a3429106c
commit
2cc348687a
2 files changed
+29
No files matched your search
@@ -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')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user