read static method

Implementation

static LiftRetVal<NonStandardSighashTypePsbtException> read(Uint8List buf) {
  int new_offset = buf.offsetInBytes;

  final sighash_lifted =
      FfiConverterUInt32.read(Uint8List.view(buf.buffer, new_offset));
  final sighash = sighash_lifted.value;
  new_offset += sighash_lifted.bytesRead;
  return LiftRetVal(
      NonStandardSighashTypePsbtException._(
        sighash,
      ),
      new_offset);
}