NoiseSecurity class
Implementation of the Noise Protocol (XX pattern) for libp2p
- Implemented types
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- protocolId → String
-
The protocol identifier string
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Signs a static key using the identity key
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
secureInbound(
TransportConn connection) → Future< SecuredConnection> -
Secures an inbound connection
override
-
secureOutbound(
TransportConn connection) → Future< SecuredConnection> -
Secures an outbound connection
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
KeyPair identityKey) → Future< NoiseSecurity> - Creates a new NoiseXXProtocol instance
-
createForTesting(
{required KeyPair identityKey}) → Future< NoiseSecurity>
Constants
- protocolIdForState → const String