Skip to content

About

No description, website, or topics provided.

Resources

Stars

7 stars

Watchers

2 watching

Forks

Repository files navigation

keystone-sdk-android

Release

KeystoneSDK Android library project that works with jitpack.io.

See this Tutorial on how to publish an Android Library with JitPack.

For more details check out the documentation

https://jitpack.io/#KeystoneHQ/keystone-sdk-android

Add it to your build.gradle with:

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

or add it to your settings.gradle with:

dependencyResolutionManagement {
    repositories {
        maven { url 'https://www.jitpack.io' }
    }
}

then add dependency:

dependencies {
    compile 'com.github.KeystoneHQ/keystone-sdk-android:{latest version}'
}

PSBT Extend

val sdk = KeystoneSDK()
val encoder = sdk.btc.generatePSBTExtend(psbtBytes, coinId = 2)
val result = sdk.btc.parsePSBTExtend(ur)
// result.psbt: ByteArray; result.coinId: Int? (null for an omitted Bitcoin coin field)

Supported coin IDs: 0 Bitcoin (omitted in CBOR), 2 Litecoin, 3 Dogecoin, 5 Dash, 145 Bitcoin Cash.

Build with an installed Android NDK and JDK 17 (the Gradle 7.6.1 wrapper does not support JDK 21):

export ANDROID_NDK_HOME="/path/to/android/ndk"
./gradlew :library:assembleRelease

The preBuild task builds the Rust submodule and copies all four ABI libraries. The AAR is generated in library/build/outputs/aar/.

About

No description, website, or topics provided.

Resources

Stars

7 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages