hopr_crypto_packet::por

Function pre_verify

Source
pub fn pre_verify(
    secret: &SharedSecret,
    por_bytes: &[u8],
    challenge: &EthereumChallenge,
) -> Result<ProofOfRelayOutput>
Expand description

Verifies that an incoming packet contains all values that are necessary to reconstruct the response to redeem the incentive for relaying the packet.

ยงArguments

  • secret shared secret with the creator of the packet
  • por_bytes serialized ProofOfRelayString as included within the packet
  • challenge ticket challenge of the incoming ticket