decodeCred static method

AdaStakeCredType decodeCred(
  1. int header,
  2. int bit
)

Implementation

static AdaStakeCredType decodeCred(int header, int bit) {
  return header & (1 << bit) == 0
      ? AdaStakeCredType.key
      : AdaStakeCredType.script;
}