• Converts a given public key into a packed (compressed) string format for efficient transmission and storage. This method ensures the public key is valid and within the Baby Jubjub curve before packing.

    Parameters

    • publicKey: Point

      The public key to be packed.

    Returns bigint

    A string representation of the packed public key.