All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.openchvote.protocol.protocols.plain.content.requestresponse.response.RAC1 Maven / Gradle / Ivy

Go to download

This module instantiates the generic framework module to the CHVote protocol.

The newest version!
/*
 * Copyright (C) 2024 Berner Fachhochschule https://e-voting.bfh.ch
 *
 *  - This program is free software: you can redistribute it and/or modify                           -
 *  - it under the terms of the GNU Affero General Public License as published by                    -
 *  - the Free Software Foundation, either version 3 of the License, or                              -
 *  - (at your option) any later version.                                                            -
 *  -                                                                                                -
 *  - This program is distributed in the hope that it will be useful,                                -
 *  - but WITHOUT ANY WARRANTY; without even the implied warranty of                                 -
 *  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the                                   -
 *  - GNU General Public License for more details.                                                   -
 *  -                                                                                                -
 *  - You should have received a copy of the GNU Affero General Public License                       -
 *  - along with this program. If not, see .                           -
 */
package ch.openchvote.protocol.protocols.plain.content.requestresponse.response;

import ch.openchvote.framework.annotations.content.Signed;
import ch.openchvote.framework.communication.Content;
import ch.openchvote.algorithms.protocols.common.model.EventSetup;
import ch.openchvote.algorithms.protocols.plain.model.KeyPairProof;
import ch.openchvote.algorithms.protocols.plain.model.VotingParametersPlain;
import ch.openchvote.utilities.serializer.TypeReference;
import ch.openchvote.utilities.tuples.Quadruple;

import java.math.BigInteger;

@SuppressWarnings("MissingJavadoc")
@Signed
public final class RAC1 extends Quadruple implements Content {

    @SuppressWarnings("unused")
    static public final TypeReference TYPE_REFERENCE = new TypeReference<>() {
    };

    public RAC1(EventSetup ES, VotingParametersPlain VP, BigInteger pk, KeyPairProof pi) {
        super(ES, VP, pk, pi);
    }

    public EventSetup get_ES() {
        return this.getFirst();
    }

    public VotingParametersPlain get_VP() {
        return this.getSecond();
    }

    public BigInteger get_pk() {
        return this.getThird();
    }

    public KeyPairProof get_pi() {
        return this.getFourth();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy