com.github.DNAProject.core.sidechaingovernance.NodeToSideChainParams Maven / Gradle / Ivy
The newest version!
package com.github.DNAProject.core.sidechaingovernance;
import com.github.DNAProject.common.Address;
import com.github.DNAProject.io.BinaryReader;
import com.github.DNAProject.io.BinaryWriter;
import com.github.DNAProject.io.Serializable;
import com.github.DNAProject.io.utils;
import java.io.IOException;
public class NodeToSideChainParams implements Serializable {
public String peerPubkey;
public Address address;
public String sideChainId;
public NodeToSideChainParams(){}
public NodeToSideChainParams(String peerPubkey, Address address, String sideChainId){
this.peerPubkey = peerPubkey;
this.address = address;
this.sideChainId = sideChainId;
}
@Override
public void deserialize(BinaryReader reader) throws IOException {
this.peerPubkey = reader.readVarString();
this.address = utils.readAddress(reader);
this.sideChainId = reader.readVarString();
}
@Override
public void serialize(BinaryWriter writer) throws IOException {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy