INNER CODE UNIT · Go
EqualSlice
getamis/alice · crypto/binaryfield/binary_field.go:102
func EqualSlice(x, y []*FieldElement) bool {
if len(x) != len(y) {
return false
}
for i := 0; i < len(x); i++ {
if !x[i].Equal(y[i]) {
return false
}
}
return true
}
func TransFieldElementMsg(u []*FieldElement) []*BinaryMessage {
result := make([]*BinaryMessage, len(u))
for i := 0; i < len(result); i++ {
temp := &BinaryMessage{
Low: u[i].GetLow(),
High: u[i].GetHigh(),