Pietralberto Mazza
fb64bd35d8
Support connectors validation client-side & Minor fixes ( #126 )
...
* Validate connectors client-side when sending offchain
* Minor fixes
* validate connector input in forfeit txs
---------
Co-authored-by: Louis <louis@vulpem.com >
2024-03-05 13:04:32 +01:00
Pietralberto Mazza
6d0d03e316
Cleanup ( #121 )
...
* Cleanup common
* Cleanup client
* Cleanup server
* Renamings
* Tidy up proto
* Update ocean protos
* Fixes
* Fixes
2024-02-28 18:05:03 +01:00
Pietralberto Mazza
1650ea5935
Support onboarding & Drop faucet ( #119 )
...
* Renaming
* Add server-side support for onboarding
* add onboard --amount command
* support client side onboarding
* Drop dummy tx builder
* Drop faucet
* Fixes
* fix public key encoding
* fix schnorr pub key check in validation
* fix server/README to accomodate onboarding
---------
Co-authored-by: Louis <louis@vulpem.com >
Co-authored-by: João Bordalo <bordalix@users.noreply.github.com >
2024-02-23 16:24:00 +01:00
Louis Singer
a95a829b20
Delay unilateral exit and support send to onchain address ( #117 )
...
* add delay on redeem close + forfeit close
* increase default round lifetime (16 minutes min)
* add sequence to final pset
* update CLI and server to support delayed vtxos oncahin
* rename future to "locked"
* add configurable EXIT_DELAY variable
* renaming
* rename "close" --> "closure"
* rename "close" to "closure"
* error message config.go
2024-02-22 16:47:52 +01:00
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