mirror of
https://github.com/SwingbyProtocol/tss-lib.git
synced 2026-01-09 13:57:58 -05:00
26 lines
589 B
Go
26 lines
589 B
Go
// Copyright © 2019 Binance
|
|
//
|
|
// This file is part of Binance. The full Binance copyright notice, including
|
|
// terms governing use, modification, and redistribution, is contained in the
|
|
// file LICENSE at the root of the source code distribution tree.
|
|
|
|
package tss
|
|
|
|
type (
|
|
PeerContext struct {
|
|
partyIDs SortedPartyIDs
|
|
}
|
|
)
|
|
|
|
func NewPeerContext(parties SortedPartyIDs) *PeerContext {
|
|
return &PeerContext{partyIDs: parties}
|
|
}
|
|
|
|
func (p2pCtx *PeerContext) IDs() SortedPartyIDs {
|
|
return p2pCtx.partyIDs
|
|
}
|
|
|
|
func (p2pCtx *PeerContext) SetIDs(ids SortedPartyIDs) {
|
|
p2pCtx.partyIDs = ids
|
|
}
|