#serde #deserializer #stratum #sv2 #u16 #data #byte

serde_v2

Serlializer and Deserializer for Stratum V2 data format

1 unstable release

0.1.0 Feb 23, 2021

#6 in #stratum

Apache-2.0

38KB
1K SLoC

Serde serializer/deserializer for stratum v2 implemented following serde tutorial

SERDE    <-> Sv2
bool     <-> BOOL
u8       <-> U8
u16      <-> U16
U24      <-> U24
u32      <-> u32
U256     <-> U256
String   <-> STRO_255
Signature<-> SIGNATURE
BO255    <-> BO_255
BO64K    <-> BO_64K
BO16M    <-> BO_16M
[u8]     <-> BYTES
Pubkey   <-> PUBKEY
Seq0255  <-> SEQ0_255
Seq064K  <-> SEQ0_64K

Dependencies

~0.4–1MB
~22K SLoC