Preparing search index...
The search index is not available
libp2p
libp2p
@libp2p/interface
PeerId
Interface PeerId
interface
PeerId
{
multihash
:
MultihashDigest
<
number
>
;
privateKey
?:
Uint8Array
;
publicKey
?:
Uint8Array
;
type
:
string
;
equals
(
other
?
)
:
boolean
;
toBytes
(
)
:
Uint8Array
;
toCID
(
)
:
CID
<
unknown
,
number
,
number
,
Version
>
;
toString
(
)
:
string
;
}
Hierarchy (
view full
)
PeerId
RSAPeerId
Ed25519PeerId
Secp256k1PeerId
Index
Properties
multihash
private
Key?
public
Key?
type
Methods
equals
to
Bytes
toCID
to
String
Properties
multihash
multihash
:
MultihashDigest
<
number
>
Optional
private
Key
private
Key
?:
Uint8Array
Optional
public
Key
public
Key
?:
Uint8Array
type
type
:
string
Methods
equals
equals
(
other
?
)
:
boolean
Parameters
Optional
other
:
string
|
Uint8Array
|
PeerId
Returns
boolean
to
Bytes
to
Bytes
(
)
:
Uint8Array
Returns
Uint8Array
toCID
toCID
(
)
:
CID
<
unknown
,
number
,
number
,
Version
>
Returns
CID
<
unknown
,
number
,
number
,
Version
>
to
String
to
String
(
)
:
string
Returns
string
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
multihash
private
Key
public
Key
type
equals
to
Bytes
toCID
to
String
libp2p
Loading...