https://gitlab.com/tezos/tezos
Raw File
Tip revision: 5b1c92b2215b35ffc27ed48b9a2423d0fe7134b1 authored by ambrona on 19 April 2023, 14:26:21 UTC
lib_plonk: generalize names of T, Si and Ss polynomials
Tip revision: 5b1c92b
rescue.h
#ifndef RESCUE_H
#define RESCUE_H

#include "blst.h"
#include "blst_misc.h"

typedef struct rescue_ctxt_s {
  // Containts the state, the MDS and the constants
  blst_fr *state;
  int nb_rounds;
  int state_size;
} rescue_ctxt_t;

void marvellous_apply_permutation(rescue_ctxt_t *ctxt);

blst_fr *rescue_get_state_from_context(rescue_ctxt_t *ctxt);

blst_fr *rescue_get_mds_from_context(rescue_ctxt_t *ctxt);

blst_fr *rescue_get_round_constants_from_context(rescue_ctxt_t *ctxt);

int rescue_get_state_size_from_context(rescue_ctxt_t *ctxt);

int rescue_get_number_of_constants_from_context(rescue_ctxt_t *ctxt);

#endif
back to top