Pietralberto Mazza
7f937e8418
Vars and fields renaming ( #387 )
...
* Rename asp > server
* Rename pool > round
* Consolidate naming for pubkey/prvkey vars and types
* Fix
* Fix
* Fix wasm
* Rename congestionTree > vtxoTree
* Fix wasm
* Rename payment > request
* Rename congestionTree > vtxoTree after syncing with master
* Fix Send API in SDK
* Fix wasm
* Fix wasm
* Fixes
* Fixes after review
* Fix
* Fix naming
* Fix
* Fix e2e tests
2024-11-26 15:57:16 +01:00
Louis Singer
06dd01ecb1
Change representation of taproot trees & Internal fixes ( #384 )
...
* migrate descriptors --> tapscripts
* fix covenantless
* dynamic boarding exit delay
* remove duplicates in tree and bitcointree
* agnostic signatures validation
* revert GetInfo change
* renaming VtxoScript var
* Agnostic script server (#6 )
* Hotfix: Prevent ZMQ-based bitcoin wallet to panic (#383 )
* Hotfix bct embedded wallet w/ ZMQ
* Fixes
* Rename vtxo is_oor to is_pending (#385 )
* Rename vtxo is_oor > is_pending
* Clean swaggers
* Revert changes to client and sdk
* descriptor in oneof
* support CHECKSIG_ADD in MultisigClosure
* use right witness size in OOR tx fee estimation
* Revert changes
---------
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
2024-11-20 18:51:03 +01:00
Louis Singer
ff96524f22
Ark Notes ( #379 )
...
* ark credits
* rename "ecash" --> "ark credit"
* rework note_test.go
* NewFromString
* create several notes
* note repo: rename "push" to "add"
* RegisterInputsForNextRoundRequest: move "notes" to field #3
* use uint64 as note ID
* rename to voucher
* add nostr notification
* nostr notification test and fixes
* bump badger to 4.3
* allow npub to be registered
* rename poolTxID
* add default relays
* Update server/internal/config/config.go
Co-authored-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
* fix RedeemVouchers test
* notification = voucher
* WASM wrappers
* fix arkd voucher cmd
* test_utils.go ignore gosec rule G101
* fix permissions
* rename ALL to notes
* add URI prefix
* note.go : fix signature encoding
* fix decode note.Data
* Update server/internal/infrastructure/notifier/nostr/nostr.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
* Update pkg/client-sdk/wasm/browser/wrappers.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
* Update server/internal/infrastructure/notifier/nostr/nostr.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
* rework note and entity db + sqlite implementations
* NOTIFICATION_PREFIX -> NOTE_URI_PREFIX
* validate NOTE_URI_PREFIX
* Update defaults to convenant-less mainnet (#2 )
* config: defaults to convenant-less tx builder
* Drop env var for blockchain scanner
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
* add // before URI prefix
* add URI prefix in admin CreateNote
* Fixes
* rework nonces encoding (#4 )
* rework nonces encoding
* add a check in Musig2Nonce decode function
* musig2_test: increase number of signers to 20
* musig2.json: add a test case with a 35 leaves tree
* GetEventStream REST rework
* fix round phases time intervals
* [SDK] Use server-side streams in rest client
* Fix history
* make the URI optional
* Updates
* Fix settled txs in history
* fix e2e test
* go work sync in sdk unit test
* fix signMessage in btc and liquid sdk wallets
---------
Co-authored-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
2024-11-15 19:07:33 +01:00
Dusan Sekulic
698ba4bf02
Fix nonce encoding/decoding & Fix pop from queue of payment requests ( #375 )
...
* bug fix - paymentMap pop input traversal
* bug fix - nonce encode/decode
* pr review
* pr review
2024-11-14 15:09:10 +01:00
Louis Singer
b536a9e652
New address encoding ( #356 )
...
* [common] rework address encoding
* new address encoding
* replace offchain address by vtxo output key in DB
* merge migrations files into init one
* fix txbuilder fixtures
* fix transaction events
2024-10-18 16:50:07 +02:00
Louis Singer
10ef0dbffa
Add reversible policy to pending vtxos ( #311 )
...
* [server] descriptor-based vtxo script
* [server] fix unit tests
* [sdk] descriptor based vtxo
* empty config check & version flag support
* fix: empty config check & version flag support (#309 )
* fix
* [sdk] several fixes
* [sdk][server] several fixes
* [common][sdk] add reversible VtxoScript type, use it in async payment
* [common] improve parser
* [common] fix reversible vtxo parser
* [sdk] remove logs
* fix forfeit map
* remove debug log
* [sdk] do not allow reversible vtxo script in case of self-transfer
* remove signing pubkey
* remove signer public key, craft forfeit txs client side
* go work sync
* fix linter errors
* rename MakeForfeitTxs to BuildForfeitTxs
* fix conflicts
* fix tests
* comment VtxoScript type
* revert ROUND_INTERVAL value
---------
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Co-authored-by: sekulicd <sekula87@gmail.com >
2024-09-19 10:01:33 +02:00
Louis Singer
0fb34cb13d
Dynamic min-relay-fee and dust amount ( #280 )
...
* [btc-embedded] add chainfee.Estimator and extraAPI interfaces
* dynamic fee amount
* dynamic dust amount
* [client] fix linter errors
* [domain] fix unit tests
* [server] return dust amount in GetInfo RPC
* [sdk] fix lnd dependencie
* go work sync
* fix witness stack size forfeit tx size estimator
* remove hardcoded fee values in covenant txbuilder
* lower liquid feerate
* fix after reviews
* go work sync
2024-09-10 17:22:09 +02:00
Louis Singer
c183f99244
Make the round participants sign the vtxo tree ( #271 )
...
* [proto] add APIs to send and receive musig2 signing data
* [common] add serialization functions for nonces and signatures
* [application] implements tree signing
* fix: remove old debug logs
* [proto] cleaning
* [common] fix musig2.go
* [application] fixes and logs
* [interface] fix: stop forwarding 2 times the events
* [client] add musig2 support + sign the tree when joining a round
* [interface] add new APIs into permissions.go
* [application][proto] rework PingResponse (return all events type)
* [common] split SetKeys into 2 distinct methods
* [client] fixes according to musig2.go changes
* [sdk] support tree signing + new PingResponse
* [sdk] fixes
* [application] revert event channel type
* [application] use domain.RoundEvent as lastEvent type
* [application] remove IsCovenantLess
* comments
* [application] revert roundAborted changes
* [interface] remove bitcointree dependencie
2024-08-30 14:32:35 +02:00
Louis Singer
01297ae38c
Add support for covenant-less ASP ( #214 )
...
* scaffolding wallet
* remove wallet db, add loader instead
* wip
* implement some wallet methods
* signing and utxos
* renaming
* fee estimator
* chain source options
* config
* application service
* clark docker-compose
* CLI refactor
* v0 clark
* v0.1 clark
* fix SignTapscriptInput (btcwallet)
* wallet.Broadcast, send via explora
* fix ASP pubkey
* Use lnd's btcwallet & Add rpc to get wallet staus
* wip
* unilateral exit
* Fixes on watching for notifications and cli init
* handle non-final BIP68 errors
* Fixes
* Fixes
* Fix
* a
* fix onboard cosigners + revert tree validation
* fix covenant e2e tests
* fix covenantless e2e tests
* fix container naming
* fix lint error
* update REAME.md
* Add env var for wallet password
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
2024-07-30 20:57:52 +02:00
Louis Singer
329ba555db
Covenant-less TxBuilder ( #178 )
...
* initial commit
* wip
* add bitcointree pkg in common
* add bitcoin txbuilder
* fix BuildPoolTx test
* fix sweeper
* v0 musig2 congestion tree
* bitcointree: add signatures support
* add Makefile in common
* fix lint
* fix go.mod and TxBuilder
* go mod tidy
* rename "pset" --> "psbt"
* add GetSweepInput method in TxBuilder
* fix extractSweepLeaf (bitcoin tx builder)
2024-05-31 12:49:52 +02:00