Dusan Sekulic
d184fc0f41
[SDK] E2E test for WASM wrapper ( #378 )
...
* wasm e2e test
* Remove ark-sdk.wasm.gz from repository
* pr review
* exclude test files from linting
* fix
* test fix
* go work sync
* gha fix
* gha fix
* wasm e2e test
* kill webserver
* 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
* Fix trivy gh action (#381 )
* Update trivy gha
* Update tryvy gha
* Fix
* merge
* Panic recovery in app svc (#372 )
* panic recovery
* pr review
* Support connecting to bitcoind via ZMQ (#286 )
* add ZMQ env vars
* consolidate config and app-config naming
* [Server] Validate forfeit txs without re-building them (#382 )
* compute forfeit partial tx client-side first
* fix conflict
* go work sync
* move verify sig in VerifyForfeits
* move check after len(inputs)
* 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
* 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 >
* fix unit test
* fix unit test
* fix unit test
---------
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Co-authored-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
Co-authored-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
2024-11-22 15:31:20 +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
Pietralberto Mazza
963f5d89e6
Fix trivy gh action ( #381 )
...
* Update trivy gha
* Update tryvy gha
* Fix
2024-11-15 18:12:56 +01:00
Louis Singer
3782793431
Add tests for adversarial scenarios ( #300 )
...
* fix and test cheating scenario (malicious double spend)
* test and fix async vtxo cheating cases
* add replace statement in go.mod
* Update server/internal/core/application/covenantless.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
* Update server/internal/infrastructure/wallet/btc-embedded/psbt.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
* Update server/test/e2e/covenant/e2e_test.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
* Update server/test/e2e/covenantless/e2e_test.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
* Update server/test/e2e/covenantless/e2e_test.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
* remove unused
* [btc-embedded] fix GetNotificationChannel
* [tx-builder] fix redeem transaction fee estimator
* close grpc client in tests
* [application] rework listentoscannerNotification
* [application][covenant] fix getConnectorAmount
* [tx-builder][covenant] get connector amount from wallet
* e2e test sleep time
* [liquid-standalone] ListConnectorUtxos: filter by script client side
* fix Makefile integrationtest
* do not use cache in integration tests
* use VtxoKey as argument of findForfeitTxBitcoin
* wrap adversarial test in t.Run
* increaste test timeout
* CI: setup go 1.23.1
* CI: revert go version
* add replace in server/go.mod
* Update server/internal/core/application/covenant.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
* remove replace
* readd replace statement
* fixes
* go work sync
* fix CI
---------
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
2024-09-16 17:03:43 +02:00
Dusan Sekulic
4304626d08
CLI with ARK Sdk ( #307 )
...
* Export new methods
* Use sdk in CLI
* pr review refactor
* go sync
* Fixes
* run integration test on every change
* fixes
* go sync
* fix
* Persist explorer url
* Fix decoding bitcoin address
* Add missing timeout to e2e test
* Fix
* Fixes
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
2024-09-13 19:13:48 +02:00
João Bordalo
f9cf449104
fix: support http as asp url ( #303 )
...
* fix asp url
* replicate fix on covenant client
* upgrade to go 1.23.1
2024-09-12 17:11:37 +01:00
Marco Argentieri
ab2c9785d0
chore: disable CodeQL workflow ( #304 )
...
* Create codeql.yml
Signed-off-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
* Update codeql.yml
Signed-off-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
---------
Signed-off-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
2024-09-10 21:51:27 +02:00
Dusan Sekulic
a8cf0ed204
[SDK] Add Transaction History ( #288 )
...
* tx history
* fix
* fix
* pr review refactor
* pr review refactor
* fix
* pr review refactor
* exclude gosec G115 Integer Overflow Conversion
* ignore some gosec errs
* ignore some gosec errs
* ignore createdat in test assertion
* Fixes (#7 )
* Fixes
* Fixes
* Update golang (#8 )
* update gha golangci-lint version
* update gha golangci-lint version
* fix linting issues
* fix linting issues
* fix linting issues
* add linter timeout
---------
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
2024-09-10 14:27:29 +02:00
Marco Argentieri
1b9660ec89
gha: add trivy security scan ( #277 )
2024-08-23 16:08:40 +02:00
Marco Argentieri
0fb8076c6e
check go work sync in unit test ( #268 )
...
* check go work sync is ran
* bump setup-go@v4
* remove go mod tidy
2024-08-20 11:22:59 +02:00
Marco Argentieri
c840aac431
build parallel ( #257 )
2024-08-15 18:58:37 +02:00
Marco Argentieri
faecf1a392
gha release: split docker and binaries. tag name as VERSION in build-arg ( #256 )
...
* client: print version
* arkd: add --version
* release action refactor
2024-08-15 04:52:04 +02:00
Marco Argentieri
f0a90c06ee
Move api-spec to root folder ( #242 )
...
* api-spec: move the api-spec to root and init go.mod
* go mod tidy
* move buf files in the root as well
* gh action for api-spec changes only
* gh action for api-spec on push and pr
2024-08-13 00:54:06 +02:00
Marco Argentieri
67baf9e7fc
client-sdk/wasm: binary rename to ark-sdk.wasm ( #241 )
2024-08-13 00:30:44 +02:00
Marco Argentieri
c559b91fec
pkg/client-sdk/wasm: build wasm ( #238 )
...
Signed-off-by: tiero <3596602+tiero@users.noreply.github.com >
2024-08-12 16:40:27 +02:00
Pietralberto Mazza
89df461623
Update client sdk ( #207 )
...
* Add bitcoin networks
* Refactor client
* Refactor explorer
* Refactor store
* Refactor wallet
* Refactor sdk client
* Refactor wasm & Update examples
* Move common util funcs to internal/utils
* Move to constants for service types
* Add unit tests
* Parallelize tests
* Lint
* Add job to gh action
* go mod tidy
* Fixes
* Fixes
* Fix compose file
* Fixes
* Fixes after review:
* Drop factory pattern
* Drop password from ark client methods
* Make singlekey wallet manage store and wallet store instead of defining WalletStore as extension of Store
* Move constants to arksdk module
* Drop config and expect directory store and wallet as ark client factory args
* Fix
* Add constants for bitcoin/liquid explorer
* Fix test
* Fix wasm
* Rename client.Client to client.ASPClient
* Rename store.Store to store.ConfigStore
* Rename wallet.Wallet to wallet.WalletService
* Renamings
* Lint
* Fixes
* Move everything to internal/utils & move ComputeVtxoTaprootScript to common
* Go mod tidy
2024-07-30 16:08:23 +02:00
Marco Argentieri
c274d670fe
Update ark.release.yaml
...
Signed-off-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
2024-06-24 15:37:55 +02:00
Louis Singer
2dae630daf
Trigger integration tests on PR ( #174 )
2024-05-23 17:54:00 +02:00
tiero
9e42c7f9f9
config: update defaults
2024-04-30 22:34:36 -05:00
tiero
6cb79b6968
gh action: use -arm64
2024-04-30 17:51:28 -05:00
tiero
ec3692e12d
gh action: permissions
2024-04-27 03:51:20 +02:00
Marco Argentieri
9496094443
Prepare for default liquid, README and Release GH action ( #156 )
2024-04-27 03:09:04 +02:00
Louis Singer
852756eaba
Add integration tests and regtest support ( #128 )
...
* regtest support + integration tests (e2e)
* add integration CI
* add PR trigger on integration CI
* wait for ocean to be unlocked at startup
* integration tests: add tests flags and build docker images at startup
* use nigiri chopsticks-liquid
* fix after reviews
* Update client/init.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
* do not trigger integration on PR
---------
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
2024-04-19 18:57:13 +02:00
Pietralberto Mazza
dc00d60585
Rename folders ( #97 )
...
* Rename arkd folder & drop cli
* Rename ark cli folder & update docs
* Update readme
* Fix
* scripts: add build-all
* Add target to build cli for all platforms
* Update build scripts
---------
Co-authored-by: tiero <3596602+tiero@users.noreply.github.com >
2024-02-09 19:32:58 +01:00
Louis Singer
8d7b934f46
Dockerize buf ( #51 )
...
* dockerized buf
* Remove build-buf
* fix CI
* buf-lint-action revert version
* buf lint in CI
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
2023-12-08 16:03:00 +01:00
Pietralberto Mazza
0210d39866
Monorepo scaffolding ( #16 )
...
* Change scaffolding
* Fix gh action
2023-11-27 14:23:22 +01:00
altafan
bd6199a787
Scaffolding
2023-10-30 14:43:51 +01:00