Is there a way to validate currency in Hyperledger, I am aware that it is possible to validate String values using regex, but I get an error when using regex for Double data type.
Here is what gives an error, it complains about the one line in the Customer defination
participant Customer{
o Double balance regex=/^[0-9]+(\.[0-9]{1,2})?/
}
But this works (If the data type is String instead of Double)
participant Customer{
o String balance regex=/^[0-9]+(\.[0-9]{1,2})?/
}