INNER CODE UNIT · Go

func

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

func (x *FieldElement) Add(y *FieldElement) *FieldElement {
	// Addition in a characteristic 2 field is just XOR.
	return NewFieldElement(x.low^y.low, x.high^y.high)
}

func (x *FieldElement) Copy() *FieldElement {
	return NewFieldElement(x.low, x.high)
}

func (x *FieldElement) GetLow() uint64 {
	return x.low
}

func (x *FieldElement) GetHigh() uint64 {
	return x.high
}

func (x *FieldElement) Equal(y *FieldElement) bool {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…