mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 18:37:26 +08:00
24 lines
480 B
Go
24 lines
480 B
Go
//
|
|
// ot.go
|
|
//
|
|
// Copyright (c) 2023 Markku Rossi
|
|
//
|
|
// All rights reserved.
|
|
|
|
package ot
|
|
|
|
// OT defines Oblivious Transfer protocol.
|
|
type OT interface {
|
|
// InitSender initializes the OT sender.
|
|
InitSender(io IO) error
|
|
|
|
// InitReceiver initializes the OT receiver.
|
|
InitReceiver(io IO) error
|
|
|
|
// Send sends the wire labels with OT.
|
|
Send(wires []Wire) error
|
|
|
|
// Receive receives the wire labels with OT based on the flag values.
|
|
Receive(flags []bool, result []Label) error
|
|
}
|