mirror of
https://github.com/luxfi/mpc.git
synced 2026-09-24 00:26:24 +00:00
28 lines
413 B
Go
28 lines
413 B
Go
package node
|
|
|
|
import "github.com/cryptoniumX/mpcium/pkg/messaging"
|
|
|
|
type ID string
|
|
|
|
type Party struct {
|
|
id string
|
|
peerIDs []string
|
|
|
|
pubSub messaging.PubSub
|
|
direct messaging.DirectMessaging
|
|
}
|
|
|
|
func NewParty(
|
|
id string,
|
|
peerIDs []string,
|
|
pubSub messaging.PubSub,
|
|
direct messaging.DirectMessaging,
|
|
) *Party {
|
|
return &Party{
|
|
id: id,
|
|
peerIDs: peerIDs,
|
|
pubSub: pubSub,
|
|
direct: direct,
|
|
}
|
|
}
|