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.

See: https://github.com/libp2p/specs/blob/master/tls/tls.md

Constructors

Libp2pExtension({required SignedKey signedKey})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signedKey SignedKey
The signed key embedded in this extension.
final

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.

Constants

oid → const String
The OID assigned to the libp2p TLS extension.