Skip to content

Add functions to encode unsigned integers as i64 #45

@Janmajayamall

Description

@Janmajayamall

For example

fn encode_unsigned_to_i64(data: &[u64], k_pt: usize) -> i64

The function first maps each unsigned value to signed representation in plaintext modulus and then casts to i64. This is different from directly casting unsigned integer to signed integer.

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