cashubtc / cashu-ts

A TypeScript library for building Cashu wallets
MIT License
58 stars 34 forks source link

add `computeTxId` as a utility function #167

Closed gudnuf closed 2 months ago

gudnuf commented 3 months ago

Description

Discussion of this here, and related CDK PR

I am opening this PR because I want to ability to create an identifier for a "transaction" that can be embedded in a URL rather than an entire token. We will then store tokens locked to a pubkey in our database and map this txid to that token.

...

Changes

Adds a utility function computeTxId that accepts `Array and

PR Tasks