setPendingKeyExchange method
void
setPendingKeyExchange(
- int sequence,
- ECKeyPair ourBaseKey,
- ECKeyPair ourRatchetKey,
- IdentityKeyPair ourIdentityKey,
Implementation
void setPendingKeyExchange(int sequence, ECKeyPair ourBaseKey,
ECKeyPair ourRatchetKey, IdentityKeyPair ourIdentityKey) {
final structure = SessionStructurePendingKeyExchange.create()
..sequence = sequence
..localBaseKey = ourBaseKey.publicKey.serialize()
..localBaseKeyPrivate = ourBaseKey.privateKey.serialize()
..localRatchetKey = ourRatchetKey.publicKey.serialize()
..localRatchetKeyPrivate = ourRatchetKey.privateKey.serialize()
..localIdentityKey = ourIdentityKey.getPublicKey().serialize()
..localIdentityKeyPrivate = ourIdentityKey.getPrivateKey().serialize();
_sessionStructure.pendingKeyExchange = structure;
}