Skip to content

The ibe.Ciphertext struct is missing serialization methods #568

Description

@AnomalRoil

Our ibe.Ciphertext struct can have variable size serialization, depending on the curve of the kyber.Point and the size of the hash used, etc.

kyber/encrypt/ibe/ibe.go

Lines 15 to 22 in 23debab

type Ciphertext struct {
// Random point rP
U kyber.Point
// Sigma attached to ID: sigma XOR H(rG_id)
V []byte
// ciphertext of the message M XOR H(sigma)
W []byte
}

It would be nice to have a "good way" of encoding it and decoding it.
Otherwise all the users have to go through the painful process of re-implementing something like that, e.g.:
https://github.com/drand/tlock/blob/24c8c6e1b288fcd1a703da1db5606800b4607337/tlock.go#L216-L234

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions