{"action":"created","issue":{"url":"https://api.github.com/repos/shaih/HElib/issues/212","repository_url":"https://api.github.com/repos/shaih/HElib","labels_url":"https://api.github.com/repos/shaih/HElib/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/shaih/HElib/issues/212/comments","events_url":"https://api.github.com/repos/shaih/HElib/issues/212/events","html_url":"https://github.com/shaih/HElib/issues/212","id":329698465,"node_id":"MDU6SXNzdWUzMjk2OTg0NjU=","number":212,"title":"Using Hybrid Replication Method from Algorithms in HElib","user":{"login":"deevashwer","id":23222086,"node_id":"MDQ6VXNlcjIzMjIyMDg2","avatar_url":"https://avatars1.githubusercontent.com/u/23222086?v=4","gravatar_id":"","url":"https://api.github.com/users/deevashwer","html_url":"https://github.com/deevashwer","followers_url":"https://api.github.com/users/deevashwer/followers","following_url":"https://api.github.com/users/deevashwer/following{/other_user}","gists_url":"https://api.github.com/users/deevashwer/gists{/gist_id}","starred_url":"https://api.github.com/users/deevashwer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deevashwer/subscriptions","organizations_url":"https://api.github.com/users/deevashwer/orgs","repos_url":"https://api.github.com/users/deevashwer/repos","events_url":"https://api.github.com/users/deevashwer/events{/privacy}","received_events_url":"https://api.github.com/users/deevashwer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-06T03:34:24Z","updated_at":"2018-06-06T19:31:17Z","closed_at":null,"author_association":"NONE","body":"I want to use the Hybrid Replication strategy explained in [Algorithms in HElib, Section 4.2.2](http://www.shoup.net/papers/helib.pdf)\r\nI went through [replicate.cpp](https://github.com/shaih/HElib/blob/master/src/replicate.cpp) to look on how to invoke this functionality, but all the relevant functions involved some User-defined data types.\r\nCan someone give me a sample code on how to fully replicate a ciphertext?\r\nAlso, this functionality should return a vector of ciphertexts. I was unable to find such a function or method that returns a vector of ciphertexts and uses the hybrid replication strategy.\r\n"},"comment":{"url":"https://api.github.com/repos/shaih/HElib/issues/comments/395186716","html_url":"https://github.com/shaih/HElib/issues/212#issuecomment-395186716","issue_url":"https://api.github.com/repos/shaih/HElib/issues/212","id":395186716,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTE4NjcxNg==","user":{"login":"shaih","id":4069370,"node_id":"MDQ6VXNlcjQwNjkzNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/4069370?v=4","gravatar_id":"","url":"https://api.github.com/users/shaih","html_url":"https://github.com/shaih","followers_url":"https://api.github.com/users/shaih/followers","following_url":"https://api.github.com/users/shaih/following{/other_user}","gists_url":"https://api.github.com/users/shaih/gists{/gist_id}","starred_url":"https://api.github.com/users/shaih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaih/subscriptions","organizations_url":"https://api.github.com/users/shaih/orgs","repos_url":"https://api.github.com/users/shaih/repos","events_url":"https://api.github.com/users/shaih/events{/privacy}","received_events_url":"https://api.github.com/users/shaih/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T19:31:17Z","updated_at":"2018-06-06T19:31:17Z","author_association":"OWNER","body":"To use it you need to define a small implementation class, you can see examples in `Test_Replicate.cpp`\r\n\r\nNone of these methods return a vector of ciphertext, instead you give it a callback function and the method calls it for each new ciphertext that it produces. If you want a vector of ciphertext, have your callback function push_back each new cipehrtext into that vector."}}
{"actor":{"display_login":"shaih"}}