Skip to content

Conversation

shreyav
Copy link
Contributor

@shreyav shreyav commented Jun 24, 2024

towards LIG-5018

@shreyav shreyav marked this pull request as ready for review June 24, 2024 23:11
@shreyav shreyav requested a review from jklein24 June 25, 2024 01:03

fun hashUmaIdentifier(identifier: String, signingPrivateKey: ByteArray): String {
val now = getUtcDateTime()
val input = identifier.toByteArray() + "${now.monthNumber}-${now.year}".toByteArray() + signingPrivateKey
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shreyav shreyav merged commit 59d4a35 into develop Jun 25, 2024
@shreyav shreyav deleted the feat/uma-data branch June 25, 2024 23:41
shreyav added a commit that referenced this pull request Jul 9, 2024
* 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>
shreyav added a commit that referenced this pull request Jul 16, 2024
* 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>
shreyav added a commit that referenced this pull request Jul 22, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants