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

vite.bean.Key Maven / Gradle / Ivy

The newest version!
package vite.bean;

import org.apache.commons.codec.binary.Hex;

public class Key {

    private byte[] priKey;
    private byte[] pubKey;
    private byte[] address;
    private byte[] checksum;
    private byte isContract = 0;  // 0  用户   1  合约




    public String getHexAddress() {
        return "vite_" + Hex.encodeHexString(address) + Hex.encodeHexString(checksum);
    }


    public String getHexPriKey() {
        return Hex.encodeHexString(priKey);
    }


    public String getHexPubKey() {
        return Hex.encodeHexString(pubKey);
    }


    public byte[] getChecksum() {
        return checksum;
    }

    public void setChecksum(byte[] checksum) {
        this.checksum = checksum;
    }

    public byte[] getPriKey() {
        return priKey;
    }

    public void setPriKey(byte[] priKey) {
        this.priKey = priKey;
    }

    public byte[] getPubKey() {
        return pubKey;
    }

    public void setPubKey(byte[] pubKey) {
        this.pubKey = pubKey;
    }

    public byte[] getAddress() {
        return address;
    }

    public void setAddress(byte[] address) {
        this.address = address;
    }


    public byte getIsContract() {
        return isContract;
    }

    public void setIsContract(byte isContract) {
        this.isContract = isContract;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy