INNER CODE UNIT · Go

ToFieldElement

getamis/alice · crypto/binaryfield/binary_field.go:94

func ToFieldElement(xMsg []*BinaryMessage) []*FieldElement {
	result := make([]*FieldElement, len(xMsg))
	for i := 0; i < len(result); i++ {
		result[i] = xMsg[i].ToFieldElement()
	}
	return result
}

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…