Louis Singer
936f9c5f51
Drop useless encoding ( #110 )
...
* drop asec private key encoding
* remove pubkey/relaykey/url encoding in common pkg
* fix pubkey encoding
* remove SecKey
2024-02-20 17:35:11 +01:00
Louis Singer
287db4e08a
Support round expiration and sweep vtxos ( #70 )
...
* sweeper base implementation
* sweeper service final implementation
* fixes
* fix CSV script
* RoundSwept event fix & test
* remove Vtxos after a sweep transaction
* ARK_ROUND_LIFETIME config
* remove TxBuilder.GetLifetime
* refactor sweeper
* use GetTransaction blocktime
* polish and comments
* fix linting
* pair programming fixes
* several fixes
* clean Println
* fixes
* linter fixes
* remove infrastructure deps from application layer
* Fixes
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
2024-02-08 16:58:04 +01:00
Louis Singer
b2e034cf0e
Refactor tx-builder/covenant ( #88 )
...
* clean tx-builder/covenant/tree.go
* rename "createRoot" --> "createBinaryTree"
* replace node.psets by an iterative function "createTreeTransactions"
* merge function
* unspendable point as bytes + remove psetWithLevel
* re-add extra leaf level in congestion tree
* polishing tx-builder/covenant
* remove emptyNonce var
* cleaning tree.go
* improve node.outputs()
* Fix var type
* Fixes
* fix linting
* Renaming and reordering
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
2024-02-08 04:51:01 +01:00
Louis Singer
d4ee064245
Send unsigned pool transactions to clients ( #85 )
...
* replace Transfer by SelectUtxos
* Wallet.SignPset: handle unset WitnessUtxo
* fix linter
* renaming variables
* add witnessUtxo while creating pool transaction
* add EstimateFees in ports.Wallet
* replace createTestPoolTx by a constant pset
2024-01-24 16:08:50 +01:00
Louis Singer
5dba216a98
Congestion tree validation ( #84 )
...
* add common/pkg/tree validation
* update noah go.mod
* cleaning and fixes
* fix builder_test.go
* Fix deferred func
* fix even number of vtxos in congestion tree
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
2024-01-23 15:38:43 +01:00
Louis Singer
3407fd277a
Forfeit transactions: signing process ( #81 )
...
* sign forfeit transactions
* revert txid + move SignVtxos func
* Fix nolint
* Fix
* fix connectorsToInputArgs function
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
2024-01-18 17:17:23 +01:00
Louis Singer
cf78fc1ab3
Add support for unilateral exit ( #79 )
...
* v0 unilateral redemption
* add fee outputs to congestion tree
* unilateral exit
* rework unilateral exit verbosity
* substract fee from vtxo amount
* remove unused functions and variables
* fix after reviews
* Update noah/explorer.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
* remove bufferutils
---------
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
2024-01-16 14:13:47 +01:00
Pietralberto Mazza
0210d39866
Monorepo scaffolding ( #16 )
...
* Change scaffolding
* Fix gh action
2023-11-27 14:23:22 +01:00