3 namespace org { namespace ldk { namespace util {
6 * A 4-bit unsigned integer representing a Bitcoin SegWit version
8 public class WitnessVersion {
10 public WitnessVersion(byte val) {
11 if (val > 16 || val < 0) {
12 throw new ArgumentException();
18 * @return the value represented
20 public byte getVal() {