SignedPreKeyRecord constructor

SignedPreKeyRecord(
  1. int id,
  2. Int64 timestamp,
  3. ECKeyPair keyPair,
  4. Uint8List signature,
)

Implementation

SignedPreKeyRecord(
    int id, Int64 timestamp, ECKeyPair keyPair, Uint8List signature) {
  _structure = SignedPreKeyRecordStructure.create()
    ..id = id
    ..timestamp = timestamp
    ..publicKey = keyPair.publicKey.serialize()
    ..privateKey = keyPair.privateKey.serialize()
    ..signature = signature;
}