Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fabric Smart Contracts in Kotlin

We are looking at building smart contracts in Kotlin language, even though its not officially a supported language. The reasons are -

  • It compiles down to Java bytecode.. So from a JVM point of view, its no different to java

  • Its a very expressive language with a much better type system than java.

  • Its got first hand support for functional programming constructs.

So, the question I have is not about technical feasibility - coz I know its not a problem. The question is, does anyone see any other issues with this approach? Perhaps anything core to Hyperledger Fabric which might cause issues further down the line? Also, curious if anyone else has tried this before in a production set up? Thanks

like image 463
Srikumar S Avatar asked Dec 05 '25 03:12

Srikumar S


1 Answers

I don't know if anyone has used it in production, and/or hit any problems using Kotlin, but there is a Kotlin example in the Java chaincode repository.

like image 125
James Taylor Avatar answered Dec 07 '25 22:12

James Taylor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!