Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
3d65852
feat: add aux attribute in channel.Params
NhoxxKienn Jan 23, 2025
2bb1a55
feat(adjudicate): gather state map switchs to gather signed states
NhoxxKienn Feb 26, 2025
8c7df65
feat(vc_test): add aux params to virtual channel test for utxo chains
NhoxxKienn Apr 2, 2025
e363289
feat(vc test): send parent ID in aux instead for utxo chains
NhoxxKienn Apr 2, 2025
0edd2b7
fix(vc test): fix aux generation in virtual channel test
NhoxxKienn Apr 2, 2025
634091b
feat(test/virtualchannel): add wait time for processing opening virtu…
NhoxxKienn Apr 10, 2025
1eb5cc3
feat: add log and proper secondary settle for virtual channel test di…
NhoxxKienn Apr 10, 2025
61bf760
feat: add additional payment channel test setup
NhoxxKienn Apr 14, 2025
15bf682
feat: add proper clean up for virtual channel optimistic test
NhoxxKienn Apr 15, 2025
4d68d28
feat: add client's handler for virtual channel test cleanup
NhoxxKienn Apr 15, 2025
17ac78d
Merge branch 'main' into nervos_ckb
NhoxxKienn Apr 24, 2025
22cdc68
refactor(lint): update and refactor golangci-lint
NhoxxKienn Apr 25, 2025
4eb64e3
feat(wire/net/libp2p): add initial package libp2p
NhoxxKienn Apr 28, 2025
fddc7a9
feat(go.mod): update go dependencies
NhoxxKienn Apr 28, 2025
eff95d6
feat(libp2p): add libp2p account, address
NhoxxKienn Apr 28, 2025
848f107
feat(libp2p): add dialer and listener
NhoxxKienn Apr 29, 2025
effbd00
feat(libp2p): add exchange addr tests
NhoxxKienn Apr 29, 2025
f5bde07
feat(wire/net): add bus test for libp2p and simple
NhoxxKienn Apr 30, 2025
14d52e5
Merge branch 'main' into 418_libp2p_integration
NhoxxKienn May 21, 2025
8f6050c
fix(channel/backend.go): Dynamic use of backends instead of hardcoded…
sophia1ch May 21, 2025
93a4559
fix(client/test): Remove unused argument in openSubChannel
sophia1ch May 28, 2025
21b590b
Merge branch 'main' into ckb_test
NhoxxKienn May 28, 2025
8cd8f57
fix(all): changes according to PR's review
NhoxxKienn Jul 14, 2025
bbf0d26
Merge branch 'main' into nervos_ckb
NhoxxKienn Jul 14, 2025
d541e25
fix: clear linting problem
NhoxxKienn Jul 14, 2025
a5c5eb3
chore: fix ci problem
NhoxxKienn Jul 15, 2025
83be060
Revert: feat(adjudicate): stateMap to signedState: This reverts commi…
NhoxxKienn Jul 29, 2025
b05c01f
Merge pull request #420 from perun-network/418_libp2p_integration
NhoxxKienn Jul 29, 2025
b649937
chore(CHANGELOG): update description for v0.14.0
NhoxxKienn Jul 29, 2025
85d5f6d
Merge pull request #426 from perun-network/release-v0.14.0
NhoxxKienn Jul 29, 2025
39732fb
Merge branch 'hyperledger-labs:main' into ckb_test
NhoxxKienn Aug 8, 2025
2ab4349
Merge pull request #423 from perun-network/ckb_test
NhoxxKienn Sep 4, 2025
9ceb060
chore(doc): update README and CHANGELOG for v0.14.1 release
NhoxxKienn Oct 2, 2025
f91bad2
doc(README): update backend map to better visualise development status
NhoxxKienn Oct 2, 2025
e7fb0b6
Merge pull request #428 from perun-network/release-v0.14.1
NhoxxKienn Oct 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
release:

env:
go-version: 1.18
go-version: 1.23

jobs:
check-copyright:
name: Copyright
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Authors
Expand All @@ -26,20 +26,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Check vanity import
run: .scripts/check-vanity-imports.sh $GITHUB_WORKSPACE

- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ env.go-version }}

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v7
with:
version: v1.45
version: v2.1

