com.ubirch.key.model.db.FindTrusted.scala Maven / Gradle / Ivy
The newest version!
package com.ubirch.key.model.db
import com.ubirch.util.date.DateUtil
import org.joda.time.DateTime
/**
* author: cvandrei
* since: 2018-09-14
*/
// fields should be ordered alphabetically as some client libs only produce JSON with alphabetically ordered fields!!!
case class FindTrusted(depth: Int = 1,
minTrustLevel: Int = 50,
queryDate: DateTime = DateUtil.nowUTC,
sourcePublicKey: String
)
case class FindTrustedSigned(findTrusted: FindTrusted,
signature: String
)
case class TrustedKeyResult(depth: Int,
trustLevel: Int,
publicKey: PublicKey
)