<|start_filename|>src/main/java/io/ipfs/api/cbor/Cborable.java<|end_filename|>
package io.ipfs.api.cbor;

public interface Cborable {

    CborObject toCbor();

    default byte[] serialize() {
        return toCbor().toByteArray();
    }
}
