Closed L-coder148 closed 2 years ago
Hash the string to a block. RandomOracle can do this.
Thanks for your early reply,I want to send the vector ss
,but there was an error. I saw the function inChannel.h
, but I still can not deal with it.
std::vector<std::string> ss(2);
ss.push_back("I am Alice");
ss.push_back("I am Alice");
auto routine = [&](u64 t)
{
chl0.asyncSend(ss);
};
Channel can only send vector of basic data types. Basically if you can use memcpy. string is not a basic data type.
Join all your strings and send one big string.
Is it possible to achieve the conversion between
String
andblock
, the string might be a meaningful sentence like "I am Alice" or "yes".