read static method

Implementation

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

  final key_lifted =
      FfiConverterString.read(Uint8List.view(buf.buffer, new_offset));
  final key = key_lifted.value;
  new_offset += key_lifted.bytesRead;
  return LiftRetVal(
      InvalidKeyPsbtException._(
        key,
      ),
      new_offset);
}