List<int> serialize() { return CborListValue<CborObject>.definite([ CborBytesValue(rootHashBytes), attrs.toJson(), CborIntValue(type.value) ]).encode(); }