Companion

object Companion

Functions

Link copied to clipboard
fun create(to: String, from: String, rfqData: CreateRfqData, protocol: String = "1.0", externalId: String? = null): Rfq

Creates a new Rfq message, autopopulating the id, creation time, and message kind.

Link copied to clipboard

Generate random salt, used for salted hashes in RfqPrivateData

Link copied to clipboard
fun parse(payload: String, requireAllPrivateData: Boolean = false): Rfq

Takes an existing Rfq in the form of a json string and parses it into a Rfq object. Validates object structure and performs an integrity check using the message signature.