aboutsummaryrefslogtreecommitdiffstats
path: root/src/constructs/tss/tss.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/constructs/tss/tss.cpp')
-rw-r--r--src/constructs/tss/tss.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/constructs/tss/tss.cpp b/src/constructs/tss/tss.cpp
index 0782a27d1..ad45cfcec 100644
--- a/src/constructs/tss/tss.cpp
+++ b/src/constructs/tss/tss.cpp
@@ -106,9 +106,7 @@ HashFunction* get_rtss_hash_by_id(byte id)
RTSS_Share::RTSS_Share(const std::string& hex_input)
{
- Pipe pipe(new Hex_Decoder);
- pipe.process_msg(hex_input);
- contents = pipe.read_all();
+ contents = hex_decode(hex_input);
}
byte RTSS_Share::share_id() const
@@ -121,9 +119,7 @@ byte RTSS_Share::share_id() const
std::string RTSS_Share::to_string() const
{
- Pipe pipe(new Hex_Encoder);
- pipe.process_msg(contents);
- return pipe.read_all_as_string();
+ return hex_encode(&contents[0], contents.size());
}
std::vector<RTSS_Share>