public static void FromHex(this IBitcoinSerializable me, string hex)
 {
     if (me == null)
     {
         throw new ArgumentNullException(nameof(me));
     }
     me.FromBytes(HexHelpers.GetBytes(hex));
 }
Exemple #2
0
 public static void FromHex(this IBitcoinSerializable me, string hex)
 {
     Guard.NotNullOrEmptyOrWhitespace(nameof(hex), hex);
     me.FromBytes(ByteHelpers.FromHex(hex));
 }