This is a Kotlin repository which implements Parity's SCALE codec in a designated way.
This repository aims to provide easy to use interface similar to other serialization implementations such as JSON in multiple variants.
It attemps to use Kotlin's reflection to minimize developer's customization in order to make particular data object to be ready for SCALE codec serialization.
Unfortunately, Kotlin is not almighty even with its reflection, and it misses fixed size arrays comparing to Java, so we try to use annotations and other small hacks to overcome these issues.
At Sublab we're making mobile-first libraries for developers in Substrate ecosystem. However, we seek our libraries to be available not only for mobile Apple OS or Android OS, but compatible with any Swift/Kotlin environment: web servers, desktop apps, and whatnot.
Our mission is to to develop fully native open-source libraries for mobile platforms in Polkadot and Kusama ecosystems, covering everything with reliable unit-tests and providing rich documentation to the developers community.
Our goal is to have more developers to come into the world of development of client applications in Substrate ecosystem, as we find this as most promising and intelligent blockchain project we ever seen. Thus, we as mobile development gurus trying to create enormously professional libraries which might be very complicated under the hood, but very simple and convenient for final developers.
This library is available at Maven Central. Feel free to copy and paste code blocks below to integrate it to your application.
build.gradle
repositories {
mavenCentral()
}
Maven
<dependency>
<groupId>dev.sublab</groupId>
<artifactId>scale-codec-kotlin</artifactId>
<version>1.0.0</version>
</dependency>
Gradle
implementation 'dev.sublab:scale-codec-kotlin:1.0.0'
- Our GitBook: https://docs.sublab.dev/kotlin-libraries/scale-codec-library/
- API reference: https://api-reference.sublab.dev/scale-codec-kotlin/
Please look into our contribution guide and code of conduct prior to contributing.
- Website: sublab.dev
- E-mail: [email protected]
- Telegram support channel: t.me/sublabsupport
- Twitter: twitter.com/sublabdev