Libp2pExtension class
The libp2p TLS X.509 certificate extension.
Per the libp2p TLS specification, this extension carries a SignedKey protobuf that binds the TLS certificate to a libp2p peer identity.
Constructors
- Libp2pExtension({required SignedKey signedKey})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Uint8List - Returns the protobuf-encoded SignedKey bytes.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parse(
Uint8List bytes) → Libp2pExtension - Parses a Libp2pExtension from protobuf-encoded SignedKey bytes.