ceremonyclient/bedlam/ot/ot.go
Cassandra Heart dbd95bd9e9
v2.1.0 (#439)
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete

* 2.1.0 main node rollup
2025-09-30 02:48:15 -05:00

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
}