- name: Lint proto files
uses: plexsystems/protolint-action@v0.6.0
Expand Down
103 changes: 103 additions & 0 deletions .golangci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"formatters": {
"enable": [
"gofmt",
"gofumpt",
"goimports"
],
"exclusions": {
"generated": "lax",
"paths": [
"third_party$",
"builtin$",
"examples$"
]
}
},
"linters": {
"default": "all",
"disable": [
"err113",
"errorlint",
"gochecknoglobals",
"gochecknoinits",
"ireturn",
"lll",
"nlreturn",
"paralleltest",
"promlinter",
"tparallel",
"varnamelen",
"wrapcheck",
"wsl",
"testifylint",
"revive",
"recvcheck",
"prealloc",
"depguard",
"nonamedreturns",
"inamedparam",
"exhaustruct"
],
"exclusions": {
"generated": "lax",
"paths": [
"third_party$",
"builtin$",
"examples$"
],
"presets": [
"common-false-positives",
"legacy",
"std-error-handling"
],
"rules": [
{
"linters": [
"err113",
"forcetypeassert",
"funlen"
],
"path": "test"
},
{
"linters": [
"revive"
],
"path": "test",
"text": "context-as-argument"
}
]
},
"settings": {
"cyclop": {
"max-complexity": 15
},
"forbidigo": {
"forbid": [
{
"pattern": "^[Ee]quals$"
},
{
"pattern": "^print.*$"
},
{
"pattern": "fmt\\.Print.*"
}
]
},
"goheader": {
"template-path": ".scripts/copyright-notice",
"values": {
"regexp": {
"ANY_YEAR": "20(19|2\\d)"
}
}
}
}
},
"run": {
"modules-download-mode": "readonly"
},
"version": "2"
}
81 changes: 0 additions & 81 deletions .golangci.yml

This file was deleted.

58 changes: 49 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,53 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.14.1] Narvi - 2025-10-02
Extended the testing framework with more robust tests for payment and virtual channels.
Added documentation for cross-chain backend integration and backend ID mapping.


### Added

* Documentation section describing supported backends and their IDs.

### Changed

* Extended Perun testing framework with improved payment and virtual channel tests. [#423]

[#423]: https://github.com/hyperledger-labs/go-perun/pull/423

## [0.14.0] Narvi - 2025-07-29 [:boom:]
Added [Libp2p](https://libp2p.io/) wire for go-perun. This enables seamless and secure P2P connection between clients.

### Added :boom:

* Wire implementation with libp2p [#420]

### Fixed
* Removed test backend signature from `authMsg` of exchange address protocol [#422]

### Changed

* Updade action cache [#420]

* Update workflow go version to 1.23 [#420]

* Update workflow go linter to 2.1 [#420]

[#420]: https://github.com/hyperledger-labs/go-perun/pull/420
[#422]: https://github.com/hyperledger-labs/go-perun/pull/422


## [0.13.0] Metis - 2025-01-19 [:boom:]
Support for multiple backends, allowing multiple address implementations per client. This enables the simultaneous use of several smaller backends, enhancing modularization.

## Added :boom:
### Added :boom:

* Backend field in Allocation [#410]

* Added interface restrictions to ensure cross-contract compatibility, including new functions and fields in interfaces such as Asset and Address [#410]

## Changed
### Changed

* Updade action cache [#409]

Expand All @@ -31,53 +68,53 @@ Support for multiple backends, allowing multiple address implementations per cli
[#410]: https://github.com/hyperledger-labs/go-perun/pull/410
[#413]: https://github.com/hyperledger-labs/go-perun/pull/413

## Legend
### Legend
- <span id="breaking">:boom:</span> This is a breaking change, e.g., it changes the external API.

[:boom:]: #breaking

## [0.12.0] Leda - 2024-11-19 [:boom:]
Flexibility in funding for payment channels and basic Layer-2 security.

## Added :boom:
### Added :boom:

* Egoistic funding allows users to wait for their peers to fund before they fund themselves. This change has to be adopted by the Perun backends to be usable ([in case of Ethereum](https://github.com/hyperledger-labs/perun-eth-backend/pull/45)): [#397 ]

* Wire authentication for Layer2 communication between Perun clients, using TLS: [#402] :boom:

* Support for Stellar backend in README: [#408]

## Changed
### Changed
* Update go to 1.22: [#406 ]

[#397]: https://github.com/hyperledger-labs/go-perun/pull/397
[#406]: https://github.com/hyperledger-labs/go-perun/pull/406
[#402]: https://github.com/hyperledger-labs/go-perun/pull/402
[#408]: https://github.com/hyperledger-labs/go-perun/pull/408

## Legend
### Legend
- <span id="breaking">:boom:</span> This is a breaking change, e.g., it changes the external API.

[:boom:]: #breaking

## [0.11.0] Kiviuq - 2024-02-21 [:boom:]
Exposure of protobuf converters & `SignedState`, abstraction of tests and bug fixes.

## Added
### Added
- Add Fabric to backend list in README: [#377]
- Create new type `TransparentChannel` to expose `SignedState`: [#389]
- Update backend compatibility list in README: [#392]
- Add MAINTAINERS.md file, Update NOTICE: [#394]

## Fixed
### Fixed
- Fix sub-channel test: [#359]
- Fix Multi-Adjudicator Subscription: [#366]
- Use correct identity for client tests: [#376]
- Fix link to white paper in README: [#379]
- Fix linter copyright year checking in CI: [#389]
- Fix failing unit tests: [#399]

## Changed [:boom:]
### Changed [:boom:]
- Abstract multiledger test, making it usable by backends: [#355]
- Abstract fund recovery test, making it usable by backends: [#370]
- Abstract virtual channel test, making it usable by backends: [#375]
Expand Down Expand Up @@ -488,6 +525,9 @@ Initial release.
[:boom:]: #breaking

[Unreleased]: https://github.com/hyperledger-labs/go-perun/compare/v0.11.0...HEAD
[0.14.0]: https://github.com/hyperledger-labs/go-perun/compare/v0.13.0...v0.14.0
[0.13.0]: https://github.com/hyperledger-labs/go-perun/compare/v0.12.0...v0.13.0
[0.12.0]: https://github.com/hyperledger-labs/go-perun/compare/v0.11.0...v0.12.0
[0.11.0]: https://github.com/hyperledger-labs/go-perun/compare/v0.10.0...v0.11.0
[0.10.0]: https://github.com/hyperledger-labs/go-perun/compare/v0.9.1...v0.10.0
[0.9.1]: https://github.com/hyperledger-labs/go-perun/compare/v0.9.0...v0.9.1
Expand Down
30 changes: 20 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,26 @@ The following features are planned for future releases:

### Backends

There are multiple **blockchain backends** available. A backend is automatically initialized when its top-level package `backend/<name>` is imported.
- **Ethereum.** The Ethereum backend is available at [perun-eth-backend](https://github.com/perun-network/perun-eth-backend/).
- **Polkadot.** The Polkadot backend is available at [perun-polkadot-backend](https://github.com/perun-network/perun-polkadot-backend).
- **Cosmos.** The Cosmos backend is available at [perun-cosmwasm-backend](https://github.com/hyperledger-labs/perun-cosmwasm-backend).
- **Cardano.** The Cardano backend is available at [perun-cardano-backend](https://github.com/perun-network/perun-cardano-backend).
- **NERVOS.** The NERVOS backend is available at [perun-ckb-backend](https://github.com/perun-network/perun-ckb-backend).
- **Dfinity.** The Dfinity Internet Computer backend is available at [perun-icp-backend](https://github.com/perun-network/perun-icp-backend).
- **Stellar.** The Stellar backend is available at [perun-stellar-backend](https://github.com/perun-network/perun-stellar-backend).
- **Fabric.** The Hyperledger Fabric backend is available at [perun-fabric](https://github.com/perun-network/perun-fabric).
- **SimBackend.** The SimBackend represents an ideal blockchain backend (`backend/sim`) implementation that can be used for testing.
_go-perun_ supports multiple **blockchain backends**. A backend is automatically initialized when its top-level package `backend/<name>` is imported.#### Backend Map

| ID | Backend | Payment Channel Status | Cross-Chain Status | Repository |
| --- | ---------- | ---------------------- | ------------------ | ------------------------------------------------------------------------------------ |
| 0 | SimBackend | 🧪 Testing only | 🧪 Testing only | Built-in (`backend/sim`) – represents an ideal blockchain backend for simulation |
| 1 | Ethereum | ✅ Supported | ✅ Supported | [perun-eth-backend](https://github.com/perun-network/perun-eth-backend/) |
| 2 | Stellar | ✅ Supported | ✅ Supported | [perun-stellar-backend](https://github.com/perun-network/perun-stellar-backend) |
| 3 | Nervos | ✅ Supported | 🚧 In development | [perun-ckb-backend](https://github.com/perun-network/perun-ckb-backend) |
| 4 | Polkadot | ✅ Supported | 🚧 In development | [perun-polkadot-backend](https://github.com/perun-network/perun-polkadot-backend) |
| 5 | Dfinity | ✅ Supported | 🚧 In development | [perun-icp-backend](https://github.com/perun-network/perun-icp-backend) |
| 6 | Solana | 🚧 In development | 🚧 In development | [perun-solana-backend](https://github.com/perun-network/perun-solana-backend) |
| - | Cosmos | ✅ Supported | 🟡 Single-chain | [perun-cosmwasm-backend](https://github.com/hyperledger-labs/perun-cosmwasm-backend) |
| - | Cardano | ✅ Supported | 🟡 Single-chain | [perun-cardano-backend](https://github.com/perun-network/perun-cardano-backend) |
| - | Fabric | ✅ Supported | 🟡 Single-chain | [perun-fabric](https://github.com/perun-network/perun-fabric) |

#### Legend
- ✅ **Supported** – stable and available.
- 🚧 **In development** – actively worked on, not fully stable.
- 🟡 **Single-chain** – supports only local (non-cross-chain) payment/state channels.
- 🧪 **Testing only** – simulation backend, no real blockchain.

**Logging and networking** capabilities can also be injected by the user.
A default [logrus](https://github.com/sirupsen/logrus) implementation of the `log.Logger` interface can be set using `log/logrus.Set`.
Expand Down
Loading