mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 04:34:19 +01:00
* [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
46 lines
907 B
Go
46 lines
907 B
Go
package domain
|
|
|
|
import "github.com/ark-network/ark/common/tree"
|
|
|
|
type RoundEvent interface {
|
|
IsEvent()
|
|
}
|
|
|
|
func (r RoundStarted) IsEvent() {}
|
|
func (r RoundFinalizationStarted) IsEvent() {}
|
|
func (r RoundFinalized) IsEvent() {}
|
|
func (r RoundFailed) IsEvent() {}
|
|
func (r PaymentsRegistered) IsEvent() {}
|
|
|
|
type RoundStarted struct {
|
|
Id string
|
|
Timestamp int64
|
|
}
|
|
|
|
type RoundFinalizationStarted struct {
|
|
Id string
|
|
CongestionTree tree.CongestionTree // BTC: signed
|
|
Connectors []string
|
|
ConnectorAddress string
|
|
UnsignedForfeitTxs []string
|
|
PoolTx string
|
|
}
|
|
|
|
type RoundFinalized struct {
|
|
Id string
|
|
Txid string
|
|
ForfeitTxs []string
|
|
Timestamp int64
|
|
}
|
|
|
|
type RoundFailed struct {
|
|
Id string
|
|
Err string
|
|
Timestamp int64
|
|
}
|
|
|
|
type PaymentsRegistered struct {
|
|
Id string
|
|
Payments []Payment
|
|
}
|