o

sigmastate.serialization

GroupElementSerializer

object GroupElementSerializer extends SigmaSerializer[EcPointType, EcPointType]

A serializer which encodes group elements, so elliptic curve points in our case, to bytes, and decodes points from bytes. Every point is encoded in compressed form (so only X coordinate and sign of Y are stored). Thus for secp256k1 point, 33 bytes are needed. The first bytes is whether equals 2 or 3 depending on the sign of Y coordinate(==2 is Y is positive, ==3, if Y is negative). Other 32 bytes are containing the X coordinate. Special case is infinity point, which is encoded by 33 zeroes. Thus elliptic curve point is always encoded with 33 bytes.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GroupElementSerializer
  2. SigmaSerializer
  3. Serializer
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def error(msg: String): Nothing
    Definition Classes
    SigmaSerializer
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def fromBytes(bytes: Array[Byte]): EcPointType
    Definition Classes
    SigmaSerializer
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def parse(bytes: Array[Byte]): EcPointType
  18. def parse(r: SigmaByteReader): EcPointType
    Definition Classes
    GroupElementSerializer → Serializer
  19. def parseTry(r: SigmaByteReader): Try[EcPointType]
    Definition Classes
    Serializer
  20. def parseWithGenericReader(r: Reader)(implicit vs: SigmaValidationSettings): EcPointType

    Wraps the given reader in SigmaByteReader and delegates to parse.

    Wraps the given reader in SigmaByteReader and delegates to parse. NOTE: it is used in spam tests.

    Definition Classes
    SigmaSerializer
  21. def serialize(point: EcPointType, w: SigmaByteWriter): Unit
    Definition Classes
    GroupElementSerializer → Serializer
  22. def serializeWithGenericWriter(obj: EcPointType, w: Writer): Unit

    Wraps the given writer in SigmaByteWriter and delegates to serialize.

    Wraps the given writer in SigmaByteWriter and delegates to serialize. NOTE: it is used in spam tests.

    Definition Classes
    SigmaSerializer
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. final def toBytes(obj: EcPointType): Array[Byte]
    Definition Classes
    SigmaSerializer
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializer[EcPointType, EcPointType, SigmaByteReader, SigmaByteWriter]

Inherited from AnyRef

Inherited from Any

Ungrouped