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

com.weavechain.core.operations.ThresholdMultisigContext Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package com.weavechain.core.operations;

import cafe.cryptography.curve25519.EdwardsPoint;
import cafe.cryptography.curve25519.Scalar;
import com.weavechain.core.data.ThresholdSigEd25519Param;
import com.weavechain.core.data.ThresholdSigPayload;
import com.weavechain.core.encoding.Utils;
import lombok.Getter;
import lombok.Setter;

import java.util.Map;
import java.util.Set;

@Getter
public class ThresholdMultisigContext {

    private final String pubKey;

    private final ThresholdSigOptions options = new ThresholdSigOptions(300);

    private final Map uuidPeerMap = Utils.newConcurrentHashMap();

    private final Map> edwardsPoints = Utils.newConcurrentHashMap();

    private final Map> signatureShares = Utils.newConcurrentHashMap();

    @Setter
    private ThresholdSigEd25519Param thresholdSigEd25519Param;

    @Setter
    private ThresholdSigPayload thresholdSigPayload = null;


    public ThresholdMultisigContext(String pubKey) {
        this.pubKey = pubKey;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy