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

com.jd.blockchain.ledger.LedgerDataStructure Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.ledger;

import com.jd.binaryproto.EnumContract;
import com.jd.binaryproto.EnumField;
import com.jd.binaryproto.PrimitiveType;
import com.jd.blockchain.consts.DataCodes;

/**
 * @description: 账本数据结构
 * @author: imuge
 * @date: 2021/10/19
 **/
@EnumContract(code = DataCodes.METADATA_LEDGER_DATA_STRUCTURE)
public enum LedgerDataStructure {

    MERKLE_TREE((byte) 0x01),
    KV((byte) 0x02);

    @EnumField(type = PrimitiveType.INT8)
    public final byte CODE;

    LedgerDataStructure(byte code) {
        this.CODE = code;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy