Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 644 Bytes

RemoteDecryption.md

File metadata and controls

28 lines (20 loc) · 644 Bytes

Remote Decryption REST API

last update 9/13/2023

Also see OpenAPI yaml

route("/egk/dtrustee") {

get {
    call.respond(List<RemoteDecryptingTrustee>)
}

get("create/{id}") {
  val trustee = RemoteDecryptingTrusteeJson(id)
  call.respond(trustee.publicKey()) // return guardian public key = g^s (ElementModP)
}

post("{id}/decrypt") {
   call.receive(DecryptRequest)
   call.respond(DecryptResponse)
}

post("{id}/challenge") {
   call.receive(ChallengeRequests)
   call.respond(ChallengeResponses)
}

}