Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decryptPayload(Uint8List encryptedPayload, {String? peerId})
→ Future<Uint8List>
-
Decrypts raw message payload bytes using the session ciphers for a specific peer
-
deserializePacket(Uint8List rawBytes)
→ Future<Map<String, dynamic>>
-
Deserializes a binary packet, verifying checksums and removing PKCS#7 padding
-
encryptPayload(Uint8List payload, {String? peerId})
→ Future<Uint8List>
-
Encrypts raw message payload bytes using the session ciphers for a specific peer
-
getFingerprint()
→ Future<String>
-
Gets the user's public identity fingerprint (SHA-256 hash of public key)
-
initializeKeys()
→ Future<void>
-
Generates or loads the persistent Curve25519 and Ed25519 keys
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
serializePacket({required int type, required int routeId, required int ttl, required int seqId, required int timestamp, required Uint8List payload, String? recipientId})
→ Future<Uint8List>
-
Serializes and pads (PKCS#7) data into a structured BitChat binary packet
-
toString()
→ String
-
A string representation of this object.
inherited