This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add tests for different key types, where possible (#52)
Expands the tests to test using `secp256k1` and `RSA` keys as well as `Ed25519` where possible. Kubo doesn't support generating or importing `secp256k1` keys so those tests are skipped, as are `RSA` keys for pubsub resolution since the DHT needs to be enabled to resolve the public key component.
- Loading branch information
1 parent
25b38fd
commit 312381c
Showing
3 changed files
with
284 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { PeerIdType } from '@libp2p/interface-peer-id' | ||
|
||
export const keyTypes: PeerIdType[] = [ | ||
'Ed25519', | ||
'secp256k1', | ||
'RSA' | ||
] |
Oops, something went wrong.