25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
492 B

  1. package p751toolbox
  2. // Tools used for testing and debugging
  3. import (
  4. "fmt"
  5. )
  6. func (primeElement PrimeFieldElement) String() string {
  7. return fmt.Sprintf("%X", primeElement.A.toBigInt().String())
  8. }
  9. func (extElement ExtensionFieldElement) String() string {
  10. return fmt.Sprintf("\nA: %X\nB: %X", extElement.A.toBigInt().String(), extElement.B.toBigInt().String())
  11. }
  12. func (point ProjectivePoint) String() string {
  13. return fmt.Sprintf("X:\n%sZ:\n%s", point.X.String(), point.Z.String())
  14. }