Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
feat: expose supported peer id types (#318)
Browse files Browse the repository at this point in the history
To reduce duplication elsewhere, expose supported PeerId types
  • Loading branch information
achingbrain committed Dec 7, 2022
1 parent 913ddb5 commit 1197484
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/interface-peer-id/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import type { CID } from 'multiformats/cid'
import type { MultihashDigest } from 'multiformats/hashes/interface'

export type PeerIdType = 'RSA' | 'Ed25519' | 'secp256k1'

interface BasePeerId {
readonly type: 'RSA' | 'Ed25519' | 'secp256k1'
readonly type: PeerIdType
readonly multihash: MultihashDigest
readonly privateKey?: Uint8Array
readonly publicKey?: Uint8Array
Expand Down

0 comments on commit 1197484

Please sign in to comment.