-
Notifications
You must be signed in to change notification settings - Fork 5
Uma data visibility #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uma data visibility #174
Conversation
lightspark-sdk/src/commonJvmAndroidMain/kotlin/com/lightspark/sdk/LightsparkFuturesClient.kt
Outdated
Show resolved
Hide resolved
lightspark-sdk/src/commonJvmAndroidMain/kotlin/com/lightspark/sdk/LightsparkFuturesClient.kt
Outdated
Show resolved
Hide resolved
lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/LightsparkCoroutinesClient.kt
Outdated
Show resolved
Hide resolved
|
||
fun hashUmaIdentifier(identifier: String, signingPrivateKey: ByteArray): String { | ||
val now = getUtcDateTime() | ||
val input = identifier.toByteArray() + "${now.monthNumber}-${now.year}".toByteArray() + signingPrivateKey |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :-)
${'$'}amountMsats: Long! | ||
${'$'}metadataHash: String! | ||
${'$'}expirySecs: Int = null | ||
${'$'}receiverHash: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need an = null
too?
${'$'}amountMsats: Long! | ||
${'$'}metadataHash: String! | ||
${'$'}expirySecs: Int = null | ||
${'$'}receiverHash: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems like not needed?? for example https://github.com/lightsparkdev/kotlin-sdk/pull/174/files#diff-a3974086a91f49faa928b13e5e700377265b59a374ebf9e127ccb428e27e55f1R11 but updated anyways
* lnurlp fallback * annotation and tests * fallback sender side * fix serialization * unused import * comments * fixes * Try to fix docs publish job my running on main * [gha] Use environment for doc-publish * Fix sender vasp utxo callback * Switch to a full 64bit nonce * Use json for parsing in demo vasp (#163) * Update the demo VASP's SDK version to 0.8.0 * Update the demo VASP's SDK version to 0.8.1 * Accept gzip responses, compress request with deflate (#172) Install `ContentEncoding` plugin to handle gzip responses. Compress requests larger than 1K using `Deflater`. Change `addSigningDataIfNeeded()` to return serialised bytes so that we only serialise once. * Regenerate SDK (#173) * Regenerate SDK * no op vls * Update macos environment version (#175) * Uma data visibility (#174) * fix typo (#176) * encode hex (#177) * Bump lightspark-sdk to version 0.14.0 * Load signing key * Revert "Merge release/lightspark-sdk-v0.14.0 into develop" (#181) * Bump lightspark-sdk to version 0.14.0 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: shreyav <shreya@lightspark.com> Co-authored-by: Jeremy Klein <jklein24@gmail.com> Co-authored-by: Michael Gorven <michael@gorven.net> Co-authored-by: Michael Gorven <mgorven@lightspark.com> Co-authored-by: runner <runner@Mac-1720545346122.local> Co-authored-by: runner <runner@Mac-1720552895732.local>
* lnurlp fallback * annotation and tests * fallback sender side * fix serialization * unused import * comments * fixes * Try to fix docs publish job my running on main * [gha] Use environment for doc-publish * Fix sender vasp utxo callback * Switch to a full 64bit nonce * Use json for parsing in demo vasp (#163) * Update the demo VASP's SDK version to 0.8.0 * Update the demo VASP's SDK version to 0.8.1 * Accept gzip responses, compress request with deflate (#172) Install `ContentEncoding` plugin to handle gzip responses. Compress requests larger than 1K using `Deflater`. Change `addSigningDataIfNeeded()` to return serialised bytes so that we only serialise once. * Regenerate SDK (#173) * Regenerate SDK * no op vls * Update macos environment version (#175) * Uma data visibility (#174) * fix typo (#176) * encode hex (#177) * Bump lightspark-sdk to version 0.14.0 * Load signing key * Revert "Merge release/lightspark-sdk-v0.14.0 into develop" (#181) * Bump lightspark-sdk to version 0.14.0 * update readme (#184) * Update invoice creator (#185) * Bump lightspark-sdk to version 0.15.0 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: shreyav <shreya@lightspark.com> Co-authored-by: Jeremy Klein <jklein24@gmail.com> Co-authored-by: Michael Gorven <michael@gorven.net> Co-authored-by: Michael Gorven <mgorven@lightspark.com> Co-authored-by: runner <runner@Mac-1720545346122.local> Co-authored-by: runner <runner@Mac-1720552895732.local> Co-authored-by: runner <runner@Mac-1721165625974.local>
* lnurlp fallback * annotation and tests * fallback sender side * fix serialization * unused import * comments * fixes * Try to fix docs publish job my running on main * [gha] Use environment for doc-publish * Fix sender vasp utxo callback * Switch to a full 64bit nonce * Use json for parsing in demo vasp (#163) * Update the demo VASP's SDK version to 0.8.0 * Update the demo VASP's SDK version to 0.8.1 * Accept gzip responses, compress request with deflate (#172) Install `ContentEncoding` plugin to handle gzip responses. Compress requests larger than 1K using `Deflater`. Change `addSigningDataIfNeeded()` to return serialised bytes so that we only serialise once. * Regenerate SDK (#173) * Regenerate SDK * no op vls * Update macos environment version (#175) * Uma data visibility (#174) * fix typo (#176) * encode hex (#177) * Bump lightspark-sdk to version 0.14.0 * Load signing key * Revert "Merge release/lightspark-sdk-v0.14.0 into develop" (#181) * Bump lightspark-sdk to version 0.14.0 * update readme (#184) * Update invoice creator (#185) * Bump lightspark-sdk to version 0.15.0 * Remove default null on PayUmaInvoice (#189) * Bump lightspark-sdk to version 0.15.1 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: shreyav <shreya@lightspark.com> Co-authored-by: Jeremy Klein <jklein24@gmail.com> Co-authored-by: Michael Gorven <michael@gorven.net> Co-authored-by: Michael Gorven <mgorven@lightspark.com> Co-authored-by: runner <runner@Mac-1720545346122.local> Co-authored-by: runner <runner@Mac-1720552895732.local> Co-authored-by: runner <runner@Mac-1721165625974.local> Co-authored-by: runner <runner@Mac-1721683838949.local>
towards LIG-5018