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