/
bsiv
/
bnb-tss
Обзор
Документация
Войти
/
bsiv
/
bnb-tss
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
test/utils.go
31 строка
806 B
ycen
Update module name to v2 (#262)
26 авг 2023, 08:13
Не верифицирован
26 авг 2023, 08:13
faf1884
Код
Авторство
О чём код?
// 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 test import ( "github.com/bnb-chain/tss-lib/v2/tss" ) func SharedPartyUpdater(party tss.Party, msg tss.Message, errCh chan<- *tss.Error) { // do not send a message from this party back to itself if party.PartyID() == msg.GetFrom() { return } bz, _, err := msg.WireBytes() if err != nil { errCh <- party.WrapError(err) return } pMsg, err := tss.ParseWireMessage(bz, msg.GetFrom(), msg.IsBroadcast()) if err != nil { errCh <- party.WrapError(err) return } if _, err := party.Update(pMsg); err != nil { errCh <- err } }